Fix wrong skin for levelup attribute values

new-script-api
scrawl 7 years ago
parent e9d81fdf5a
commit 0deda69a27

@ -41,6 +41,7 @@ namespace MWGui
{ {
MyGUI::TextBox* t; MyGUI::TextBox* t;
getWidget(t, "AttribVal" + MyGUI::utility::toString(i)); getWidget(t, "AttribVal" + MyGUI::utility::toString(i));
mAttributeValues.push_back(t);
MyGUI::Button* b; MyGUI::Button* b;
getWidget(b, "Attrib" + MyGUI::utility::toString(i)); getWidget(b, "Attrib" + MyGUI::utility::toString(i));
@ -48,10 +49,7 @@ namespace MWGui
b->eventMouseButtonClick += MyGUI::newDelegate(this, &LevelupDialog::onAttributeClicked); b->eventMouseButtonClick += MyGUI::newDelegate(this, &LevelupDialog::onAttributeClicked);
mAttributes.push_back(b); mAttributes.push_back(b);
mAttributeValues.push_back(t);
getWidget(t, "AttribMultiplier" + MyGUI::utility::toString(i)); getWidget(t, "AttribMultiplier" + MyGUI::utility::toString(i));
mAttributeMultipliers.push_back(t); mAttributeMultipliers.push_back(t);
} }

@ -50,7 +50,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_strength.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_strength.dds"/>
<Property key="Caption" value="#{sAttributeStrength}"/> <Property key="Caption" value="#{sAttributeStrength}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal1"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal1">
</Widget> </Widget>
</Widget> </Widget>
@ -64,7 +64,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_int.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_int.dds"/>
<Property key="Caption" value="#{sAttributeIntelligence}"/> <Property key="Caption" value="#{sAttributeIntelligence}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal2"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal2">
</Widget> </Widget>
</Widget> </Widget>
@ -78,7 +78,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_wilpower.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_wilpower.dds"/>
<Property key="Caption" value="#{sAttributeWillpower}"/> <Property key="Caption" value="#{sAttributeWillpower}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal3"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal3">
</Widget> </Widget>
</Widget> </Widget>
@ -92,7 +92,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_agility.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_agility.dds"/>
<Property key="Caption" value="#{sAttributeAgility}"/> <Property key="Caption" value="#{sAttributeAgility}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal4"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal4">
</Widget> </Widget>
</Widget> </Widget>
@ -107,7 +107,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_speed.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_speed.dds"/>
<Property key="Caption" value="#{sAttributeSpeed}"/> <Property key="Caption" value="#{sAttributeSpeed}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal5"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal5">
</Widget> </Widget>
</Widget> </Widget>
@ -121,7 +121,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_endurance.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_endurance.dds"/>
<Property key="Caption" value="#{sAttributeEndurance}"/> <Property key="Caption" value="#{sAttributeEndurance}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal6"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal6">
</Widget> </Widget>
</Widget> </Widget>
@ -135,7 +135,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_personality.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_personality.dds"/>
<Property key="Caption" value="#{sAttributePersonality}"/> <Property key="Caption" value="#{sAttributePersonality}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal7"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal7">
</Widget> </Widget>
</Widget> </Widget>
@ -149,7 +149,7 @@
<UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_luck.dds"/> <UserString key="ImageTexture_AttributeImage" value="icons\k\attribute_luck.dds"/>
<Property key="Caption" value="#{sAttributeLuck}"/> <Property key="Caption" value="#{sAttributeLuck}"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandTextButton" name="AttribVal8"> <Widget type="AutoSizedTextBox" skin="SandText" name="AttribVal8">
</Widget> </Widget>
</Widget> </Widget>
</Widget> </Widget>

Loading…
Cancel
Save