51 load(
"partyselection");
71 for (
int i = 0; i < slotCount; ++i) {
93 if (tag ==
"BTN_BACK")
95 else if (tag ==
"BTN_DONE")
105 }
else if (tag ==
"BTN_ACCEPT") {
126 MKTAG(
'U',
'T',
'C',
' ')));
134 uint32 portraitId = gff.getUint(
"PortraitId");
135 if (portraitId != 0) {
140 return gff.getString(
"Portrait", portrait);
162 for (
int i = 0; i < slotCount; ++i) {
Class to hold the two-dimensional array of a 2DA file.
void load(const Common::UString &resref)
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
static const Common::UString & kBackgroundTypeMenu
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
const Common::UString & getString(size_t column) const
Return the contents of a cell as a string.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
bool beginsWith(const UString &with) const
void loadConfiguration(const PartyConfiguration &config)
A checkbox widget for Star Wars: Knights of the Old Repulic and Jade Empire.
Aurora::GFF3File * loadOptionalGFF3(const Common::UString &gff3, Aurora::FileType type, uint32 id, bool repairNWNPremium)
Load a GFF3, but return 0 instead of throwing on error.
static const int kSlotCountK1
Utility templates and functions for working with strings and streams.
const Common::UString getPortrait(const Common::UString &templ)
const char * c_str() const
Return the (utf8 encoded) string data.
void replaceAll(uint32 what, uint32 with)
Replace all occurrences of a character with another character.
void setSlotTexture(int index, const Common::UString &portrait)
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
Common::UString slotTemplate[10]
Handling BioWare's 2DAs (two-dimensional array).
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
PartySelectionGUI(bool k2=false)
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
void addBackground(const Common::UString &background, bool front=false)
PartyConfiguration _config
void toggleSlot(int index, bool enabled)
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
const TwoDARow & getRow(size_t row) const
Get a row.
static const int kSlotCountK2
Party selection GUI for Star Wars: Knights of the Old Republic.
WidgetCheckBox * getCheckBox(const Common::UString &tag, bool vital=false)
Generic Aurora engines utility functions.
void onSelectionChanged()
Creature template (user), GFF.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.