90 _portrait->setPosition(x + 8.0f, y + 7.0f, z);
144 if (tag ==
"ButtonList")
149 if (widget.
getTag() ==
"CancelButton") {
154 if (widget.
getTag() ==
"NewCharButton") {
159 if (widget.
getTag() ==
"PlayButton") {
164 if (widget.
getTag() ==
"ButtonList") {
167 if (dynamic_cast<WidgetListBox &>(widget).wasDblClicked())
175 status(
"Creating character list");
177 std::vector<Common::UString> characters;
189 for (std::vector<Common::UString>::iterator c = characters.begin();
190 c != characters.end(); ++c) {
218 charList.
reserve(characters.size());
219 for (std::vector<Character>::iterator c =
_characters.begin();
222 c->displayName, c->classes, c->portrait, 2.0f));
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
Inter-thread request events.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
void reset(PointerType o=0)
Resets the pointer with the new value.
static void getCharacters(std::vector< Common::UString > &characters, bool local)
Return a list of local player characters.
static const Common::UString kStringEmpty
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
The context needed to run a Neverwinter Nights module.
Basic exceptions to throw.
static void getPCListInfo(const Common::UString &bic, bool local, Common::UString &name, Common::UString &classes, Common::UString &portrait)
Return the information needed for a character list.
const char * c_str() const
Return the (utf8 encoded) string data.
virtual void show()
Show the GUI.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
The premade character chooser.
uint32 sub(GUI &gui, uint32 startCode=kStartCodeNone, bool showSelf=true, bool hideSelf=true)
Open up a sub GUI.
void load(const Common::UString &resref)
void usePC(const Common::UString &bic, bool local)
Use this character as the player character.
int strcmp(const UString &str) const
A creature in a Neverwinter Nights area.
void status(const char *s,...)
A portrait model and widget.
The context handling the gameplay in Neverwinter Nights.
The NWN character generator.
#define FontMan
Shortcut for accessing the font manager.
Generic Aurora engines model functions.