| 52 | } |
| 53 | |
| 54 | void PanelExtensionProperties::update(MyGUI::Widget* _currentWidget) |
| 55 | { |
| 56 | destroyPropertyFields(); |
| 57 | |
| 58 | mCurrentWidget = _currentWidget; |
| 59 | if (mCurrentWidget == nullptr) |
| 60 | return; |
| 61 | |
| 62 | WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget); |
| 63 | WidgetStyle* widgetType = WidgetTypes::getInstance().findWidgetStyle(widgetContainer->getType()); |
| 64 | |
| 65 | AddParametrs(widgetType, widgetContainer, mCurrentWidget); |
| 66 | |
| 67 | bool visible = !mFields.empty(); |
| 68 | setVisible(visible); |
| 69 | |
| 70 | updateSize(); |
| 71 | } |
| 72 | |
| 73 | void PanelExtensionProperties::updateSize() |
| 74 | { |
nothing calls this directly
no test coverage detected