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:
parent
fce9a14986
commit
c88c535e0e
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user