New UX
This commit is contained in:
parent
70910f7cb9
commit
cc2acb8bdc
@ -33,10 +33,9 @@ body { margin:0px; padding:0px; overflow:hidden; font-family:"input_mono_medium"
|
|||||||
#terminal #widget li { display:block; }
|
#terminal #widget li { display:block; }
|
||||||
#terminal #widget li.active { color:#72dec2; }
|
#terminal #widget li.active { color:#72dec2; }
|
||||||
#terminal #widget li.inactive { color:#fff; }
|
#terminal #widget li.inactive { color:#fff; }
|
||||||
#terminal #widget li.managed { color:#777; }#terminal
|
#terminal #widget li.managed { color:#777; }
|
||||||
|
|
||||||
#terminal hint { display: block;position: fixed;top: 100px;width: calc(40vw - 60px);height: calc(100vh - 130px);padding: 0px 15px;line-height: 20px;font-size: 12px;background: none;color: #999;border-left:1px solid #333;margin-left:15px}
|
|
||||||
|
|
||||||
|
#terminal hint { display: block;position: fixed;top: 100px;width: calc(40vw - 45px);height: calc(100vh - 130px);padding: 0px 15px;line-height: 20px;font-size: 12px;background: none;color: #999;border-left:1px solid #333;margin-left:15px}
|
||||||
#terminal hint line { display: inline; width:calc(100% - 30px); }
|
#terminal hint line { display: inline; width:calc(100% - 30px); }
|
||||||
#terminal hint line .input { background:red; }
|
#terminal hint line .input { opacity:0.1; }
|
||||||
#terminal hint line .status { position: absolute;right:30px; }
|
#terminal hint line .status { position: absolute;right:30px; }
|
@ -168,6 +168,13 @@ function Terminal(rune)
|
|||||||
}
|
}
|
||||||
rawFile.send(null);
|
rawFile.send(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.cmd = function()
|
||||||
|
{
|
||||||
|
var lines = ronin.terminal.textarea.value.split("\n");
|
||||||
|
var last = lines[lines.length-1];
|
||||||
|
return new Command(last.split(" "));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
|
@ -35,19 +35,22 @@ function Type(rune)
|
|||||||
|
|
||||||
this.mouse_down = function(position)
|
this.mouse_down = function(position)
|
||||||
{
|
{
|
||||||
var line = "type.write "+position.render()+" \"Placeholder\"";
|
var str = ronin.terminal.cmd().text() ? ronin.terminal.cmd().text() : "Placeholder";
|
||||||
|
var line = "type.write "+position.render()+" \""+str+"\"";
|
||||||
ronin.terminal.update_active_line(line);
|
ronin.terminal.update_active_line(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mouse_move = function(position,rect)
|
this.mouse_move = function(position,rect)
|
||||||
{
|
{
|
||||||
var line = "type.write "+position.render()+" \"Placeholder\"";
|
var str = ronin.terminal.cmd().text() ? ronin.terminal.cmd().text() : "Placeholder";
|
||||||
|
var line = "type.write "+position.render()+" \""+str+"\"";
|
||||||
ronin.terminal.update_active_line(line);
|
ronin.terminal.update_active_line(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mouse_up = function(position)
|
this.mouse_up = function(position)
|
||||||
{
|
{
|
||||||
var line = "type.write "+position.render()+" \"Placeholder\"";
|
var str = ronin.terminal.cmd().text() ? ronin.terminal.cmd().text() : "Placeholder";
|
||||||
|
var line = "type.write "+position.render()+" \""+str+"\"";
|
||||||
ronin.terminal.update_active_line(line);
|
ronin.terminal.update_active_line(line);
|
||||||
ronin.terminal.textarea.value += "\n";
|
ronin.terminal.textarea.value += "\n";
|
||||||
ronin.cursor.release();
|
ronin.cursor.release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user