Improved Widgets

This commit is contained in:
Devine Lu Linvega
2017-04-15 11:47:54 -10:00
parent 6084ef4984
commit 3df9b21772
14 changed files with 128 additions and 71 deletions

View File

@@ -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();

View File

@@ -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();
};

View File

@@ -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 = [];