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

Method update

Tools/LayoutEditor/PanelProperties.cpp:67–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void PanelProperties::update(MyGUI::Widget* _currentWidget, WidgetStyle* _widgetType)
68 {
69 hidePropertyFields();
70
71 mCurrentWidget = _currentWidget;
72 if (mCurrentWidget == nullptr)
73 return;
74
75 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget);
76
77 MyGUI::LanguageManager::getInstance().addUserTag("widget_type", _widgetType->name);
78
79 mPanelCell->setCaption(replaceTags("Widget_type_propertes"));
80
81 size_t count = addParametrs(_widgetType, widgetContainer, mCurrentWidget);
82
83 setVisible(count > 0);
84
85 updateSize();
86 }
87
88 void PanelProperties::updateSize()
89 {

Callers

nothing calls this directly

Calls 5

replaceTagsFunction · 0.85
setVisibleFunction · 0.85
addUserTagMethod · 0.80
findMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected