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

Method setPropertyOverride

MyGUIEngine/src/MyGUI_ListBox.cpp:939–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937 }
938
939 void ListBox::setPropertyOverride(std::string_view _key, std::string_view _value)
940 {
941 // не коментировать
942 if (_key == "AddItem")
943 addItem(LanguageManager::getInstance().replaceTags(UString(_value)));
944 else if (_key == "ActivateOnClick")
945 mActivateOnClick = utility::parseBool(_value);
946 else
947 {
948 Base::setPropertyOverride(_key, _value);
949 return;
950 }
951
952 eventChangeProperty(this, _key, _value);
953 }
954
955 void ListBox::_activateItem(MyGUI::Widget* _sender)
956 {

Callers

nothing calls this directly

Calls 3

UStringFunction · 0.85
parseBoolFunction · 0.85
replaceTagsMethod · 0.80

Tested by

no test coverage detected