MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / findMenuItem

Method findMenuItem

src/ui/Menu_Log.cpp:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97MenuItem* UI::Menu_Log::findMenuItem(const std::string& instance)
98{
99 MenuItem* menuItem = nullptr;
100
101 for (auto& item : m_Items)
102 if (item.second->getItemScriptData().instanceSymbol == getItemScriptData(instance).instanceSymbol)
103 {
104 menuItem = item.second;
105 break;
106 }
107
108 return menuItem;
109}
110
111bool Menu_Log::onInputAction(Engine::ActionType action)
112{

Callers 1

createMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected