mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 09:23:35 +02:00
Added transparency and positioning updating of Planky button
This commit is contained in:
parent
477447b95f
commit
b3af1840c7
1 changed files with 5 additions and 2 deletions
|
@ -52,7 +52,7 @@ var button = Overlays.addOverlay('image', {
|
|||
width: BUTTON_DIMENSIONS.width,
|
||||
height: BUTTON_DIMENSIONS.height,
|
||||
imageURL: HIFI_PUBLIC_BUCKET + 'marketplace/hificontent/Games/blocks/planky_button.svg',
|
||||
alpha: 1
|
||||
alpha: 0.8
|
||||
});
|
||||
|
||||
|
||||
|
@ -133,7 +133,10 @@ function cleanup() {
|
|||
}
|
||||
|
||||
function onUpdate() {
|
||||
|
||||
if (windowWidth != Window.innerWidth) {
|
||||
windowWidth = Window.innerWidth;
|
||||
Overlays.editOverlay(button, {x: getButtonPosX()});
|
||||
}
|
||||
}
|
||||
|
||||
Script.update.connect(onUpdate)
|
||||
|
|
Loading…
Reference in a new issue