mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-02 19:15:53 +00:00
Also fixes behavior handling of menu input buttons not refreshing reliably Adds ability to define a control on a MenuList to act as a highlighter over the currently selected control Cleaned up BaseUI pages to use UINavigation which reduced a lot of duplication of elements and code
24 lines
No EOL
512 B
Text
24 lines
No EOL
512 B
Text
function MainMenuGui::onAdd(%this)
|
|
{
|
|
$activeControllerName = "K&M"; //default input type
|
|
}
|
|
|
|
function MainMenuGui::onWake(%this)
|
|
{
|
|
MainMenuButtonHolder.setActive();
|
|
MainMenuInputHandler.setFirstResponder();
|
|
|
|
%this.setRootPage(MainMenuButtonList);
|
|
|
|
%this.resizePages = true;
|
|
}
|
|
|
|
function MainMenuButtonHolder::onWake(%this)
|
|
{
|
|
//clean slate
|
|
%this-->button1.disable();
|
|
%this-->button2.disable();
|
|
%this-->button3.disable();
|
|
%this-->button4.disable();
|
|
%this-->button5.disable();
|
|
} |