48 , _name(name), _description(desc), _domainId(domainId) {
105 if (tag ==
"DomainListBox")
110 if (widget.
getTag() ==
"OkButton") {
117 if (widget.
getTag() ==
"CancelButton") {
122 if (widget.
getTag() ==
"RecommendButton") {
134 for (
size_t d = 0; d < twodaDomains.
getRowCount(); ++d) {
137 if (domainRow.
empty(
"Label"))
167 (*it)->addGroupMember(*item);
181 std::vector<WidgetListItemDomain *>::iterator itItem;
204 _chosenDomains[dom]->setPosition(nX + pX,nY + pY,nZ + pZ - 100.f);
212 uint8 domain1, domain2;
Class to hold the two-dimensional array of a 2DA file.
#define TalkMan
Shortcut for accessing the talk manager.
CharDomain(CharGenChoices &choices, ::Engines::Console *console=0)
const Common::UString & getString(size_t column) const
Return the contents of a cell as a string.
void getPrefDomains(uint8 &domain1, uint8 &domain2)
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
WidgetListItemDomain(::Engines::GUI &gui, const Common::UString &title, const Common::UString &icon, const Common::UString &desc, uint8 domainId)
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
bool endsWith(const UString &with) const
void getPosition(float &x, float &y, float &z) const
Get the position of the node.
size_t getRowCount() const
Return the number of rows in the array.
std::vector< WidgetListItemDomain * > _chosenDomains
Utility templates and functions for working with strings and streams.
WidgetListBox * _domainListBox
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
void subActive(Engines::Widget &widget)
A sub-widget was activated.
The domain chooser for clerc in CharGen.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
void updateChosenDomains()
CharGenChoices * _choices
Handling BioWare's 2DAs (two-dimensional array).
A node within a 3D model.
void load(const Common::UString &resref)
#define TwoDAReg
Shortcut for accessing the 2da registry.
void setRecommendedDomains()
int32 getInt(size_t column) const
Return the contents of a cell as an int.
WidgetEditBox * getEditBox(const Common::UString &tag, bool vital=false)
void moveDomain(WidgetListItemDomain *item)
bool empty(size_t column) const
Check if the cell is empty.
const TwoDARow & getRow(size_t row) const
Get a row.
void mouseDblClick(uint8 state, float x, float y)
A mouse button was double-clicked on the widget.
The global talk manager for Aurora strings.
void setDomains(uint8 domain1, uint8 domain2)
void fixWidgetType(const Common::UString &tag, NWN::GUI::WidgetType &type)
Common::UString _description
friend class WidgetListItemDomain
void mouseUp(uint8 state, float x, float y)
A mouse button was released on the widget.