Initial commit

This commit is contained in:
Eagle517
2025-02-17 23:17:30 -06:00
commit 7cad314c94
4726 changed files with 1145203 additions and 0 deletions

BIN
example/common/ui/CUR_3darrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
example/common/ui/CUR_move.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
example/common/ui/CUR_nesw.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
example/common/ui/CUR_nwse.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
example/common/ui/CUR_updown.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,275 @@
//--- OBJECT WRITE BEGIN ---
new GuiColorPickerCtrl(ColorPickerDlg) {
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
Visible = "1";
baseColor = "1.000000 0.000000 1.000000 1.000000";
pickColor = "0.788235 0.713726 0.600000 1.000000";
selectorGap = "1";
displayMode = "Dropper";
actionOnMove = "1";
new GuiWindowCtrl(GuiPickerDlg) {
Profile = "GuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "51 39";
Extent = "358 294";
MinExtent = "8 2";
Visible = "1";
text = "Pick Color";
maxLength = "255";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
MinSize = "50 50";
closeCommand = "endColorDropper();Canvas.popDialog(ColorPickerDlg);";
new GuiColorPickerCtrl(ColorBlendSelect) {
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "9 42";
Extent = "314 190";
MinExtent = "8 2";
Visible = "1";
baseColor = "0.600000 1.000000 0.000000 1.000000";
selectorGap = "1";
displayMode = "BlendColor";
actionOnMove = "1";
};
new GuiSliderCtrl(ColorAlphaSelect) {
Profile = "GuiSliderProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "8 238";
Extent = "293 21";
MinExtent = "8 2";
Visible = "1";
range = "0.000000 1.000000";
ticks = "255";
value = "1";
};
new GuiColorPickerCtrl(ColorRangeSelect) {
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "328 42";
Extent = "21 188";
MinExtent = "8 2";
Visible = "1";
Command = "updatePickerBaseColor();";
baseColor = "1.000000 0.000000 1.000000 1.000000";
pickColor = "0.600000 1.000000 0.000000 1.000000";
selectorGap = "1";
displayMode = "VertColor";
actionOnMove = "1";
};
new GuiTextCtrl(Channel_R_Val) {
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "14 21";
Extent = "22 18";
MinExtent = "8 2";
Visible = "1";
text = "R : 1.0";
maxLength = "255";
};
new GuiTextCtrl(Channel_G_Val) {
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "69 21";
Extent = "23 18";
MinExtent = "8 2";
Visible = "1";
text = "G : 1.0";
maxLength = "255";
};
new GuiTextCtrl(Channel_B_Val) {
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "131 21";
Extent = "22 18";
MinExtent = "8 2";
Visible = "1";
text = "B : 1.0";
maxLength = "255";
};
new GuiTextCtrl(Channel_A_Val) {
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "198 21";
Extent = "23 18";
MinExtent = "8 2";
Visible = "1";
text = "A : 1.0";
maxLength = "255";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "304 238";
Extent = "47 18";
MinExtent = "8 2";
Visible = "1";
Command = "toggleColorPicker();";
text = "Drop";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "201 267";
Extent = "71 17";
MinExtent = "8 2";
Visible = "1";
Command = "DoColorPickerCallback();";
text = "Ok";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "279 267";
Extent = "71 17";
MinExtent = "8 2";
Visible = "1";
Command = "Canvas.popDialog(ColorPickerDlg);";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
};
};
};
//--- OBJECT WRITE END ---
$ColorPickerCallback = ""; // Control that we need to update
$ColorCallbackType = 1; // ColorI
// This function pushes the color picker dialog and returns to a callback the selected value
function GetColorI( %currentColor, %callback )
{
$ColorPickerCallback = %callback;
$ColorCallbackType = 1; // ColorI
// Set the RGBA displays accordingly
%red = getWord(%currentColor, 0);
%green = getWord(%currentColor, 1);
%blue = getWord(%currentColor, 2);
%alpha = getWord(%currentColor, 3);
setColorInfo(%red, %green, %blue, %alpha);
ColorBlendSelect.pickColor = %red SPC %green SPC %blue SPC "1.0";
ColorBlendSelect.updateColor();
ColorAlphaSelect.setValue(%alpha);
Canvas.pushDialog(ColorPickerDlg);
}
function GetColorF( %currentColor, %callback )
{
$ColorPickerCallback = %callback;
$ColorCallbackType = 2; // ColorF
// Set the RGBA displays accordingly
%red = getWord(%currentColor, 0);
%green = getWord(%currentColor, 1);
%blue = getWord(%currentColor, 2);
%alpha = getWord(%currentColor, 3);
setColorInfo(%red, %green, %blue, %alpha);
ColorBlendSelect.pickColor = %red SPC %green SPC %blue SPC "1.0";
ColorBlendSelect.updateColor();
ColorAlphaSelect.setValue(%alpha);
Canvas.pushDialog(ColorPickerDlg);
}
function DoColorPickerCallback()
{
eval( $ColorPickerCallback @ "(\"" @ constructNewColor(ColorBlendSelect.getValue(), $ColorCallbackType) @"\");" );
Canvas.popDialog(ColorPickerDlg);
}
// This function updates the base color on the blend control
function updatePickerBaseColor()
{
%pickColor = ColorRangeSelect.getValue();
%red = getWord(%pickColor, 0);
%green = getWord(%pickColor, 1);
%blue = getWord(%pickColor, 2);
ColorBlendSelect.baseColor = %red SPC %green SPC %blue SPC "1.0";
ColorBlendSelect.updateColor();
}
// This function is used to update the text controls at the top
function setColorInfo(%red, %green, %blue, %alpha)
{
Channel_R_Val.setValue("R :" SPC mCeil(%red * 255));
Channel_G_Val.setValue("G :" SPC mCeil(%green * 255));
Channel_B_Val.setValue("B :" SPC mCeil(%blue * 255));
Channel_A_Val.setValue("A :" SPC mCeil(%alpha * 255));
}
// This function constructs a new color, and updates the text displays accordingly
function constructNewColor(%pickColor, %colorType )
{
%red = getWord(%pickColor, 0);
%green = getWord(%pickColor, 1);
%blue = getWord(%pickColor, 2);
%alpha = ColorAlphaSelect.getValue();
// Update the text controls to reflect new color
setColorInfo(%red, %green, %blue, %alpha);
if ( %colorType == 1 ) // ColorI
return mCeil( %red * 255 ) SPC mCeil( %green * 255 ) SPC mCeil( %blue * 255 ) SPC mCeil( %alpha * 255 );
else // ColorF
return %red SPC %green SPC %blue SPC %alpha;
}
// Functions to deal with the color dropper
function startColorDropper()
{
//ColorPickerDlg.command = "ColorDropperSelect.baseColor = ColorPickerDlg.pickColor;";
ColorPickerDlg.altCommand = $pickerUpdateControl@".setValue(constructNewColor(ColorPickerDlg.pickColor));endColorDropper();";
ColorPickerDlg.setActive(true);
$pickerActive = true;
}
function endColorDropper()
{
ColorPickerDlg.command = "";
ColorPickerDlg.altCommand = "";
ColorPickerDlg.setActive(false);
$pickerActive = false;
}
function toggleColorPicker()
{
if ($pickerActive)
endColorDropper();
else
startColorDropper();
}

218
example/common/ui/ConsoleDlg.gui Executable file
View File

@ -0,0 +1,218 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ConsoleDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
new GuiWindowCtrl(ConsoleDlgWindow) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "500 300";
minExtent = "8 2";
visible = "1";
text = "Console";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "1";
MinSize = "500 300";
closeCommand = "ToggleConsole(1);";
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "width";
vertSizing = "height";
position = "3 36";
extent = "494 246";
minExtent = "8 2";
visible = "1";
willFirstRespond = "1";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
resizeWidth = "1";
resizeHeight = "1";
new GuiConsole() {
profile = "GuiConsoleProfile";
position = "0 0";
};
};
new GuiConsoleEditCtrl(ConsoleEntry) {
profile = "GuiTextEditProfile";
horizSizing = "width";
vertSizing = "top";
position = "3 278";
extent = "494 18";
minExtent = "8 2";
visible = "1";
altCommand = "ConsoleEntry::eval();";
maxLength = "255";
historySize = "20";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "1";
useSiblingScroller = "1";
};
new GuiPaneControl(ConsoleErrorPane) {
profile = "GuiPaneProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "3 22";
extent = "474 85";
minExtent = "474 10";
visible = "1";
caption = "No script compilation errors occured.";
collapsable = "1";
barBehindText = "1";
new GuiScrollCtrl(ConsoleErrorScroller) {
profile = "GuiScrollProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 14";
extent = "474 71";
minExtent = "8 2";
visible = "0";
willFirstRespond = "0";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "1";
childMargin = "0 0";
new GuiMLTextCtrl(ConsoleErrorDisplay) {
profile = "GuiMLTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "2 2";
extent = "474 14";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
};
};
};
//--- OBJECT WRITE END ---
function ConsoleDlg::onWake()
{
%position = $pref::Console::position;
if(%position $= "")
%position = ConsoleDlgWindow.position;
%extent = $pref::Console::extent;
if(getWord(%extent, 0) < getWord(ConsoleDlgWindow.minExtent, 0) ||
getWord(%extent, 1) < getWord(ConsoleDlgWindow.minExtent, 1))
%extent = ConsoleDlgWindow.extent;
ConsoleDlgWindow.resize(getWord(%position, 0), getWord(%position, 1),
getWord(%extent, 0), getWord(%extent, 1));
}
function ConsoleDlg::onSleep()
{
$pref::Console::position = ConsoleDlgWindow.position;
$pref::Console::extent = ConsoleDlgWindow.extent;
}
function ConsoleEntry::eval()
{
%text = trim(ConsoleEntry.getValue());
if(strpos(%text, "(") == -1)
{
if(strpos(%text, "=") == -1 && strpos(%text, " ") == -1)
{
if(strpos(%text, "{") == -1 && strpos(%text, "}") == -1)
{
%text = %text @ "()";
}
}
}
%pos = strlen(%text) - 1;
if(strpos(%text, ";", %pos) == -1 && strpos(%text, "}") == -1)
{
%text = %text @ ";";
}
echo("==>" @ %text);
eval(%text);
ConsoleEntry.setValue("");
// Check for any pending errors to display
updateConsoleErrorWindow();
}
function ToggleConsole(%make)
{
if (%make)
{
if (ConsoleDlg.isAwake())
{
// Deactivate the console.
if ( $enableDirectInput )
activateKeyboard();
Canvas.popDialog(ConsoleDlg);
}
else
{
if ( $enableDirectInput )
deactivateKeyboard();
Canvas.pushDialog(ConsoleDlg, 99);
// Check for any pending errors to display
updateConsoleErrorWindow();
// Collapse the errors if this is the first time...
if(ConsoleErrorPane._initialized == false)
ConsoleErrorPane.setCollapsed(true);
}
}
}
// The first hash is 1000...
$ScriptErrorHashDisplayed = 999;
function updateConsoleErrorWindow()
{
if($ScriptErrorHash != $ScriptErrorHashDisplayed && $ScriptErrorHash != 0)
{
// Hash was different so there must be a new error. Update the display!
%oldText = ConsoleErrorDisplay.getText();
if(%oldText !$= "")
ConsoleErrorDisplay.setText(%oldText @ "\n" @ $ScriptError);
else
ConsoleErrorDisplay.setText($ScriptError);
ConsoleErrorDisplay.setCursorPosition(100000); // Hacka hacka hacka
ConsoleErrorDisplay.scrollToBottom();
// Update the pane caption.
$ConsoleErrorCount += $ScriptErrorHash - $ScriptErrorHashDisplayed;
ConsoleErrorPane.caption = $ConsoleErrorCount @ " script compilation error(s) have occured!";
// Indicate we dealt with this...
$ScriptErrorHashDisplayed = $ScriptErrorHash;
$ScriptError = "";
}
}

View File

@ -0,0 +1,29 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(FrameOverlayGui) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "false";
helpTag = "0";
noCursor = true;
new GuiConsoleTextCtrl(TextOverlayControl) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 5";
extent = "15 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
expression = "10";
};
};
//--- OBJECT WRITE END ---

94
example/common/ui/HelpDlg.gui Executable file
View File

@ -0,0 +1,94 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(HelpDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "75 36";
extent = "483 393";
minExtent = "300 200";
visible = "1";
helpTag = "0";
text = "Help";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "Canvas.popDialog(HelpDlg);";
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "height";
position = "8 26";
extent = "132 356";
minExtent = "8 8";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTextListCtrl(HelpFileList) {
profile = "GuiTextListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "130 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "width";
vertSizing = "height";
position = "146 26";
extent = "328 356";
minExtent = "8 8";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiMLTextCtrl(HelpText) {
profile = "GuiMLTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "1 1";
extent = "310 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
};
};
//--- OBJECT WRITE END ---

206
example/common/ui/LoadFileDlg.gui Executable file
View File

@ -0,0 +1,206 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(LoadFileDlg) {
Profile = "GuiDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
Visible = "1";
fitParentHeight = "0";
fitParentWidth = "0";
helpTag = "0";
new GuiWindowCtrl() {
Profile = "GuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
Position = "36 33";
Extent = "589 372";
MinExtent = "8 8";
Visible = "1";
text = "Open File...";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
MinSize = "50 50";
closeCommand = "Canvas.popDialog(LoadFileDlg);";
fitParentHeight = "0";
fitParentWidth = "0";
helpTag = "0";
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "449 343";
Extent = "60 20";
MinExtent = "8 8";
Visible = "1";
Command = "DoOpenFileExCallback();";
text = "Load";
groupNum = "-1";
buttonType = "PushButton";
fitParentHeight = "0";
fitParentWidth = "0";
helpTag = "0";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "519 343";
Extent = "60 20";
MinExtent = "8 8";
Visible = "1";
Command = "Canvas.popDialog(LoadFileDlg);";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
fitParentHeight = "0";
fitParentWidth = "0";
helpTag = "0";
};
new GuiFrameSetCtrl() {
Profile = "GuiDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "4 24";
Extent = "579 310";
MinExtent = "8 2";
Visible = "1";
columns = "0 245";
rows = "0";
borderWidth = "7";
borderColor = "206 206 206 206";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
fudgeFactor = "0";
new GuiScrollCtrl() {
Profile = "GuiScrollProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "238 310";
MinExtent = "8 2";
Visible = "1";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "0";
childMargin = "0 0";
fitParentHeight = "1";
fitParentWidth = "0";
new GuiDirectoryTreeCtrl(LoadDirTreeEx) {
Profile = "GuiDirectoryTreeProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "2 2";
Extent = "85 63";
MinExtent = "8 2";
Visible = "1";
tabSize = "16";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "21";
destroyTreeOnSleep = "0";
MouseDragging = "0";
MultipleSelections = "0";
fitParentHeight = "0";
fitParentWidth = "0";
};
};
new GuiScrollCtrl() {
Profile = "GuiScrollProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "245 0";
Extent = "334 310";
MinExtent = "8 2";
Visible = "1";
willFirstRespond = "1";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
fitParentHeight = "1";
fitParentWidth = "1";
new GuiDirectoryFileListCtrl(LoadFileListEx) {
Profile = "GuiDirectoryFileListProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "2 2";
Extent = "623 208";
MinExtent = "8 2";
Visible = "1";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
fitParentHeight = "0";
};
};
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// ex: getLoadFilename("~/stuff/*.*", openStuff);
// -- calls 'openStuff(%filename)' on dblclick or ok
//------------------------------------------------------------------------------
function getLoadFilename(%filespec, %callback, %currentFile)
{
$GuiLoadDialogCallback = %callback;
if( %filespec $= "" )
$LoadFileExFileSpec = "*.*";
else
$LoadFileExFileSpec = %filespec;
Canvas.pushDialog(LoadFileDlg, 99);
$LoadFileExFile = %currentFile;
// If we have a current path, set the tree to it
if( filePath( %currentFile ) !$= "" )
LoadDirTreeEx.setSelectedPath( filePath( %currentFile ) );
// Update our file view to reflect the changes
LoadFileListEx.setPath( LoadDirTreeEx.getSelectedPath(), $LoadFileExFileSpec );
}
//--------------------------------------
function DoOpenFileExCallback()
{
%path = LoadDirTreeEx.getSelectedPath();
%file = LoadFileListEx.getSelectedFile();
%cat = %path @ "/" @ %file;
// MEOW
eval( $GuiLoadDialogCallback @ "(\"" @ %cat @"\");" );
Canvas.popDialog(LoadFileDlg);
}
function LoadDirTreeEx::onSelectPath( %this, %path )
{
// Update our file view to reflect the changes
LoadFileListEx.setPath( %path, $LoadFileExFileSpec );
}
function LoadFileListEx::onDoubleClick(%this)
{
DoOpenFileExCallback();
}

View File

@ -0,0 +1,73 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxOKCancelDlg) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl(MBOKCancelFrame) {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 175";
extent = "300 129";
minExtent = "48 92";
visible = "1";
helpTag = "0";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
new GuiMLTextCtrl(MBOKCancelText) {
profile = "GuiTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 24";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "158 88";
extent = "110 23";
minExtent = "8 8";
visible = "1";
command = "MessageCallback(MessageBoxOKCancelDlg,MessageBoxOKCancelDlg.callback);";
accelerator = "return";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "30 88";
extent = "110 23";
minExtent = "8 8";
visible = "1";
command = "MessageCallback(MessageBoxOKCancelDlg,MessageBoxOKCancelDlg.cancelCallback);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View File

@ -0,0 +1,59 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxOKDlg) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl(MBOKFrame) {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 175";
extent = "300 129";
minExtent = "48 92";
visible = "1";
helpTag = "0";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
new GuiMLTextCtrl(MBOKText) {
profile = "GuiTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 24";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "95 88";
extent = "110 23";
minExtent = "8 8";
visible = "1";
command = "MessageCallback(MessageBoxOKDlg,MessageBoxOKDlg.callback);";
accelerator = "return";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View File

@ -0,0 +1,73 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxYesNoDlg) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl(MBYesNoFrame) {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 175";
extent = "300 129";
minExtent = "48 92";
visible = "1";
helpTag = "0";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
new GuiMLTextCtrl(MBYesNoText) {
profile = "GuiTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 24";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "158 88";
extent = "110 23";
minExtent = "8 8";
visible = "1";
command = "MessageCallback(MessageBoxYesNoDlg,MessageBoxYesNoDlg.yesCallback);";
accelerator = "return";
helpTag = "0";
text = "YES";
simpleStyle = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "30 88";
extent = "110 23";
minExtent = "8 8";
visible = "1";
command = "MessageCallback(MessageBoxYesNoDlg,MessageBoxYesNoDlg.noCallback);";
accelerator = "escape";
helpTag = "0";
text = "NO";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View File

@ -0,0 +1,45 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessagePopupDlg) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl(MessagePopFrame) {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 175";
extent = "300 92";
minExtent = "48 92";
visible = "1";
helpTag = "0";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
new GuiMLTextCtrl(MessagePopText) {
profile = "GuiTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 24";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
};
//--- OBJECT WRITE END ---

182
example/common/ui/NetGraphGui.gui Executable file
View File

@ -0,0 +1,182 @@
// Profiles
new GuiControlProfile (NetGraphGhostsActiveProfile)
{
fontColor = "255 255 255";
};
new GuiControlProfile (NetGraphGhostUpdatesProfile)
{
fontColor = "255 0 0";
};
new GuiControlProfile (NetGraphBitsSentProfile)
{
fontColor = "0 255 0";
};
new GuiControlProfile (NetGraphBitsReceivedProfile)
{
fontColor = "0 0 255";
};
new GuiControlProfile (NetGraphLatencyProfile)
{
fontColor = "0 255 255";
};
new GuiControlProfile (NetGraphPacketLossProfile)
{
fontColor = "0 0 0";
};
//--- OBJECT WRITE BEGIN ---
new GuiControl(NetGraphGui) {
profile = "GuiDefaultProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
noCursor = "1";
new GuiGraphCtrl(NetGraph) {
profile = "GuiDefaultProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "432 5";
extent = "200 200";
minExtent = "8 2";
visible = "1";
};
new GuiTextCtrl(Latency) {
profile = "NetGraphLatencyProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "436 184";
extent = "100 18";
minExtent = "8 2";
visible = "1";
text = "Latency";
maxLength = "255";
};
new GuiTextCtrl(PacketLoss) {
profile = "GuiTextProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "536 184";
extent = "59 18";
minExtent = "8 2";
visible = "1";
text = "Packet Loss";
maxLength = "255";
};
new GuiTextCtrl(BitsReceived) {
profile = "NetGraphBitsReceivedProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "536 170";
extent = "100 18";
minExtent = "8 2";
visible = "1";
text = "Bits Received";
maxLength = "255";
};
new GuiTextCtrl(GhostsActive) {
profile = "NetGraphGhostsActiveProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "436 156";
extent = "100 18";
minExtent = "8 2";
visible = "1";
text = "Ghosts Active";
maxLength = "255";
};
new GuiTextCtrl(GhostUpdates) {
profile = "NetGraphGhostUpdatesProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "536 156";
extent = "100 18";
minExtent = "8 2";
visible = "1";
text = "Ghost Updates";
maxLength = "255";
};
new GuiTextCtrl(BitsSent) {
profile = "NetGraphBitsSentProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "436 170";
extent = "100 18";
minExtent = "8 2";
visible = "1";
text = "Bits Sent";
maxLength = "255";
};
};
//--- OBJECT WRITE END ---
// Functions
function NetGraph::toggleNetGraph()
{
if(!$NetGraph::isInitialized)
{
$Stats::netGhostUpdates = 0;
NetGraph::updateStats();
$NetGraph::isInitialized = true;
}
if(!Canvas.isMember(NetGraphGui))
{
Canvas.add(NetGraphGui);
}
else
Canvas.remove(NetGraphGui);
}
function NetGraph::updateStats()
{
$NetGraphThread = NetGraph.schedule(32, "updateStats");
if(!$Stats::netGhostUpdates)
return;
if(isobject(NetGraph))
{
if(isobject(ServerConnection))
NetGraph.addDatum(0,ServerConnection.getGhostsActive());
GhostsActive.setText("Ghosts Active: " @ ServerConnection.getGhostsActive());
NetGraph.addDatum(1,$Stats::netGhostUpdates);
GhostUpdates.setText("Ghost Updates: " @ $Stats::netGhostUpdates);
$Stats::netGhostUpdates = 0;
NetGraph.addDatum(2,$Stats::netBitsSent);
BitsSent.setText("Bits Sent: " @ $Stats::netBitsSent);
NetGraph.addDatum(3,$Stats::netBitsReceived);
BitsReceived.setText("Bits Received: " @ $Stats::netBitsReceived);
NetGraph.matchScale(2,3);
NetGraph.addDatum(4,ServerConnection.getPing());
Latency.setText("Latency: " @ ServerConnection.getPing());
NetGraph.addDatum(5,ServerConnection.getPacketLoss());
PacketLoss.setText("Packet Loss: " @ ServerConnection.getPacketLoss());
}
}
function NetGraph::toggleKey()
{
if(!GhostsActive.visible)
{
GhostsActive.visible = 1;
GhostUpdates.visible = 1;
BitsSent.visible = 1;
BitsReceived.visible = 1;
Latency.visible = 1;
PacketLoss.visible = 1;
}
else
{
GhostsActive.visible = 0;
GhostUpdates.visible = 0;
BitsSent.visible = 0;
BitsReceived.visible = 0;
Latency.visible = 0;
PacketLoss.visible = 0;
}
}

View File

@ -0,0 +1,97 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(recordingsDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "55 65";
extent = "530 338";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "Demo Recordings";
maxLength = "255";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "Canvas.popDialog(recordingsDlg);";
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "23 37";
extent = "484 260";
minExtent = "32 32";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
defaultLineHeight = "15";
new GuiTextListCtrl(RecordingsDlgList) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 2";
extent = "462 20";
minExtent = "8 20";
visible = "1";
helpTag = "0";
enumerate = "0";
columns = "0";
resizeCell = "1";
fitParentWidth = "1";
clipColumnText = "0";
noDuplicates = "false";
};
};
new GuiButtonCtrl(DR_CancelBtn) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "396 306";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "Canvas.popDialog(recordingsDlg);";
accelerator = "escape";
helpTag = "0";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl(DR_StartDemoBtn) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "25 305";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "StartSelectedDemo();";
helpTag = "0";
text = "Play";
groupNum = "-1";
buttonType = "PushButton";
};
};
};
//--- OBJECT WRITE END ---

245
example/common/ui/SaveFileDlg.gui Executable file
View File

@ -0,0 +1,245 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(SaveFileDlgEx) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
fitParentWidth = "0";
fitParentHeight = "0";
position = "0 0";
extent = "800 600";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
fitParentWidth = "0";
fitParentHeight = "0";
position = "73 61";
extent = "653 478";
minExtent = "8 8";
visible = "1";
text = "Save File...";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
MinSize = "50 50";
closeCommand = "Canvas.popDialog(SaveFileDlgEx);";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "left";
vertSizing = "top";
fitParentWidth = "0";
fitParentHeight = "0";
position = "513 449";
extent = "60 20";
minExtent = "8 8";
visible = "1";
command = "DoSaveFileExCallback();";
text = "Save";
groupNum = "-1";
buttonType = "PushButton";
helpTag = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "left";
vertSizing = "top";
fitParentWidth = "0";
fitParentHeight = "0";
position = "583 449";
extent = "60 20";
minExtent = "8 8";
visible = "1";
command = "Canvas.popDialog(SaveFileDlgEx);";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
helpTag = "0";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "top";
position = "10 449";
extent = "89 18";
minExtent = "8 2";
visible = "1";
text = "File name:";
maxLength = "255";
};
new GuiTextEditCtrl(SaveFileExEdit) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "top";
position = "60 449";
extent = "286 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
};
new GuiFrameSetCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
fitParentWidth = "0";
fitParentHeight = "0";
position = "4 24";
extent = "643 416";
minExtent = "8 2";
visible = "1";
columns = "0 245";
rows = "0";
borderWidth = "7";
borderColor = "206 206 206 206";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
fudgeFactor = "0";
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "bottom";
fitParentWidth = "0";
fitParentHeight = "1";
position = "0 0";
extent = "238 416";
minExtent = "8 2";
visible = "1";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiDirectoryTreeCtrl(SaveDirTreeEx) {
profile = "GuiDirectoryTreeProfile";
horizSizing = "right";
vertSizing = "bottom";
fitParentWidth = "0";
fitParentHeight = "0";
position = "2 -670";
extent = "206 1470";
minExtent = "8 2";
visible = "1";
tabSize = "16";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "21";
destroyTreeOnSleep = "0";
MouseDragging = "0";
MultipleSelections = "0";
};
};
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "bottom";
fitParentWidth = "1";
fitParentHeight = "1";
position = "245 0";
extent = "643 416";
minExtent = "8 2";
visible = "1";
willFirstRespond = "1";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiDirectoryFileListCtrl(SaveFileListEx) {
profile = "GuiDirectoryFileListProfile";
horizSizing = "right";
vertSizing = "bottom";
fitParentWidth = "0";
fitParentHeight = "0";
position = "2 2";
extent = "621 224";
minExtent = "8 2";
visible = "1";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// ex: getSaveFilenameEx("~/stuff/*.*", saveStuff);
// -- calls 'saveStuff(%filename)' on ok
//------------------------------------------------------------------------------
function getSaveFilename(%filespec, %callback, %currentFile)
{
$GuiSaveDialogCallback = %callback;
if( %filespec $= "" )
$SaveFileExFileSpec = "*.*";
else
$SaveFileExFileSpec = %filespec;
Canvas.pushDialog(SaveFileDlgEx, 99);
$SaveFileExFile = %currentFile;
// If we have a current path, set the tree to it
if( filePath( %currentFile ) !$= "" )
SaveDirTreeEx.setSelectedPath( filePath( %currentFile ) );
else if ( $pref::Constructor::lastPath !$= "" )
SaveDirTreeEx.setSelectedPath( $pref::Constructor::lastPath );
// Update our file view to reflect the changes
SaveFileListEx.setPath( SaveDirTreeEx.getSelectedPath(), $SaveFileExFileSpec );
// Update the file edit control
SaveFileExEdit.setText(fileName($SaveFileExFile));
}
//--------------------------------------
function DoSaveFileExCallback()
{
%path = SaveDirTreeEx.getSelectedPath();
%file = SaveFileExEdit.getValue();
%cat = %path @ "/" @ %file;
// MEOW
echo(%cat);
eval( $GuiSaveDialogCallback @ "(\"" @ %cat @"\");" );
Canvas.popDialog(SaveFileDlgEx);
}
function SaveDirTreeEx::onSelectPath( %this, %path )
{
// Update our file view to reflect the changes
SaveFileListEx.setPath( %path, $SaveFileExFileSpec );
$pref::Constructor::lastPath = %path;
}
function SaveFileListEx::onSelect( %this, %listid, %file )
{
// Update our file name to the one selected
SaveFileExEdit.setText( %file );
}

BIN
example/common/ui/audio.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

BIN
example/common/ui/cache/Arial 12 (ansi).uft vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
example/common/ui/cache/Arial 14 (ansi).uft vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
example/common/ui/cache/Arial 16 (ansi).uft vendored Executable file

Binary file not shown.

BIN
example/common/ui/cache/Arial 24 (ansi).uft vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

33
example/common/ui/cache/clipboard.gui vendored Normal file
View File

@ -0,0 +1,33 @@
new SimSet(guiClipboard) {
new GuiBitmapButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "22 280";
Extent = "182 58";
MinExtent = "8 2";
Visible = "1";
Command = "Theo.setFile(\"demo/data/video/areTorquePopular.ogg\");";
text = "Button";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "demo/client/ui/theora/button";
helpTag = "0";
new GuiMLTextCtrl() {
Profile = "GuiMLTextNoSelectProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "9 7";
Extent = "100 42";
MinExtent = "8 2";
Visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "<color:ffffff><font:Arial Bold:14>A demo of \nsome of Torque\'s \nlovely goodness.";
helpTag = "0";
};
};
};

BIN
example/common/ui/camera.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

BIN
example/common/ui/darkBorder.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
example/common/ui/darkScroll.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
example/common/ui/darkTab.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
example/common/ui/darkTabPage.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
example/common/ui/darkWindow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
example/common/ui/default.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

View File

@ -0,0 +1,644 @@
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
//--------------------------------------------------------------------------
$Gui::fontCacheDirectory = expandFilename("./cache");
$Gui::clipboardFile = expandFilename("./cache/clipboard.gui");
// GuiDefaultProfile is a special case, all other profiles are initialized
// to the contents of this profile first then the profile specific
// overrides are assigned.
if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
{
tab = false;
canKeyFocus = false;
hasBitmapArray = false;
mouseOverSelected = false;
// fill color
opaque = false;
fillColor = ($platform $= "macos") ? "211 211 211" : "192 192 192";
fillColorHL = ($platform $= "macos") ? "244 244 244" : "220 220 220";
fillColorNA = ($platform $= "macos") ? "244 244 244" : "220 220 220";
// border color
border = false;
borderColor = "0 0 0";
borderColorHL = "128 128 128";
borderColorNA = "64 64 64";
bevelColorHL = "255 255 255";
bevelColorLL = "0 0 0";
// font
fontType = "Arial";
fontSize = 14;
fontCharset = CHINESEBIG5;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fontColorNA = "0 0 0";
// bitmap information
bitmap = ($platform $= "macos") ? "./osxWindow" : "./darkWindow";
bitmapBase = "";
textOffset = "0 0";
// used by guiTextControl
modal = true;
justify = "left";
autoSizeWidth = false;
autoSizeHeight = false;
returnTab = false;
numbersOnly = false;
cursorColor = "0 0 0 255";
// sounds
soundButtonDown = "";
soundButtonOver = "";
};
if(!isObject(GuiInputCtrlProfile)) new GuiControlProfile( GuiInputCtrlProfile )
{
tab = true;
canKeyFocus = true;
};
if(!isObject(GuiDialogProfile)) new GuiControlProfile(GuiDialogProfile);
if(!isObject(GuiSolidDefaultProfile)) new GuiControlProfile (GuiSolidDefaultProfile)
{
opaque = true;
border = true;
};
if(!isObject(GuiWindowProfile)) new GuiControlProfile (GuiWindowProfile)
{
opaque = true;
border = 2;
fillColor = ($platform $= "macos") ? "211 211 211" : "192 192 192";
fillColorHL = ($platform $= "macos") ? "190 255 255" : "64 150 150";
fillColorNA = ($platform $= "macos") ? "255 255 255" : "150 150 150";
fontColor = ($platform $= "macos") ? "0 0 0" : "255 255 255";
fontColorHL = ($platform $= "macos") ? "200 200 200" : "0 0 0";
text = "GuiWindowCtrl test";
bitmap = ($platform $= "macos") ? "./osxWindow" : "./darkWindow";
textOffset = ($platform $= "macos") ? "5 5" : "6 6";
hasBitmapArray = true;
justify = ($platform $= "macos") ? "center" : "left";
};
if(!isObject(GuiToolWindowProfile)) new GuiControlProfile (GuiToolWindowProfile)
{
opaque = true;
border = 2;
fillColor = "192 192 192";
fillColorHL = "64 150 150";
fillColorNA = "150 150 150";
fontColor = "255 255 255";
fontColorHL = "0 0 0";
bitmap = "./torqueToolWindow";
textOffset = "6 6";
};
if( !isObject(GuiTabBookProfile) ) new GuiControlProfile (GuiTabBookProfile)
{
fillColor = "255 255 255";
fillColorHL = "64 150 150";
fillColorNA = "150 150 150";
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fontColorNA = "0 0 0";
justify = "center";
bitmap = "./darkTab";
tabWidth = 64;
tabHeight = 24;
tabPosition = "Top";
tabRotation = "Horizontal";
tab = true;
cankeyfocus = true;
};
if( !isObject(GuiTabPageProfile) ) new GuiControlProfile (GuiTabPageProfile)
{
bitmap = "./darkTabPage";
tab = true;
};
if(!isObject(GuiContentProfile)) new GuiControlProfile (GuiContentProfile)
{
opaque = true;
fillColor = "255 255 255";
};
if(!isObject(GuiModelessDialogProfile)) new GuiControlProfile("GuiModelessDialogProfile")
{
modal = false;
};
if(!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
{
opaque = true;
border = true;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fixedExtent = true;
justify = "center";
canKeyFocus = false;
};
if(!isObject(GuiBorderButtonProfile)) new GuiControlProfile (GuiBorderButtonProfile)
{
fontColorHL = "0 0 0";
};
if(!isObject(GuiMenuBarProfile)) new GuiControlProfile (GuiMenuBarProfile)
{
fontType = "Arial";
fontSize = 15;
opaque = true;
fillColor = ($platform $= "macos") ? "211 211 211" : "192 192 192";
fillColorHL = "0 0 96";
border = 4;
fontColor = "0 0 0";
fontColorHL = "255 255 255";
fontColorNA = "128 128 128";
fixedExtent = true;
justify = "center";
canKeyFocus = false;
mouseOverSelected = true;
bitmap = ($platform $= "macos") ? "./osxMenu" : "./torqueMenu";
hasBitmapArray = true;
};
if(!isObject(GuiButtonSmProfile)) new GuiControlProfile (GuiButtonSmProfile : GuiButtonProfile)
{
fontSize = 14;
};
if(!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile)
{
fontSize = 14;
fillColor = "232 232 232";
fontColorHL = "32 100 100";
fixedExtent = true;
bitmap = ($platform $= "macos") ? "./osxRadio" : "./torqueRadio";
hasBitmapArray = true;
};
if(!isObject(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
{
opaque = true;
fillColor = "255 255 255";
border = 3;
borderThickness = 2;
borderColor = "0 0 0";
bitmap = ($platform $= "macos") ? "./osxScroll" : "./darkScroll";
hasBitmapArray = true;
};
if(!isObject(VirtualScrollProfile)) new GuiControlProfile (VirtualScrollProfile : GuiScrollProfile);
if(!isObject(GuiSliderProfile)) new GuiControlProfile (GuiSliderProfile);
if(!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile)
{
fontColor = "0 0 0";
fontColorLink = "255 96 96";
fontColorLinkHL = "0 0 255";
autoSizeWidth = true;
autoSizeHeight = true;
};
if(!isObject(GuiMediumTextProfile)) new GuiControlProfile (GuiMediumTextProfile : GuiTextProfile)
{
fontSize = 24;
};
if(!isObject(GuiBigTextProfile)) new GuiControlProfile (GuiBigTextProfile : GuiTextProfile)
{
fontSize = 36;
};
if(!isObject(GuiCenterTextProfile)) new GuiControlProfile (GuiCenterTextProfile : GuiTextProfile)
{
justify = "center";
};
if(!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile)
{
opaque = true;
fillColor = "255 255 255";
fillColorHL = "128 128 128";
border = 3;
borderThickness = 2;
borderColor = "0 0 0";
fontColor = "0 0 0";
fontColorHL = "255 255 255";
fontColorNA = "128 128 128";
textOffset = "0 2";
autoSizeWidth = false;
autoSizeHeight = true;
tab = true;
canKeyFocus = true;
};
if(!isObject(GuiControlListPopupProfile)) new GuiControlProfile (GuiControlListPopupProfile)
{
opaque = true;
fillColor = "255 255 255";
fillColorHL = "128 128 128";
border = true;
borderColor = "0 0 0";
fontColor = "0 0 0";
fontColorHL = "255 255 255";
fontColorNA = "128 128 128";
textOffset = "0 2";
autoSizeWidth = false;
autoSizeHeight = true;
tab = true;
canKeyFocus = true;
bitmap = ($platform $= "macos") ? "./osxScroll" : "./darkScroll";
hasBitmapArray = true;
};
if(!isObject(GuiTextArrayProfile)) new GuiControlProfile (GuiTextArrayProfile : GuiTextProfile)
{
fontColorHL = "32 100 100";
fillColorHL = "200 200 200";
};
if(!isObject(GuiTextListProfile)) new GuiControlProfile (GuiTextListProfile : GuiTextProfile)
{
tab = true;
canKeyFocus = true;
};
if(!isObject(GuiBaseTreeViewProfile)) new GuiControlProfile (GuiBaseTreeViewProfile)
{
fontSize = 13; // dhc - trying a better fit...
fontColor = "0 0 0";
fontColorHL = "64 150 150";
canKeyFocus = true;
autoSizeHeight = true;
};
if(!isObject(GuiChatMenuTreeProfile)) new GuiControlProfile (GuiChatMenuTreeProfile : GuiBaseTreeViewProfile);
if(!isObject(GuiTreeViewProfile)) new GuiControlProfile (GuiTreeViewProfile : GuiBaseTreeViewProfile)
{
fontColorSEL= "250 250 250";
fillColorHL = "0 60 150";
fontColorNA = "240 240 240";
bitmap = "./shll_treeView";
};
if(!isObject(GuiDirectoryTreeProfile)) new GuiControlProfile ( GuiDirectoryTreeProfile : GuiTreeViewProfile )
{
fontColor = "40 40 40";
fontColorSEL= "250 250 250 175";
fillColorHL = "0 60 150";
fontColorNA = "240 240 240";
bitmap = "./shll_treeView";
fontType = "Arial";
fontSize = 14;
};
if(!isObject(GuiDirectoryFileListProfile)) new GuiControlProfile ( GuiDirectoryFileListProfile )
{
fontColor = "40 40 40";
fontColorSEL= "250 250 250 175";
fillColorHL = "0 60 150";
fontColorNA = "240 240 240";
fontType = "Arial";
fontSize = 14;
};
if(!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile)
{
opaque = false;
fillColor = "232 232 232";
border = false;
borderColor = "0 0 0";
fontSize = 14;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fixedExtent = true;
justify = "left";
bitmap = ($platform $= "macos") ? "./osxCheck" : "./torqueCheck";
hasBitmapArray = true;
};
if(!isObject(GuiPopUpMenuProfile)) new GuiControlProfile (GuiPopUpMenuProfile)
{
opaque = true;
mouseOverSelected = true;
border = 4;
borderThickness = 2;
borderColor = "0 0 0";
fontSize = 14;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fontColorSEL = "32 100 100";
fixedExtent = true;
justify = "center";
bitmap = ($platform $= "macos") ? "./osxScroll" : "./darkScroll";
hasBitmapArray = true;
};
if(!isObject(LoadTextProfile)) new GuiControlProfile ("LoadTextProfile")
{
fontColor = "66 219 234";
autoSizeWidth = true;
autoSizeHeight = true;
};
if(!isObject(GuiMLTextProfile)) new GuiControlProfile ("GuiMLTextProfile")
{
fontColorLink = "255 96 96";
fontColorLinkHL = "0 0 255";
};
if(!isObject(GuiMLTextNoSelectProfile)) new GuiControlProfile ("GuiMLTextNoSelectProfile")
{
fontColorLink = "255 96 96";
fontColorLinkHL = "0 0 255";
modal = false;
};
if(!isObject(GuiMLTextEditProfile)) new GuiControlProfile (GuiMLTextEditProfile)
{
fontColorLink = "255 96 96";
fontColorLinkHL = "0 0 255";
fillColor = "255 255 255";
fillColorHL = "128 128 128";
fontColor = "0 0 0";
fontColorHL = "255 255 255";
fontColorNA = "128 128 128";
autoSizeWidth = true;
autoSizeHeight = true;
tab = true;
canKeyFocus = true;
};
if(!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile)
{
tab = false;
canKeyFocus = false;
hasBitmapArray = false;
mouseOverSelected = false;
// fill color
opaque = true;
fillColor = "255 255 225";
// border color
border = true;
borderColor = "0 0 0";
fontColor = "0 0 0";
fontColorHL = "0 0 0";
fontColorNA = "0 0 0";
// used by guiTextControl
modal = true;
justify = "left";
autoSizeWidth = false;
autoSizeHeight = false;
returnTab = false;
numbersOnly = false;
cursorColor = "0 0 0 255";
};
//--------------------------------------------------------------------------
// Console Window
if(!isObject(GuiConsoleProfile)) new GuiControlProfile ("GuiConsoleProfile")
{
fontType = ($platform $= "macos") ? "Monaco" : "Lucida Console";
fontSize = ($platform $= "macos") ? 13 : 12;
fontColor = "0 0 0";
fontColorHL = "130 130 130";
fontColorNA = "255 0 0";
fontColors[6] = "50 50 50";
fontColors[7] = "50 50 0";
fontColors[8] = "0 0 50";
fontColors[9] = "0 50 0";
};
if(!isObject(GuiProgressProfile)) new GuiControlProfile ("GuiProgressProfile")
{
opaque = false;
fillColor = "44 152 162 100";
border = true;
borderColor = "78 88 120";
};
if(!isObject(GuiProgressTextProfile)) new GuiControlProfile ("GuiProgressTextProfile")
{
fontColor = "0 0 0";
justify = "center";
};
if(!isObject(GuiBitmapBorderProfile)) new GuiControlProfile(GuiBitmapBorderProfile)
{
bitmap = "./darkBorder";
hasBitmapArray = true;
};
if(!isObject(GuiPaneProfile)) new GuiControlProfile(GuiPaneProfile)
{
bitmap = "./torquePane";
hasBitmapArray = true;
};
//////////////////////////////////////////////////////////////////////////
// Gui Inspector Profiles
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
// Field Profile
//////////////////////////////////////////////////////////////////////////
if(!isObject(GuiInspectorFieldProfile)) new GuiControlProfile (GuiInspectorFieldProfile)
{
// fill color
opaque = false;
fillColor = "255 255 255";
fillColorHL = "128 128 128";
fillColorNA = "244 244 244";
// border color
border = false;
borderColor = "190 190 190";
borderColorHL = "156 156 156";
borderColorNA = "64 64 64";
bevelColorHL = "255 255 255";
bevelColorLL = "0 0 0";
// font
fontType = "Arial";
fontSize = 16;
fontColor = "32 32 32";
fontColorHL = "32 100 100";
fontColorNA = "0 0 0";
tab = true;
canKeyFocus = true;
};
if(!isObject(GuiInspectorBackgroundProfile)) new GuiControlProfile (GuiInspectorBackgroundProfile : GuiInspectorFieldProfile)
{
border = 5;
};
if(!isObject(GuiInspectorDynamicFieldProfile)) new GuiControlProfile (GuiInspectorDynamicFieldProfile : GuiInspectorFieldProfile);
//////////////////////////////////////////////////////////////////////////
// Default Field (TextEdit) Profile
//////////////////////////////////////////////////////////////////////////
if(!isObject(GuiInspectorTextEditProfile)) new GuiControlProfile ("GuiInspectorTextEditProfile")
{
// Transparent Background
opaque = false;
// No Border (Rendered by field control)
border = false;
tab = true;
canKeyFocus = true;
// font
fontType = "Arial";
fontSize = 16;
fontColor = "32 32 32";
fontColorHL = "32 100 100";
fontColorNA = "0 0 0";
};
if(!isObject(InspectorTypeEnumProfile)) new GuiControlProfile (InspectorTypeEnumProfile : GuiInspectorFieldProfile)
{
mouseOverSelected = true;
bitmap = ($platform $= "macos") ? "./osxScroll" : "./darkScroll";
hasBitmapArray = true;
opaque=true;
border=true;
};
if(!isObject(InspectorTypeCheckboxProfile)) new GuiControlProfile (InspectorTypeCheckboxProfile : GuiInspectorFieldProfile)
{
bitmap = ($platform $= "macos") ? "./osxCheck" : "./torqueCheck";
hasBitmapArray = true;
opaque=false;
border=false;
};
// For TypeFileName browse button
if(!isObject(GuiInspectorTypeFileNameProfile)) new GuiControlProfile (GuiInspectorTypeFileNameProfile)
{
// Transparent Background
opaque = false;
// No Border (Rendered by field control)
border = 5;
tab = true;
canKeyFocus = true;
// font
fontType = "Arial";
fontSize = 16;
// Center text
justify = "center";
fontColor = "32 32 32";
fontColorHL = "32 100 100";
fontColorNA = "0 0 0";
fillColor = "255 255 255";
fillColorHL = "128 128 128";
fillColorNA = "244 244 244";
borderColor = "190 190 190";
borderColorHL = "156 156 156";
borderColorNA = "64 64 64";
};
//-------------------------------------- Cursors
//
new GuiCursor(DefaultCursor)
{
hotSpot = "1 1";
renderOffset = "0 0";
bitmapName = "./CUR_3darrow";
};
new GuiCursor(LeftRightCursor)
{
hotSpot = "1 1";
renderOffset = "0.5 0";
bitmapName = "./CUR_leftright";
};
new GuiCursor(UpDownCursor)
{
hotSpot = "1 1";
renderOffset = "0 1";
bitmapName = "./CUR_updown";
};
new GuiCursor(NWSECursor)
{
hotSpot = "1 1";
renderOffset = "0.5 0.5";
bitmapName = "./CUR_nwse";
};
new GuiCursor(NESWCursor)
{
hotSpot = "1 1";
renderOffset = "0.5 0.5";
bitmapName = "./CUR_nesw";
};
new GuiCursor(MoveCursor)
{
hotSpot = "1 1";
renderOffset = "0.5 0.5";
bitmapName = "./CUR_move";
};
new GuiCursor(TextEditCursor)
{
hotSpot = "1 1";
renderOffset = "0.5 0.5";
bitmapName = "./CUR_textedit";
};

BIN
example/common/ui/folder.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

BIN
example/common/ui/fxfoliage.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

BIN
example/common/ui/fxlight.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

BIN
example/common/ui/fxsunlight.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

BIN
example/common/ui/hidden.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

BIN
example/common/ui/icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

BIN
example/common/ui/interior.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
example/common/ui/lightning.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

BIN
example/common/ui/osxCheck.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
example/common/ui/osxMenu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
example/common/ui/osxRadio.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
example/common/ui/osxScroll.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
example/common/ui/osxWindow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
example/common/ui/particle.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

BIN
example/common/ui/path.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

BIN
example/common/ui/pathmarker.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

BIN
example/common/ui/server_tabs.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
example/common/ui/shape.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
example/common/ui/simgroup.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

BIN
example/common/ui/sky.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
example/common/ui/sun.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

BIN
example/common/ui/terrain.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

BIN
example/common/ui/torqueCheck.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

BIN
example/common/ui/torqueMenu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Some files were not shown because too many files have changed in this diff Show More