|
|
|
@ -55,7 +55,9 @@ namespace MWGui
|
|
|
|
|
void GenerateClassResultDialog::setClassId(const std::string &classId)
|
|
|
|
|
{
|
|
|
|
|
mCurrentClassId = classId;
|
|
|
|
|
mClassImage->setImageTexture(std::string("textures\\levelup\\") + mCurrentClassId + ".dds");
|
|
|
|
|
|
|
|
|
|
setClassImage(mClassImage, mCurrentClassId);
|
|
|
|
|
|
|
|
|
|
mClassName->setCaption(MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(mCurrentClassId)->mName);
|
|
|
|
|
|
|
|
|
|
center();
|
|
|
|
@ -257,7 +259,7 @@ namespace MWGui
|
|
|
|
|
ToolTips::createSkillToolTip(mMajorSkill[i], klass->mData.mSkills[i][1]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mClassImage->setImageTexture(std::string("textures\\levelup\\") + mCurrentClassId + ".dds");
|
|
|
|
|
setClassImage(mClassImage, mCurrentClassId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* InfoBoxDialog */
|
|
|
|
@ -903,4 +905,15 @@ namespace MWGui
|
|
|
|
|
eventDone(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void setClassImage(MyGUI::ImageBox* imageBox, const std::string &classId)
|
|
|
|
|
{
|
|
|
|
|
std::string classImage = std::string("textures\\levelup\\") + classId + ".dds";
|
|
|
|
|
if (!MWBase::Environment::get().getWindowManager()->textureExists(classImage))
|
|
|
|
|
{
|
|
|
|
|
std::cout << "No class image for " << classId << ", falling back to default" << std::endl;
|
|
|
|
|
classImage = "textures\\levelup\\warrior.dds";
|
|
|
|
|
}
|
|
|
|
|
imageBox->setImageTexture(classImage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|