mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-23 06:21:21 +02:00
fix stand up icon
This commit is contained in:
parent
ee6516970e
commit
3761f24619
1 changed files with 12 additions and 0 deletions
|
@ -125,6 +125,17 @@
|
|||
externalThis.showIndicators(false);
|
||||
}
|
||||
}
|
||||
|
||||
var globalMouseClick = function(event) {
|
||||
print("globalMouseClick");
|
||||
var clickedOverlay = Overlays.getOverlayAtPoint({x: event.x, y: event.y});
|
||||
|
||||
if (clickedOverlay == externalThis.standUpButton) {
|
||||
seat.model = null;
|
||||
externalThis.standUp();
|
||||
Controller.mousePressEvent.disconnect(globalMouseClick);
|
||||
}
|
||||
};
|
||||
|
||||
this.sitDown = function() {
|
||||
sitting = true;
|
||||
|
@ -140,6 +151,7 @@
|
|||
}
|
||||
Script.update.connect(sittingDownAnimation);
|
||||
Overlays.editOverlay(this.standUpButton, { visible: true });
|
||||
Controller.mousePressEvent.connect(globalMouseClick);
|
||||
}
|
||||
|
||||
this.standUp = function() {
|
||||
|
|
Loading…
Reference in a new issue