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

new-script-api
scrawl 7 years ago
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…
Cancel
Save