Add bubble button to android bottombar

This commit is contained in:
Gabriel Calero 2018-02-12 16:45:44 -03:00
parent 94a8aad712
commit 12770142fa
3 changed files with 2064 additions and 0 deletions

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 101 KiB

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 101 KiB

View file

@ -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",