mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-12 23:14:58 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
78
docs/base/@vl2/scripts.vl2/gui/ConsoleDlg.gui
Normal file
78
docs/base/@vl2/scripts.vl2/gui/ConsoleDlg.gui
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ConsoleDlg) {
|
||||
profile = "GuiDefaultProfile";
|
||||
|
||||
new GuiWindowCtrl()
|
||||
{
|
||||
profile = "GuiWindowProfile";
|
||||
position = "0 0";
|
||||
extent = "640 370";
|
||||
text = "Console";
|
||||
|
||||
new GuiScrollCtrl()
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "640 350";
|
||||
hScrollBar = "alwaysOn";
|
||||
vScrollBar = "alwaysOn";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiScrollContentCtrl("testScrollContentCtrl")
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
|
||||
new GuiConsole("testArrayCtrl")
|
||||
{
|
||||
profile = "GuiConsoleProfile";
|
||||
position = "0 0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
new GuiConsoleEditCtrl("ConsoleEntry")
|
||||
{
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "0 350";
|
||||
extent = "640 20";
|
||||
historySize = 20;
|
||||
altCommand = "ConsoleEntry::eval();";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
$ConsoleActive = false;
|
||||
|
||||
function ConsoleEntry::eval()
|
||||
{
|
||||
%text = ConsoleEntry.getValue();
|
||||
echo("==>" @ %text);
|
||||
eval(%text);
|
||||
ConsoleEntry.setValue("");
|
||||
}
|
||||
|
||||
function ToggleConsole(%make)
|
||||
{
|
||||
if (%make)
|
||||
{
|
||||
if ($ConsoleActive)
|
||||
{
|
||||
Canvas.popDialog(ConsoleDlg);
|
||||
$ConsoleActive = false;
|
||||
if ( $enableDirectInput )
|
||||
activateKeyboard();
|
||||
}
|
||||
else
|
||||
{
|
||||
Canvas.pushDialog(ConsoleDlg, 99);
|
||||
$ConsoleActive = true;
|
||||
deactivateKeyboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue