52 _upButton(0), _downButton(0), _skillPointPanel(0), _skill(skill) {
82 _button->getNode(
"skillup")->getPosition(pX, pY, pZ);
84 _button->getNode(
"skilldown")->getPosition(pX, pY, pZ);
87 _button->getNode(
"skillrank")->getPosition(pX, pY, pZ);
123 if (!dynamic_cast<CharSkills &>(*_gui).changeAvailableSkillRank(-1 * classRankFactor))
164 uint8 spentPoint = 0;
165 for (std::vector<WidgetListItem *>::iterator it = skillBox->
begin();
166 it != skillBox->
end(); ++it) {
180 for (
size_t sk = 0; sk < 28; ++sk)
205 if (widget.
getTag() ==
"SkillsButtonBox") {
213 if (widget.
getTag() ==
"OkButton") {
216 for (std::vector<WidgetListItem *>::iterator it = skillBox->
begin();
217 it != skillBox->
end(); ++it) {
231 if (widget.
getTag() ==
"CancelButton") {
236 if (widget.
getTag() ==
"RecommendButton") {
252 std::vector<SkillItem> skills;
257 skillListBox->
lock();
259 for (std::vector<SkillItem>::iterator s = skills.begin(); s != skills.end(); ++s)
269 std::vector<uint8> prefSkills;
275 for (std::vector<uint8>::iterator pS = prefSkills.begin(); pS != prefSkills.end(); ++pS) {
279 for (std::vector<WidgetListItem *>::iterator i = listBox->
begin(); i != listBox->
end(); ++i) {
286 bool skillFilled =
false;
287 while (!skillFilled) {
void setSkill(size_t skillIndex, uint8 rank)
The global graphics manager.
#define TalkMan
Shortcut for accessing the talk manager.
void setSkillCost(uint8 cost)
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
uint8 computeAvailSkillRank()
CharSkills(CharGenChoices &choices, ::Engines::Console *console=0)
void setNotUsedSkills(uint8 notUsedSkills)
bool endsWith(const UString &with) const
Utility templates and functions for working with strings and streams.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
Utility templates and functions.
CharGenChoices * _choices
Handling BioWare's 2DAs (two-dimensional array).
A node within a 3D model.
void getPrefSkills(std::vector< uint8 > &skills)
void load(const Common::UString &resref)
WidgetEditBox * _helpTextBox
const float kHAlignCenter
WidgetEditBox * getEditBox(const Common::UString &tag, bool vital=false)
const float kVAlignMiddle
bool changeAvailableSkillRank(int rankChange)
The global talk manager for Aurora strings.
A creature in a Neverwinter Nights area.
size_t _availableSkillRank
The skills selection GUI.
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
void getSkillItems(std::vector< SkillItem > &skills)
void setHelpText(const Common::UString &title, const Common::UString &text)
#define GfxMan
Shortcut for accessing the graphics manager.
virtual void hide()
Hide the GUI.
void setRecommendedSkills()