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

Method getButtonName

Common/MessageBox/MessageBox.h:320–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 UString getButtonName(MessageBoxStyle _style) const
321 {
322 size_t index = _style.getButtonIndex();
323 std::string_view tag = getButtonTag(index);
324 UString result = LanguageManager::getInstance().replaceTags(utility::toString("#{", tag, "}"));
325 if (result == tag)
326 result.assign(getButtonName(index));
327 return result;
328 }
329
330 std::string_view getIconName(size_t _index) const
331 {

Callers

nothing calls this directly

Calls 3

toStringFunction · 0.85
getButtonIndexMethod · 0.80
replaceTagsMethod · 0.80

Tested by

no test coverage detected