summaryrefslogtreecommitdiff
path: root/src/client/ui/ui.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-09-23 20:55:52 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-09-23 20:55:52 +0400
commite92842f3743f77665c868f7835684555751b8553 (patch)
treebb2cfcafe3ce454bfdcb165d83742b9dd804619c /src/client/ui/ui.h
parent264186e258a3ec0930b6e8e48bfb6732a7ed973d (diff)
Don't reset out-of-range cvars when using menus.
Display out-of-range values as ‘???’ and preserve custom settings upon closing menu. Also fix ‘toggle’ control with boolean cvars: properly save negated values. Change menu script to use boolean toggles instead of bitmasks where appropriate.
Diffstat (limited to 'src/client/ui/ui.h')
-rw-r--r--src/client/ui/ui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/ui/ui.h b/src/client/ui/ui.h
index 7c1df9c..71e2f5b 100644
--- a/src/client/ui/ui.h
+++ b/src/client/ui/ui.h
@@ -158,6 +158,7 @@ typedef struct menuField_s {
typedef struct menuSlider_s {
menuCommon_t generic;
cvar_t *cvar;
+ qboolean modified;
float minvalue;
float maxvalue;