mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
whitespace
This commit is contained in:
parent
6164f36c47
commit
bcc5459818
50 changed files with 2111 additions and 2111 deletions
|
|
@ -54,7 +54,7 @@ PopupMenu::PopupMenu() : mCanvas(NULL)
|
|||
mBarTitle = StringTable->insert("");
|
||||
mIsPopup = false;
|
||||
|
||||
mPopupGUID = sMaxPopupGUID++;
|
||||
mPopupGUID = sMaxPopupGUID++;
|
||||
}
|
||||
|
||||
PopupMenu::~PopupMenu()
|
||||
|
|
@ -126,10 +126,10 @@ void PopupMenu::onMenuSelect()
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
void PopupMenu::handleSelectEvent(U32 popID, U32 command)
|
||||
{
|
||||
if (popID == mPopupGUID && canHandleID(command))
|
||||
if (handleSelect(command))
|
||||
smSelectionEventHandled = true;
|
||||
{
|
||||
if (popID == mPopupGUID && canHandleID(command))
|
||||
if (handleSelect(command))
|
||||
smSelectionEventHandled = true;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -138,8 +138,8 @@ void PopupMenu::onAttachToMenuBar(GuiCanvas *canvas, S32 pos, const char *title)
|
|||
{
|
||||
mCanvas = canvas;
|
||||
|
||||
// Attached menus must be notified of menu events
|
||||
smPopupMenuEvent.notify(this, &PopupMenu::handleSelectEvent);
|
||||
// Attached menus must be notified of menu events
|
||||
smPopupMenuEvent.notify(this, &PopupMenu::handleSelectEvent);
|
||||
|
||||
// Pass on to sub menus
|
||||
for(SimSet::iterator i = mSubmenus->begin();i != mSubmenus->end();++i)
|
||||
|
|
@ -160,8 +160,8 @@ void PopupMenu::onRemoveFromMenuBar(GuiCanvas *canvas)
|
|||
{
|
||||
mCanvas = NULL;
|
||||
|
||||
// We are no longer interested in select events, remove ourselves from the notification list in a safe way
|
||||
Sim::postCurrentEvent(this, new PopUpNotifyRemoveEvent());
|
||||
// We are no longer interested in select events, remove ourselves from the notification list in a safe way
|
||||
Sim::postCurrentEvent(this, new PopUpNotifyRemoveEvent());
|
||||
|
||||
// Pass on to sub menus
|
||||
for(SimSet::iterator i = mSubmenus->begin();i != mSubmenus->end();++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue