MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findPopupMenu

Method findPopupMenu

Engine/source/gui/editor/guiPopupMenuCtrl.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68S32 GuiPopupMenuBackgroundCtrl::findPopupMenu(PopupMenu* menu)
69{
70 S32 menuId = -1;
71
72 for (U32 i = 0; i < mPopups.size(); i++)
73 {
74 if (mPopups[i]->getId() == menu->getId())
75 return i;
76 }
77
78 return menuId;
79}
80
81void GuiPopupMenuBackgroundCtrl::clearPopups()
82{

Callers 1

showPopupMethod · 0.80

Calls 2

getIdMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected