44 load(
"options_feedback");
52 std::list<Widget *> bubbleMode;
53 bubbleMode.push_back(
getWidget(
"BubblesTextOnly"));
54 bubbleMode.push_back(
getWidget(
"BubblesFull"));
55 bubbleMode.push_back(
getWidget(
"BubblesOff"));
58 std::list<Widget *> targetingFeedback;
59 targetingFeedback.push_back(
getWidget(
"FeedbackNever"));
60 targetingFeedback.push_back(
getWidget(
"FeedbackPause"));
61 targetingFeedback.push_back(
getWidget(
"FeedbackAlways"));
85 if (feedbackMode == 0)
87 else if (feedbackMode == 1)
89 else if (feedbackMode == 2)
96 if (widget.
getTag() ==
"TooltipSlider") {
103 if ((widget.
getTag() ==
"CancelButton") ||
104 (widget.
getTag() ==
"XButton")) {
111 if (widget.
getTag() ==
"OkButton") {
118 if (widget.
getTag() ==
"TooltipSlider") {
128 const float ttDelay = ((float) (ttDelaySlider.
getState() + 1)) / 10.0f;
134 ttDelayLabel.
setText(ttDelayText);
139 ConfigMan.setInt(
"tooltipdelay", tooltipDelay,
true);
142 ConfigMan.setBool(
"mouseoverfeedback", mouseoverFeedback,
true);
147 else if (
getCheckBox(
"BubblesTextOnly",
true)->getState())
149 else if (
getCheckBox(
"BubblesFull",
true)->getState())
152 ConfigMan.setInt(
"feedbackmode", feedbackMode,
true);
Widget * getWidget(const Common::UString &tag, bool vital=false)
Return a widget in the GUI.
#define TalkMan
Shortcut for accessing the talk manager.
uint32 _returnCode
The GUI's return code.
A class holding an UTF-8 string.
The global config manager.
WidgetCheckBox * getCheckBox(const Common::UString &tag, bool vital=false)
void declareGroup(const std::list< Widget *> &group)
Put these widgets together into a group.
const char * c_str() const
Return the (utf8 encoded) string data.
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.
Utility templates and functions.
WidgetSlider * getSlider(const Common::UString &tag, bool vital=false)
void load(const Common::UString &resref)
The NWN feedback options menu.
The global talk manager for Aurora strings.
void addWidget(Widget *widget)
Add a widget.
T CLIP(T v, T amin, T amax)