mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 07:22:19 +02:00
Add bubble button to android bottombar
This commit is contained in:
parent
94a8aad712
commit
12770142fa
3 changed files with 2064 additions and 0 deletions
1022
interface/resources/icons/+android/bubble-a.svg
Normal file
1022
interface/resources/icons/+android/bubble-a.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 101 KiB |
1022
interface/resources/icons/+android/bubble-i.svg
Normal file
1022
interface/resources/icons/+android/bubble-i.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 101 KiB |
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue