35 CharacterGenerationBaseMenu(
info, console),
36 _humanFirst(
info.getGender() ==
kGenderMale ?
"humanm" :
"humanf"), _humanLast(
"humanl"),
37 _name(_info.getName()) {
48 if (widget.
getTag() ==
"BTN_RANDOM") {
55 if (widget.
getTag() ==
"BTN_BACK") {
61 if (widget.
getTag() ==
"END_BTN") {
void load(const Common::UString &resref)
static const uint32 kReturnCodeAbort
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
void setName(const Common::UString &name)
Set the name of the Character.
Keyboard key was pressed.
Common::UString generateRandomName(size_t maxLetters) const
Generate a random name from the ltr file.
The global events manager.
void info(const char *s,...)
bool empty() const
Is the string empty?
#define EventMan
Shortcut for accessing the events manager.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
size_t size() const
Return the size of the string, in characters.
The KotOR 2 character generation name menu.
EventType
Custom event types.
void erase(iterator from, iterator to)
Erase the character within this range.
const Common::UString & getName() const
Get the name of the character.