mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
- Complied the SystemMenu buttons to the groupNum highlighting implementation as they're simple buttons
- Fixed issue of Query Server on-screen button tripping a join action - Added playername textEdit field to Join Server menu - Fixed issue of messageBox on-screen buttons not making the input events properly after adding the make/break check from prior commit - Added MenuTextEditProfile for editable text fields in menu - Fixed issue of not getting the correct shift key bitmap if the button name was l/rshift
This commit is contained in:
parent
e71880b898
commit
150684a47d
6 changed files with 87 additions and 23 deletions
|
|
@ -2,6 +2,8 @@ function SystemMenu::onWake(%this)
|
|||
{
|
||||
$MenuList = SystemMenuButtonList;
|
||||
$MenuList.listPosition = 0;
|
||||
|
||||
$MenuList.syncGui();
|
||||
}
|
||||
|
||||
function SystemMenu::onSleep(%this)
|
||||
|
|
@ -19,10 +21,14 @@ function systemMenuExitToDesktop()
|
|||
MessageBoxOKCancel("Exit?", "Do you wish to exit to the desktop?", "quit();", "");
|
||||
}
|
||||
|
||||
function SystemMenuButton::onHighlighted(%this, %highlighted)
|
||||
{
|
||||
if(%highlighted)
|
||||
$MenuList.listPosition = $MenuList.getObjectIndex(%this);
|
||||
}
|
||||
|
||||
function SystemMenuButtonList::syncGUI(%this)
|
||||
{
|
||||
%this.callOnChildren("setHighlighted", false);
|
||||
|
||||
%btn = %this.getObject(%this.listPosition);
|
||||
%btn.setHighlighted(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue