72 if (widget.
getTag() ==
"OkButton") {
79 if (widget.
getTag() ==
"CancelButton") {
84 if (widget.
getTag() ==
"ClassListBox") {
91 if (widget.
getTag() ==
"RecommendButton") {
96 if (widget.
getTag() ==
"ConfigurePckg") {
107 if (rowClass.
getInt(
"SpellCaster") > 0) {
108 if (rowClass.
getString(
"SpellGainTable") ==
"CLS_SPGN_WIZ" &&
114 }
else if (rowClass.
getString(
"SpellGainTable") ==
"CLS_SPGN_CLER" &&
118 }
else if (!rowClass.
empty(
"SpellKnownTable")) {
128 subReturnCode =
sub(**g, 0,
false);
129 if (subReturnCode == 1) {
150 for (
size_t it = 0; it < twoda.
getRowCount(); ++it) {
152 if (row.
getInt(
"PlayerClass") == 0 ||
167 uint8 package = _choices->getPackage();
Class to hold the two-dimensional array of a 2DA file.
uint8 getHitDice() const
Returns the number of hit dice, which is effectively the total number of levels.
#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.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
const Creature & getCharacter()
void setPackage(uint8 package)
size_t getRowCount() const
Return the number of rows in the array.
WidgetListBox * _packageListBox
std::vector< Common::UString > _packageNames
A vector of pointer to objects, with automatic deletion.
Common::PtrVector< CharGenBase > _subGUIs
std::vector< Common::UString > _helpTexts
virtual void show()
Show the GUI.
The domain chooser for clerc in CharGen.
CharGenChoices * _choices
Handling BioWare's 2DAs (two-dimensional array).
uint32 sub(GUI &gui, uint32 startCode=kStartCodeNone, bool showSelf=true, bool hideSelf=true)
Open up a sub GUI.
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.
std::vector< uint8 > _packageID
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.
The spells selection GUI in CharGen.
The spell school chooser in CharGen.
The global talk manager for Aurora strings.
A creature in a Neverwinter Nights area.
The package selection GUI.
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
The skills selection GUI.
CharPackage(CharGenChoices &choices, ::Engines::Console *console)