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

Method update

Tools/LayoutEditor/PanelTemplateProperties.cpp:54–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void PanelTemplateProperties::update(MyGUI::Widget* _currentWidget, WidgetStyle* _widgetType)
55 {
56 destroyPropertyFields();
57
58 mCurrentWidget = _currentWidget;
59 if (mCurrentWidget == nullptr)
60 return;
61
62 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget);
63
64 //mPanelCell->setCaption(replaceTags("PanelTemplatePropertiesName"));
65
66 AddParametrs(_widgetType, widgetContainer, mCurrentWidget);
67
68 bool visible = !mFields.empty();
69 setVisible(visible);
70
71 updateSize();
72 }
73
74 void PanelTemplateProperties::updateSize()
75 {

Callers

nothing calls this directly

Calls 3

setVisibleFunction · 0.85
findMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected