| 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 | { |
nothing calls this directly
no test coverage detected