From 12770142fa44cd26cbd56078d8c001d676c7b55d Mon Sep 17 00:00:00 2001 From: Gabriel Calero Date: Mon, 12 Feb 2018 16:45:44 -0300 Subject: [PATCH] Add bubble button to android bottombar --- .../resources/icons/+android/bubble-a.svg | 1022 +++++++++++++++++ .../resources/icons/+android/bubble-i.svg | 1022 +++++++++++++++++ scripts/system/+android/bottombar.js | 20 + 3 files changed, 2064 insertions(+) create mode 100644 interface/resources/icons/+android/bubble-a.svg create mode 100644 interface/resources/icons/+android/bubble-i.svg diff --git a/interface/resources/icons/+android/bubble-a.svg b/interface/resources/icons/+android/bubble-a.svg new file mode 100644 index 0000000000..fccc9c07ff --- /dev/null +++ b/interface/resources/icons/+android/bubble-a.svg @@ -0,0 +1,1022 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/interface/resources/icons/+android/bubble-i.svg b/interface/resources/icons/+android/bubble-i.svg new file mode 100644 index 0000000000..80c97d2704 --- /dev/null +++ b/interface/resources/icons/+android/bubble-i.svg @@ -0,0 +1,1022 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/system/+android/bottombar.js b/scripts/system/+android/bottombar.js index 72ba1c1e50..5f82886c8a 100644 --- a/scripts/system/+android/bottombar.js +++ b/scripts/system/+android/bottombar.js @@ -15,6 +15,7 @@ var bottombar; var bottomHudOptionsBar; var gotoBtn; var avatarBtn; +var bubbleBtn; var loginBtn; var gotoScript = Script.require('./goto.js'); @@ -117,6 +118,25 @@ function setupBottomBar() { } }); + bubbleBtn = bottombar.addButton({ + icon: "icons/bubble-i.svg", + activeIcon: "icons/bubble-a.svg", + bgOpacity: 0, + hoverBgOpacity: 0, + activeBgOpacity: 0, + activeHoverBgOpacity: 0, + height: 240, + width: 294, + iconSize: 108, + textSize: 45, + text: "BUBBLE" + }); + + bubbleBtn.clicked.connect(function() { + Users.toggleIgnoreRadius(); + bubbleBtn.editProperties({isActive: Users.getIgnoreRadiusEnabled()}); + }); + loginBtn = bottombar.addButton({ icon: "icons/login-i.svg", activeIcon: "icons/login-a.svg",