Skip to content
Snippets Groups Projects
Commit 29825f3f authored by mcmlxxix's avatar mcmlxxix
Browse files

add InputLine.open() and InputLine.close() methods to show/hide input line...

add InputLine.open() and InputLine.close() methods to show/hide input line frames in the correct order, must less autotragically
parent b16ecb46
No related branches found
No related tags found
No related merge requests found
bbs.command_str='';
load("str_cmds.js");
load("funclib.js");
load("frame.js");
if(js.global.str_cmds == undefined)
js.global.load(js.global,"str_cmds.js");
if(js.global.getColor == undefined)
js.global.load(js.global,"funclib.js");
if(js.global.Frame == undefined)
js.global.load(js.global,"frame.js");
function InputLine(frame,text) {
/* private properties */
......@@ -95,6 +98,14 @@ function InputLine(frame,text) {
});
/* public methods */
this.open = function() {
properties.frame.open();
if(properties.cursor)
properties.cursor.top();
}
this.close = function() {
properties.frame.close();
}
this.clear = function() {
reset();
}
......@@ -246,3 +257,4 @@ function InputLine(frame,text) {
}
init.apply(this,arguments);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment