add cursor & close inputhelper
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user