From 29825f3f4f1a6e69632ac6bd4d99027ae8254cb9 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Wed, 5 Sep 2012 02:23:11 +0000
Subject: [PATCH] add InputLine.open() and InputLine.close() methods to
 show/hide input line frames in the correct order, must less autotragically

---
 exec/load/inputline.js | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/exec/load/inputline.js b/exec/load/inputline.js
index 34c0a0dae8..fa5de42d03 100644
--- a/exec/load/inputline.js
+++ b/exec/load/inputline.js
@@ -1,7 +1,10 @@
 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);
 }
+
-- 
GitLab