1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +00:00

Fix HBox/VBox not using Client widget with MyGUI <= 3.2.2

This commit is contained in:
scrawl 2017-09-26 17:59:45 +02:00
parent fce9a14986
commit c88c535e0e
2 changed files with 20 additions and 0 deletions

View File

@ -238,6 +238,14 @@ namespace Gui
align();
}
void HBox::initialiseOverride()
{
Base::initialiseOverride();
MyGUI::Widget* client = 0;
assignWidget(client, "Client");
setWidgetClient(client);
}
void HBox::onWidgetCreated(MyGUI::Widget* _widget)
{
align();
@ -385,6 +393,14 @@ namespace Gui
align();
}
void VBox::initialiseOverride()
{
Base::initialiseOverride();
MyGUI::Widget* client = 0;
assignWidget(client, "Client");
setWidgetClient(client);
}
MyGUI::IntSize VBox::getRequestedSize ()
{
MyGUI::IntSize size(0,0);

View File

@ -99,6 +99,8 @@ namespace Gui
virtual void setCoord (const MyGUI::IntCoord &_value);
protected:
virtual void initialiseOverride();
virtual void align();
virtual MyGUI::IntSize getRequestedSize();
@ -116,6 +118,8 @@ namespace Gui
virtual void setCoord (const MyGUI::IntCoord &_value);
protected:
virtual void initialiseOverride();
virtual void align();
virtual MyGUI::IntSize getRequestedSize();