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

Method getDescriptionString

Tools/LayoutEditor/MainMenuControl.cpp:119–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 std::string MainMenuControlLE::getDescriptionString(
120 MyGUI::Widget* _widget,
121 bool _print_name,
122 bool _print_type,
123 bool _print_skin)
124 {
125 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_widget);
126
127 addUserTag("WidgetName", _print_name ? MyGUI::UString(widgetContainer->getName()) : MyGUI::UString{});
128 addUserTag("WidgetType", _print_type ? MyGUI::UString(_widget->getTypeName()) : MyGUI::UString{});
129 addUserTag("WidgetSkin", _print_skin ? MyGUI::UString(widgetContainer->getSkin()) : MyGUI::UString{});
130
131 addUserTag(
132 "FormatWidgetName",
133 (_print_name && !widgetContainer->getName().empty()) ? "#{PatternWidgetName}" : MyGUI::UString{});
134 addUserTag("FormatWidgetType", _print_type ? "#{PatternWidgetType}" : MyGUI::UString{});
135 addUserTag("FormatWidgetSkin", _print_skin ? "#{PatternWidgetSkin}" : MyGUI::UString{});
136
137 return replaceTags("MenuItemWidgetInfo");
138 }
139
140 void MainMenuControlLE::notifyChangeWidgets()
141 {

Callers

nothing calls this directly

Calls 6

addUserTagFunction · 0.85
UStringFunction · 0.85
replaceTagsFunction · 0.85
getSkinMethod · 0.80
findMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected