add cursor & close inputhelper

This commit is contained in:
Michael
2020-08-23 22:08:37 +02:00
parent 98df538403
commit 2aeef9c83e
3 changed files with 11 additions and 5 deletions

View File

@@ -23,6 +23,9 @@ export default class InputHelper {
this.getValue = this.getValue.bind(this);
this.value = undefined;
mp.events.add('closeinputhelper', this.finish);
}
show() {
@@ -32,6 +35,7 @@ export default class InputHelper {
this.data.InInput = true;
this.created = true;
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
mp.gui.cursor.show(true, true);
}
private finish() {
@@ -43,6 +47,7 @@ export default class InputHelper {
this.data.InMenu = false;
this.created = false;
this.browser = null;
mp.gui.cursor.show(false, false);
}
}