MCPcopy Create free account
hub / github.com/MyGUI/mygui / command_UpdateAppCaption

Method command_UpdateAppCaption

Tools/EditorFramework/MainMenuControl.cpp:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void MainMenuControl::command_UpdateAppCaption(const MyGUI::UString& _commandName, bool& _result)
77 {
78 if (mScaleMenu != nullptr)
79 {
80 MyGUI::MenuControl* menu = mScaleMenu->getItemChild();
81 if (menu != nullptr)
82 {
83 int value = MyGUI::utility::parseValue<int>(replaceTags("CurrentScale"));
84 std::string id = MyGUI::utility::toString("Command_ChangeScale", ".", value);
85 for (size_t index = 0; index < menu->getItemCount(); index++)
86 {
87 MyGUI::MenuItem* item = menu->getItemAt(index);
88 item->setItemChecked(item->getItemId() == id);
89 }
90 }
91 }
92 }
93
94}

Callers

nothing calls this directly

Calls 6

replaceTagsFunction · 0.85
toStringFunction · 0.85
setItemCheckedMethod · 0.80
getItemChildMethod · 0.45
getItemCountMethod · 0.45
getItemAtMethod · 0.45

Tested by

no test coverage detected