Adjust border skin for loading bar and message boxes to match vanilla MW

deque
scrawl 10 years ago
parent 85f5754bb6
commit 88da7f5157

@ -157,12 +157,11 @@ namespace MWGui
, mMaxTime(0)
{
// defines
mBottomPadding = 20;
mNextBoxPadding = 20;
mBottomPadding = 48;
mNextBoxPadding = 4;
getWidget(mMessageWidget, "message");
mMessageWidget->setOverflowToTheLeft(true);
mMessageWidget->setCaptionWithReplacing(mMessage);
}
@ -178,7 +177,7 @@ namespace MWGui
int MessageBox::getHeight ()
{
return mMainWidget->getHeight()+mNextBoxPadding; // 20 is the padding between this and the next MessageBox
return mMainWidget->getHeight()+mNextBoxPadding;
}
@ -204,7 +203,6 @@ namespace MWGui
getWidget(mMessageWidget, "message");
getWidget(mButtonsWidget, "buttons");
mMessageWidget->setOverflowToTheLeft(true);
mMessageWidget->setSize(400, mMessageWidget->getHeight());
mMessageWidget->setCaptionWithReplacing(message);

@ -4,7 +4,7 @@
<!-- The entire screen -->
<Widget type="Widget" layer="LoadingScreen" position="0 0 300 300" name="_Main" align="Stretch">
<Widget type="Widget" skin="HUD_Box" position="0 245 300 48" align="Bottom HCenter">
<Widget type="Widget" skin="MW_Dialog" position="0 245 300 48" align="Bottom HCenter">
<Widget type="TextBox" skin="SandText" position="20 8 260 18" name="LoadingText">
<Property key="TextAlign" value="Center"/>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="VBox" skin="MW_Dialog" layer="Notification" position="0 0 0 0" name="_Main">
<Widget type="VBox" skin="HUD_Box" layer="Notification" position="0 0 0 0" name="_Main">
<Property key="Padding" value="10"/>
<Property key="AutoResize" value="true"/>

Loading…
Cancel
Save