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

Method enableItem

Engine/source/gui/editor/popupMenu.cpp:223–229  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

221
222//////////////////////////////////////////////////////////////////////////
223void PopupMenu::enableItem(S32 pos, bool enable)
224{
225 if (mMenuItems.empty() || mMenuItems.size() < pos || pos < 0)
226 return;
227
228 mMenuItems[pos].mEnabled = enable;
229}
230
231void PopupMenu::checkItem(S32 pos, bool checked)
232{

Callers 1

popupMenu.cppFile · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected