mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
inputTest Module Update
Updates the input event monitor to work with the current BaseGame template.
This commit is contained in:
parent
0f89373782
commit
58a79e0105
3 changed files with 19 additions and 8 deletions
|
|
@ -2,6 +2,8 @@
|
|||
// Add buttons to the MainMenu after all other scripts have been exec'ed.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function inputTest::addMenuButton( %this )
|
||||
{
|
||||
if (isObject(MainMenuGui))
|
||||
{
|
||||
%testBtn = new GuiButtonCtrl() {
|
||||
|
|
@ -56,4 +58,8 @@
|
|||
}
|
||||
|
||||
MMTestContainer.add(%testBtn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (inputTest.addToMainMenu)
|
||||
inputTest.addMenuButton();
|
||||
Loading…
Add table
Add a link
Reference in a new issue