mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merges in Monkey's fixes PR with a resolution for a conflict
This commit is contained in:
commit
bedc79aacb
22 changed files with 131 additions and 74 deletions
|
|
@ -159,7 +159,7 @@ IMPLEMENT_CALLBACK( GuiMenuBar, onSubmenuSelect, void, ( S32 submenuId, const ch
|
|||
// console methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
DefineEngineMethod( GuiMenuBar, clearMenus, void, ( S32 param1, S32 param2),,
|
||||
DefineEngineMethod( GuiMenuBar, clearMenus, void, (),,
|
||||
"@brief Clears all the menus from the menu bar.\n\n"
|
||||
"@tsexample\n"
|
||||
"// Inform the GuiMenuBar control to clear all menus from itself.\n"
|
||||
|
|
@ -1035,7 +1035,7 @@ void GuiMenuBar::addSubmenuItem(Menu *menu, MenuItem *submenu, const char *text,
|
|||
newMenuItem->checkGroup = checkGroup;
|
||||
newMenuItem->nextMenuItem = NULL;
|
||||
newMenuItem->acceleratorIndex = 0;
|
||||
newMenuItem->enabled = text[0] != '-';
|
||||
newMenuItem->enabled = (dStrlen(text) > 1 || text[0] != '-');
|
||||
newMenuItem->visible = true;
|
||||
newMenuItem->bitmapIndex = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue