49 GUI(console), _gameVersion(&gameVersion) {
75 if (widget.
getTag() ==
"BuildNumber") {
79 dynamic_cast<WidgetLabel &
>(widget).setText(version);
80 dynamic_cast<WidgetLabel &
>(widget).setColor(0.6f, 0.6f, 0.6f, 1.0f);
84 if (widget.
getTag() ==
"SaveCharButton") {
91 if ((widget.
getTag() ==
"ResumeGameButton") ||
92 (widget.
getTag() ==
"XButton")) {
97 if (widget.
getTag() ==
"ExitButton") {
107 if (widget.
getTag() ==
"GameButton") {
112 if (widget.
getTag() ==
"VideoOptionsButton") {
117 if (widget.
getTag() ==
"SoundOptionsButton") {
122 if (widget.
getTag() ==
"ControlsButton") {
The NWN ingame main menu.
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
#define TalkMan
Shortcut for accessing the talk manager.
void initWidget(Widget &widget)
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
The NWN video options menu.
The NWN game options menu.
const Version * _gameVersion
IngameMainMenu(const Version &gameVersion, ::Engines::Console *console=0)
Neverwinter Nights installation version detection.
The yes/no/cancel dialog.
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
virtual void show()
Show the GUI.
Common::UString getVersionString() const
Basic xoreos version information.
Common::ScopedPtr< GUI > _game
Common::ScopedPtr< GUI > _controls
const char * getProjectNameVersion()
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 NWN sound options menu.
The NWN okay/cancel dialog.
Common::ScopedPtr< GUI > _video
The global talk manager for Aurora strings.
Common::ScopedPtr< GUI > _sound
The NWN controls options menu.
Common::ScopedPtr< GUI > _quitPrompt