66 _audioOptionsButton = getProtoItem(
"OptionsListBox_ITEM_0");
67 _videoOptionsButton = getProtoItem(
"OptionsListBox_ITEM_1");
68 _difficultyOptionsButton = getProtoItem(
"OptionsListBox_ITEM_2");
69 _gameInfoOptionsButton = getProtoItem(
"OptionsListBox_ITEM_3");
70 _controlOptionsButton = getProtoItem(
"OptionsListBox_ITEM_4");
71 _creditsButton = getProtoItem(
"OptionsListBox_ITEM_5");
76 _optionsDescription =
getLabel(
"OptionsDescLabel");
78 _audioOptionsDescription =
TalkMan.getString(129);
79 _videoOptionsDescription =
TalkMan.getString(130);
80 _difficultyOptionsDescription =
TalkMan.getString(152);
81 _gameInfoOptionsDescription =
TalkMan.getString(153);
82 _controlOptionsDescription =
TalkMan.getString(154);
83 _creditsDescription =
TalkMan.getString(33212);
84 _backButtonDescription =
TalkMan.getString(130088);
86 _optionsDescription->setText(
"");
89 void OptionsMenu::createAudioOptions() {
93 void OptionsMenu::createVideoOptions() {
97 void OptionsMenu::createDifficultyOptions() {
101 void OptionsMenu::createGameInfoOptions() {
105 void OptionsMenu::createControlOptions() {
111 if (_audioOptionsButton->isHovered() && _currentButton != _audioOptionsButton) {
112 _optionsDescription->setText(_audioOptionsDescription);
113 _currentButton = _audioOptionsButton;
114 }
else if (_videoOptionsButton->isHovered() && _currentButton != _videoOptionsButton) {
115 _optionsDescription->setText(_videoOptionsDescription);
116 _currentButton = _videoOptionsButton;
117 }
else if (_difficultyOptionsButton->isHovered() && _currentButton != _difficultyOptionsButton) {
118 _optionsDescription->setText(_difficultyOptionsDescription);
119 _currentButton = _difficultyOptionsButton;
120 }
else if (_gameInfoOptionsButton->isHovered() && _currentButton != _gameInfoOptionsButton) {
121 _optionsDescription->setText(_gameInfoOptionsDescription);
122 _currentButton = _gameInfoOptionsButton;
123 }
else if (_controlOptionsButton->isHovered() && _currentButton != _controlOptionsButton) {
124 _optionsDescription->setText(_controlOptionsDescription);
125 _currentButton = _controlOptionsButton;
126 }
else if (_creditsButton->isHovered() && _currentButton != _creditsButton) {
127 _optionsDescription->setText(_creditsDescription);
128 _currentButton = _creditsButton;
129 }
else if (_backButton->isHovered() && _currentButton != _backButton) {
130 _optionsDescription->setText(_backButtonDescription);
131 _currentButton = _backButton;
136 if (widget.
getTag() == _audioOptionsButton->getTag()) {
138 createAudioOptions();
144 if (widget.
getTag() == _videoOptionsButton->getTag()) {
146 createVideoOptions();
152 if (widget.
getTag() == _difficultyOptionsButton->getTag()) {
153 if (!_difficultyOptions)
154 createDifficultyOptions();
156 sub(*_difficultyOptions);
160 if (widget.
getTag() == _gameInfoOptionsButton->getTag()) {
161 if (!_gameInfoOptions)
162 createGameInfoOptions();
164 sub(*_gameInfoOptions);
168 if (widget.
getTag() == _controlOptionsButton->getTag()) {
169 if (!_controlOptions)
170 createControlOptions();
172 sub(*_controlOptions);
176 if (widget.
getTag() == _creditsButton->getTag()) {
181 if (widget.
getTag() ==
"ButtonBack")
The Jade Empire audio options menu.
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
void playVideo(const Common::UString &video)
Play this video resource.
static const uint32 kReturnCodeAbort
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
#define TalkMan
Shortcut for accessing the talk manager.
uint32 _returnCode
The GUI's return code.
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
The Jade Empire game info options menu.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
The Jade Empire main options menu.
virtual void callbackRun()
Callback that's triggered periodically in the run() method.
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
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 Jade Empire difficulty options menu.
The global talk manager for Aurora strings.
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
The Jade Empire control options menu.
Generic Aurora engines utility functions.
The Jade Empire video options menu.