41 load(
"options_sound");
49 std::list<Widget *> speakerGroup;
50 speakerGroup.push_back(
getWidget(
"71Speakers"));
51 speakerGroup.push_back(
getWidget(
"51Speakers"));
52 speakerGroup.push_back(
getWidget(
"2Speakers"));
53 speakerGroup.push_back(
getWidget(
"4Speakers"));
54 speakerGroup.push_back(
getWidget(
"Surround"));
55 speakerGroup.push_back(
getWidget(
"Headphones"));
108 if (widget.
getTag() ==
"MusicSlider") {
113 if (widget.
getTag() ==
"VoicesSlider") {
118 if (widget.
getTag() ==
"SoundFXSlider") {
125 if ((widget.
getTag() ==
"CancelButton") ||
126 (widget.
getTag() ==
"XButton")) {
133 if (widget.
getTag() ==
"OkButton") {
140 if (widget.
getTag() ==
"AdvSoundBtn") {
145 if (widget.
getTag() ==
"MusicSlider") {
151 if (widget.
getTag() ==
"VoicesSlider") {
157 if (widget.
getTag() ==
"SoundFXSlider") {
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
The NWN advanced sound options menu.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
The global config manager.
void declareGroup(const std::list< Widget *> &group)
Put these widgets together into a group.
virtual void show()
Show the GUI.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
#define ConfigMan
Shortcut for accessing the config manager.
WidgetSlider * getSlider(const Common::UString &tag, bool vital=false)
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 global sound manager, handling all sound output.
bool empty() const
Is the string empty?
#define SoundMan
Shortcut for accessing the sound manager.
The NWN sound options menu.
SoundType
The type of a sound.
void addWidget(Widget *widget)
Add a widget.