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

Method checkRadioItem

Engine/source/gui/editor/popupMenu.cpp:247–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void PopupMenu::checkRadioItem(S32 firstPos, S32 lastPos, S32 checkPos)
248{
249 for (U32 i = 0; i < mMenuItems.size(); i++)
250 {
251 if (mMenuItems[i].mID >= firstPos && mMenuItems[i].mID <= lastPos)
252 {
253 mMenuItems[i].mIsChecked = false;
254 }
255 }
256}
257
258bool PopupMenu::isItemChecked(S32 pos)
259{

Callers 1

DefineEngineMethodFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected