45 load(
"options_video");
85 int gammaValue =
CLIP(
_gamma - 0.1f, 0.0f, 1.9f) * 10;
98 if (widget.
getTag() ==
"GammaSlider") {
103 if (widget.
getTag() ==
"TextureSlider") {
110 if ((widget.
getTag() ==
"CancelButton") ||
111 (widget.
getTag() ==
"XButton")) {
118 if (widget.
getTag() ==
"OkButton") {
125 if (widget.
getTag() ==
"VideoModeButton") {
130 if (widget.
getTag() ==
"AdvVideoButton") {
135 if (widget.
getTag() ==
"GammaSlider") {
136 float gamma =
dynamic_cast<WidgetSlider &
>(widget).getState() / 10.0f;
142 if (widget.
getTag() ==
"GammaResetButton") {
145 int gammaValue =
CLIP(
_gamma - 0.1f, 0.0f, 1.9f) * 10;
151 if (widget.
getTag() ==
"TextureSlider") {
158 if (widget.
getTag() ==
"ApplyButton") {
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
The global graphics manager.
#define TalkMan
Shortcut for accessing the talk manager.
uint32 _returnCode
The GUI's return code.
The NWN video options menu.
The global config manager.
virtual void show()
Show the GUI.
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)
#define ConfigMan
Shortcut for accessing the config manager.
Utility templates and functions.
The NWN resolution options menu.
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 NWN advanced video options menu.
#define WindowMan
Shortcut for accessing the window manager.
The global talk manager for Aurora strings.
void addWidget(Widget *widget)
Add a widget.
T CLIP(T v, T amin, T amax)