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