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

Method addObject

Engine/source/gui/editor/guiMenuBar.cpp:1158–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158void GuiMenuBar::addObject(SimObject* object)
1159{
1160 PopupMenu* popup = dynamic_cast<PopupMenu*>(object);
1161
1162 if (!popup)
1163 {
1164 //if it's not a popup, handle it normally
1165 Parent::addObject(object);
1166 }
1167 else
1168 {
1169 //otherwise, if it IS a popup, don't add it as a child object, but instead just insert it as a menu entry
1170 insert(object, -1);
1171 }
1172}
1173
1174GuiMenuBar::MenuEntry *GuiMenuBar::findHitMenu(Point2I mousePoint)
1175{

Callers 15

moveSelectionToCtrlMethod · 0.45
deleteSelectionMethod · 0.45
loadSelectionMethod · 0.45
saveSelectionMethod · 0.45
updateSelectedSetMethod · 0.45
addNewControlMethod · 0.45
showPopupMethod · 0.45
onAddMethod · 0.45
refreshMethod · 0.45
createContentMethod · 0.45
inspectGroupMethod · 0.45
clearFieldsMethod · 0.45

Calls 1

insertFunction · 0.85

Tested by 2

onAddMethod · 0.36
refreshMethod · 0.36