|
|
|
@ -77,8 +77,6 @@ StatsWindow::StatsWindow (WindowManager& parWindowManager)
|
|
|
|
|
|
|
|
|
|
MyGUI::WindowPtr t = static_cast<MyGUI::WindowPtr>(mMainWidget);
|
|
|
|
|
t->eventWindowChangeCoord += MyGUI::newDelegate(this, &StatsWindow::onWindowResize);
|
|
|
|
|
|
|
|
|
|
setupToolTips();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StatsWindow::onScrollChangePosition(MyGUI::ScrollBar* scroller, size_t pos)
|
|
|
|
@ -633,116 +631,3 @@ void StatsWindow::onPinToggled()
|
|
|
|
|
{
|
|
|
|
|
mWindowManager.setHMSVisibility(!mPinned);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void StatsWindow::setupToolTips()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
const ESMS::ESMStore &store = mWindowManager.getStore();
|
|
|
|
|
MyGUI::Widget* widget;
|
|
|
|
|
|
|
|
|
|
/// \todo move this into the .layout file!
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib1");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeStrength")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sStrDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_strength.dds");
|
|
|
|
|
getWidget(widget, "AttribVal1");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeStrength")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sStrDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_strength.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib2");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeIntelligence")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sIntDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_int.dds");
|
|
|
|
|
getWidget(widget, "AttribVal2");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeIntelligence")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sIntDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_int.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib3");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeWillpower")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sWilDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_wilpower.dds");
|
|
|
|
|
getWidget(widget, "AttribVal3");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeWillpower")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sWilDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_wilpower.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib4");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeAgility")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sAgiDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_agility.dds");
|
|
|
|
|
getWidget(widget, "AttribVal4");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeAgility")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sAgiDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_agility.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib5");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeSpeed")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sSpdDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_speed.dds");
|
|
|
|
|
getWidget(widget, "AttribVal5");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeSpeed")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sSpdDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_speed.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib6");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeEndurance")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sEndDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_endurance.dds");
|
|
|
|
|
getWidget(widget, "AttribVal6");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeEndurance")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sEndDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_endurance.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib7");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributePersonality")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sPerDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_personality.dds");
|
|
|
|
|
getWidget(widget, "AttribVal7");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributePersonality")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sPerDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_personality.dds");
|
|
|
|
|
|
|
|
|
|
getWidget(widget, "Attrib8");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeLuck")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sLucDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_luck.dds");
|
|
|
|
|
getWidget(widget, "AttribVal8");
|
|
|
|
|
widget->setUserString("ToolTipType", "Layout");
|
|
|
|
|
widget->setUserString("ToolTipLayout", "AttributeToolTip");
|
|
|
|
|
widget->setUserString("Caption_AttributeName", store.gameSettings.find ("sAttributeLuck")->str);
|
|
|
|
|
widget->setUserString("Caption_AttributeDescription", store.gameSettings.find ("sLucDesc")->str);
|
|
|
|
|
widget->setUserString("ImageTexture_AttributeImage", "icons\\k\\attribute_luck.dds");
|
|
|
|
|
}
|
|
|
|
|