mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Instructions initial
This commit is contained in:
parent
38aab9570b
commit
d270979f95
1 changed files with 18 additions and 0 deletions
|
@ -19,6 +19,23 @@
|
|||
Script.include("../../libraries/globals.js");
|
||||
Script.include("../../libraries/virtualKeyboard.js");
|
||||
|
||||
function Instructions(imageURL) {
|
||||
this.overlay = Overlays.addOverlay("image", {
|
||||
imageURL: HIFI_PUBLIC_BUCKET + "images/tutorial-goTo.svg",
|
||||
x: 0,
|
||||
y: 0,
|
||||
alpha: 1,
|
||||
visible: true
|
||||
});
|
||||
this.remove = function() {
|
||||
Overlays.deleteOverlay(this.overlay);
|
||||
};
|
||||
};
|
||||
|
||||
var theInstruction = new Instructions();
|
||||
|
||||
|
||||
|
||||
var windowDimensions = Controller.getViewportDimensions();
|
||||
var cursor = new Cursor({visible: false});;
|
||||
var keyboard = new Keyboard({visible: false});
|
||||
|
@ -124,6 +141,7 @@ function scriptEnding() {
|
|||
Controller.releaseKeyEvents({key: SPACEBAR_CHARCODE});
|
||||
Controller.releaseKeyEvents({key: RETURN_CHARCODE});
|
||||
Controller.releaseKeyEvents({key: ENTER_CHARCODE});
|
||||
theInstruction.remove();
|
||||
}
|
||||
|
||||
function reportButtonValue(button, newValue, oldValue) {
|
||||
|
|
Loading…
Reference in a new issue