mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
- Updated the handling of the option slider entries to utilize temp vars and properly complied the audio channel options to the new setup - Fixed issue where behavior of slider was erratic because of improperly defined tick count - Added logic to check if audio sliders were changed for the 'check unchanged settings' logic - Made the keybind remap inputCtrl ignore axis events - Made the MessageBoxDlg input commands properly check for key makes, to prevent messages boxes from catching key breaks and blowing past follow-up messageboxes accidentally - Fixed forward/backward iteration of options entries, especially on dpad, and added handling for gamepad stick to do the same - Added logic so option sliders can also be manipulated by the forward/backward to make it standard for all - Fixed erroneous marking of "restart required" message as true if any settings change, and not just settings expressly flagged as requiring a restart
82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
//--- OBJECT WRITE BEGIN ---
|
|
$guiContent = new GuiControl(RemapDlg) {
|
|
extent = "1280 720";
|
|
minExtent = "8 8";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
canSaveDynamicFields = "1";
|
|
helpTag = "0";
|
|
|
|
new GuiContainer(RemapPanel) {
|
|
position = "290 308";
|
|
extent = "700 104";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
|
|
new GuiInputCtrl(OptRemapInputCtrl) {
|
|
position = "480 0";
|
|
extent = "64 104";
|
|
minExtent = "8 8";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiInputCtrlProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
sendAxisEvents = "0";
|
|
};
|
|
new GuiControl(RemapBoxCtrl) {
|
|
position = "-1 1";
|
|
extent = "701 102";
|
|
horizSizing = "center";
|
|
vertSizing = "center";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
isContainer = "1";
|
|
|
|
new GuiBitmapCtrl() {
|
|
BitmapAsset = "UI:backdrop_image";
|
|
position = "1 1";
|
|
extent = "701 100";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiDefaultProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiPanel() {
|
|
position = "38 12";
|
|
extent = "625 80";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "GuiMenuBasePanelProfile";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiTextCtrl() {
|
|
text = "Press escape or start to cancel";
|
|
maxLength = "255";
|
|
position = "252 51";
|
|
extent = "245 23";
|
|
minExtent = "8 8";
|
|
horizSizing = "width";
|
|
vertSizing = "height";
|
|
profile = "MenuMLSubHeaderTextCenter";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
};
|
|
new GuiTextCtrl() {
|
|
text = "Re-bind \"\" to...";
|
|
maxLength = "255";
|
|
position = "251 24";
|
|
extent = "184 23";
|
|
minExtent = "8 8";
|
|
horizSizing = "center";
|
|
vertSizing = "height";
|
|
profile = "MenuMLSubHeaderTextCenter";
|
|
tooltipProfile = "GuiToolTipProfile";
|
|
internalName = "OptRemapText";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|