forked from teamnwah/openmw-tes3coop
Make loose functions part of the InfoBoxDialog class
This commit is contained in:
parent
9d57b4f0d6
commit
6f608f1400
2 changed files with 4 additions and 2 deletions
|
@ -260,7 +260,7 @@ void PickClassDialog::updateStats()
|
||||||
|
|
||||||
/* InfoBoxDialog */
|
/* InfoBoxDialog */
|
||||||
|
|
||||||
void fitToText(MyGUI::StaticTextPtr widget)
|
void InfoBoxDialog::fitToText(MyGUI::StaticTextPtr widget)
|
||||||
{
|
{
|
||||||
MyGUI::IntCoord inner = widget->getTextRegion();
|
MyGUI::IntCoord inner = widget->getTextRegion();
|
||||||
MyGUI::IntCoord outer = widget->getCoord();
|
MyGUI::IntCoord outer = widget->getCoord();
|
||||||
|
@ -270,7 +270,7 @@ void fitToText(MyGUI::StaticTextPtr widget)
|
||||||
widget->setSize(size);
|
widget->setSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void layoutVertically(MyGUI::WidgetPtr widget, int margin)
|
void InfoBoxDialog::layoutVertically(MyGUI::WidgetPtr widget, int margin)
|
||||||
{
|
{
|
||||||
size_t count = widget->getChildCount();
|
size_t count = widget->getChildCount();
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
|
@ -53,6 +53,8 @@ namespace MWGui
|
||||||
|
|
||||||
MWWorld::Environment& environment;
|
MWWorld::Environment& environment;
|
||||||
|
|
||||||
|
void fitToText(MyGUI::StaticTextPtr widget);
|
||||||
|
void layoutVertically(MyGUI::WidgetPtr widget, int margin);
|
||||||
int currentButton;
|
int currentButton;
|
||||||
MyGUI::WidgetPtr textBox;
|
MyGUI::WidgetPtr textBox;
|
||||||
MyGUI::StaticTextPtr text;
|
MyGUI::StaticTextPtr text;
|
||||||
|
|
Loading…
Reference in a new issue