|
|
@ -7,6 +7,9 @@
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
#include "../mwbase/windowmanager.hpp"
|
|
|
|
#include "../mwbase/windowmanager.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwmechanics/actorutil.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwworld/esmstore.hpp"
|
|
|
|
#include "../mwworld/esmstore.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "tooltips.hpp"
|
|
|
|
#include "tooltips.hpp"
|
|
|
@ -131,8 +134,16 @@ namespace MWGui
|
|
|
|
updateClasses();
|
|
|
|
updateClasses();
|
|
|
|
updateStats();
|
|
|
|
updateStats();
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mClassList);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mClassList);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Show the current class by default
|
|
|
|
|
|
|
|
MWWorld::Ptr player = MWMechanics::getPlayer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const std::string &classId =
|
|
|
|
|
|
|
|
player.get<ESM::NPC>()->mBase->mClass;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!classId.empty())
|
|
|
|
|
|
|
|
setClassId(classId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PickClassDialog::setClassId(const std::string &classId)
|
|
|
|
void PickClassDialog::setClassId(const std::string &classId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|