mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
Merge branch 'GarageGames/master' into ueberengine-dev
Conflicts: Engine/source/T3D/fps/guiCrossHairHud.cpp
This commit is contained in:
commit
81750f3deb
2827 changed files with 315755 additions and 121398 deletions
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
#include "platformSDL/menus/PlatformSDLPopupMenuData.h"
|
||||
|
||||
#include "platformSDL/menus/guiPlatformGenericMenuBar.h"
|
||||
|
||||
#ifdef TORQUE_SDL
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -44,30 +46,6 @@
|
|||
|
||||
Map<GuiMenuBar::Menu*, PopupMenu*> PlatformPopupMenuData::mMenuMap;
|
||||
|
||||
class GuiPlatformGenericMenuBar : public GuiMenuBar
|
||||
{
|
||||
typedef GuiMenuBar Parent;
|
||||
public:
|
||||
DECLARE_CONOBJECT(GuiPlatformGenericMenuBar);
|
||||
|
||||
virtual void menuItemSelected(Menu *menu, MenuItem *item)
|
||||
{
|
||||
AssertFatal(menu && item, "");
|
||||
|
||||
PopupMenu *popupMenu = PlatformPopupMenuData::mMenuMap[ menu ];
|
||||
AssertFatal(popupMenu, "");
|
||||
|
||||
popupMenu->handleSelect( item->id );
|
||||
|
||||
Parent::menuItemSelected(menu, item);
|
||||
}
|
||||
|
||||
protected:
|
||||
/// menu id / item id
|
||||
Map<CompoundKey<U32, U32>, String> mCmds;
|
||||
|
||||
};
|
||||
|
||||
IMPLEMENT_CONOBJECT(GuiPlatformGenericMenuBar);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue