mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
- Added logic to guiButtonBaseCtrl so if highlighted and is part of a group, will signal the siblings in the group as well
- Standardizes highlighting behavior between keybind and mouse highlighting of buttons - Standardized onHighlighted callback for buttonBase - Fixed handling of up/down nav with gamepad stick - Added logic to make holding down nav keybinds iterate over buttons in menu lists
This commit is contained in:
parent
36d00e09d3
commit
f5ab97242f
4 changed files with 301 additions and 247 deletions
|
|
@ -83,6 +83,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "$pref::HostMultiPlayer=false;\nCanvas.pushDialog(ChooseLevelMenu);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuCreateSrvrBtn) {
|
||||
text = "Create Server";
|
||||
|
|
@ -91,6 +93,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "$pref::HostMultiPlayer=true;Canvas.pushDialog(ChooseLevelMenu);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuJoinSrvrBtn) {
|
||||
text = "Join Server";
|
||||
|
|
@ -99,6 +103,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "Canvas.pushDialog(JoinServerMenu);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuOptionBtn) {
|
||||
text = "Options";
|
||||
|
|
@ -107,6 +113,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "Canvas.pushDialog(OptionsMenu);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuWorldEditBtn) {
|
||||
text = "Open World Editor (F11)";
|
||||
|
|
@ -115,6 +123,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "fastLoadWorldEdit(1);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuGuiEditBtn) {
|
||||
text = "Open GUI Editor (F10)";
|
||||
|
|
@ -123,6 +133,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "fastLoadGUIEdit(1);";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuExitBtn) {
|
||||
text = "Exit";
|
||||
|
|
@ -131,6 +143,8 @@ $guiContent = new GuiControl(MainMenuGui) {
|
|||
profile = "GuiMenuButtonProfile";
|
||||
command = "quit();";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
class="MainMenuButton";
|
||||
groupNum = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue