56 if (tag ==
"ClassListBox")
74 size_t previousChoice = 0;
75 for (
size_t it = 0; it <
_classesId.size(); ++it) {
99 for (
size_t it = 0; it < twoda.
getRowCount(); ++it) {
101 if (row.
getInt(
"PlayerClass") == 0)
112 if (!row.
empty(
"PreReqTable")) {
124 if (widget.
getTag() ==
"OkButton") {
130 if (widget.
getTag() ==
"CancelButton") {
135 if (widget.
getTag() ==
"RecommendButton") {
143 if (widget.
getTag() ==
"ClassListBox") {
Class to hold the two-dimensional array of a 2DA file.
The class chooser in CharGen.
#define TalkMan
Shortcut for accessing the talk manager.
const Common::UString & getString(size_t column) const
Return the contents of a cell as a string.
uint32 _returnCode
The GUI's return code.
std::vector< Common::UString > _classNames
A class holding an UTF-8 string.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
void fixWidgetType(const Common::UString &tag, WidgetType &type)
size_t getRowCount() const
Return the number of rows in the array.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
void setClass(uint32 classId)
CharGenChoices * _choices
Handling BioWare's 2DAs (two-dimensional array).
std::vector< uint32 > _classesId
void load(const Common::UString &resref)
#define TwoDAReg
Shortcut for accessing the 2da registry.
int32 getInt(size_t column) const
Return the contents of a cell as an int.
WidgetEditBox * getEditBox(const Common::UString &tag, bool vital=false)
bool empty(size_t column) const
Check if the cell is empty.
const TwoDARow & getRow(size_t row) const
Get a row.
std::vector< Common::UString > _helpTexts
The global talk manager for Aurora strings.
WidgetListBox * _classesListBox
size_t _firstPrestigeClass
virtual void hide()
Hide the GUI.
CharClass(CharGenChoices &choices, ::Engines::Console *console=0)