51 bool hasXP1 =
ConfigMan.getBool(
"NWN_hasXP1");
52 bool hasXP2 =
ConfigMan.getBool(
"NWN_hasXP2");
122 if (widget.
getTag() ==
"ExitButton") {
127 if (widget.
getTag() ==
"NewButton") {
133 if (
sub(*
_new, 0,
false) == 2) {
142 if (widget.
getTag() ==
"MoviesButton") {
149 if (widget.
getTag() ==
"OptionsButton") {
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
The base game movies menu.
uint32 _returnCode
The GUI's return code.
The global config manager.
The fog behind the new game dialogs.
MainMenu(Module &module, ::Engines::Console *console=0)
const Version & getGameVersion() const
The context needed to run a Neverwinter Nights module.
virtual void show()
Show the GUI.
#define ConfigMan
Shortcut for accessing the config manager.
The new/premade character selection menu.
The global events manager.
uint32 sub(GUI &gui, uint32 startCode=kStartCodeNone, bool showSelf=true, bool hideSelf=true)
Open up a sub GUI.
void load(const Common::UString &resref)
The campaign movies menu.
virtual void abort()
Abort the currently running GUI.
#define EventMan
Shortcut for accessing the events manager.
Common::ScopedPtr< GUI > _new
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
void addWidget(Widget *widget)
Add a widget.
Common::ScopedPtr< GUI > _options
Common::ScopedPtr< GUI > _charType
void abort()
Abort the currently running GUI.
Common::ScopedPtr< GUI > _movies