Improved Widgets
This commit is contained in:
@@ -35,4 +35,4 @@ ronin.terminal.query("terminal.load default.rin");
|
||||
|
||||
ronin.terminal.input_element.focus();
|
||||
ronin.terminal.update_hint();
|
||||
ronin.frame.update_widget();
|
||||
ronin.widget.update();
|
||||
@@ -12,7 +12,7 @@ function Keyboard()
|
||||
this.alt_held = true;
|
||||
}
|
||||
ronin.cursor.update(event);
|
||||
ronin.frame.update_widget();
|
||||
ronin.widget.update();
|
||||
ronin.terminal.update_hint();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ function Keyboard()
|
||||
|
||||
// Passive
|
||||
ronin.terminal.passive(ronin.terminal.input_element.value);
|
||||
ronin.frame.update_widget();
|
||||
ronin.widget.update();
|
||||
ronin.terminal.update_hint();
|
||||
};
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ function Ronin()
|
||||
this.overlay = new Overlay("|");
|
||||
this.terminal = new Terminal(">");
|
||||
this.cursor = new Cursor(".");
|
||||
this.widget = new Widget("?");
|
||||
|
||||
this.modules[this.frame.constructor.name] = this.frame;
|
||||
this.modules[this.type.constructor.name] = this.type;
|
||||
@@ -43,6 +44,7 @@ function Ronin()
|
||||
}
|
||||
|
||||
this.terminal.install();
|
||||
this.widget.install();
|
||||
}
|
||||
|
||||
this.cursors = [];
|
||||
|
||||
Reference in New Issue
Block a user