|
|
|
@ -459,91 +459,109 @@ 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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeStrength")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sStrDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_strength.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeStrength")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sStrDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_strength.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeIntelligence")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sIntDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_int.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeIntelligence")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sIntDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_int.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeWillpower")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sWilDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_wilpower.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeWillpower")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sWilDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_wilpower.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeAgility")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sAgiDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_agility.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeAgility")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sAgiDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_agility.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeSpeed")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sSpdDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_speed.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeSpeed")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sSpdDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_speed.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeEndurance")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sEndDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_endurance.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeEndurance")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sEndDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_endurance.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributePersonality")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sPerDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_personality.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributePersonality")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sPerDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_personality.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeLuck")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sLucDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_luck.dds");
|
|
|
|
|
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", "ImageCaptionText");
|
|
|
|
|
widget->setUserString("ToolTipCaption", store.gameSettings.find ("sAttributeLuck")->str);
|
|
|
|
|
widget->setUserString("ToolTipText", store.gameSettings.find ("sLucDesc")->str);
|
|
|
|
|
widget->setUserString("ToolTipImage", "k\\attribute_luck.dds");
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|