mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Altered a few of the input images to improve readability of some of the text Standardizes the menuInputButton set usage to just use the raw action names rather than a middleman naming scheme for simplicity and standardization Added comments to menuInputButtons.cs Split out the menuInputButton containers to simplify and stabilize the code on the messageBox dialog Removed old reference to script/gui files not there anymore Simplified the input state check in guiGameListMenuCtrl.cpp Added a check so we don't try exec'ing the selected list item in guiGameListMenuCtrl.cpp if nothing has actually be selected
348 lines
11 KiB
Text
348 lines
11 KiB
Text
//--- OBJECT WRITE BEGIN ---
|
|
%guiContent = new GuiControl(MessageBoxDlg) {
|
|
position = "0 0";
|
|
extent = "1024 768";
|
|
minExtent = "8 8";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiOverlayProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
helpTag = "0";
|
|
|
|
new GuiControl(MessageBoxCtrl) {
|
|
position = "192 197";
|
|
extent = "641 381";
|
|
minExtent = "8 2";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
|
|
new GuiBitmapBarCtrl() {
|
|
percent = "100";
|
|
vertical = "0";
|
|
flipClip = "0";
|
|
bitmap = "data/ui/images/panel.png";
|
|
color = "255 255 255 255";
|
|
position = "0 0";
|
|
extent = "641 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "width";
|
|
vertSizing = "bottom";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiTextCtrl(MessageBoxTitleText) {
|
|
text = "OPTIONS";
|
|
maxLength = "1024";
|
|
margin = "0 0 0 0";
|
|
padding = "0 0 0 0";
|
|
anchorTop = "1";
|
|
anchorBottom = "0";
|
|
anchorLeft = "1";
|
|
anchorRight = "0";
|
|
position = "32 7";
|
|
extent = "577 28";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "MenuHeaderText";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiBitmapBarCtrl() {
|
|
percent = "100";
|
|
vertical = "0";
|
|
flipClip = "0";
|
|
bitmap = "data/ui/images/panel_low.png";
|
|
color = "255 255 255 255";
|
|
position = "0 40";
|
|
extent = "641 341";
|
|
minExtent = "8 2";
|
|
horizSizing = "width";
|
|
vertSizing = "bottom";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiMLTextCtrl(MessageBoxText) {
|
|
lineSpacing = "2";
|
|
allowColorChars = "0";
|
|
maxChars = "-1";
|
|
useURLMouseCursor = "0";
|
|
position = "81 83";
|
|
extent = "481 19";
|
|
minExtent = "8 8";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "MenuMLSubHeaderText";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiControl(MessageBoxOKButtonHolder) {
|
|
position = "0 285";
|
|
extent = "642 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "center";
|
|
vertSizing = "top";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
class = "MenuInputButtonContainer";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "251 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "OKButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
};
|
|
new GuiControl(MessageBoxOCButtonHolder) {
|
|
position = "0 285";
|
|
extent = "642 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "center";
|
|
vertSizing = "top";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
class = "MenuInputButtonContainer";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "171 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "OKButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "323 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "CancelButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
};
|
|
new GuiControl(MessageBoxYNCButtonHolder) {
|
|
position = "0 285";
|
|
extent = "642 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "center";
|
|
vertSizing = "top";
|
|
profile = "GuiDefaultProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "1";
|
|
class = "MenuInputButtonContainer";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "99 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "yesButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "251 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "noButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
new GuiIconButtonCtrl() {
|
|
buttonMargin = "4 4";
|
|
iconBitmap = "data/ui/images/Inputs/Keyboard & Mouse/Keyboard_Black_Enter";
|
|
iconLocation = "Left";
|
|
sizeIconToButton = "1";
|
|
makeIconSquare = "1";
|
|
textLocation = "Right";
|
|
textMargin = "4";
|
|
autoSize = "0";
|
|
text = "Go";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
useMouseEvents = "0";
|
|
position = "403 0";
|
|
extent = "140 40";
|
|
minExtent = "8 2";
|
|
horizSizing = "right";
|
|
vertSizing = "bottom";
|
|
profile = "GuiMenuButtonProfile";
|
|
visible = "1";
|
|
active = "1";
|
|
command = "MainMenuButtonList.activateRow();";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
hovertime = "1000";
|
|
isContainer = "0";
|
|
internalName = "CancelButton";
|
|
class = "MenuInputButton";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "0";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|