[nexuiz-commits] r6819 - trunk/data/qcsrc/menu/nexuiz
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun May 31 06:53:26 EDT 2009
Author: div0
Date: 2009-05-31 06:53:26 -0400 (Sun, 31 May 2009)
New Revision: 6819
Modified:
trunk/data/qcsrc/menu/nexuiz/checkbox.c
trunk/data/qcsrc/menu/nexuiz/gametypebutton.c
trunk/data/qcsrc/menu/nexuiz/inputbox.c
trunk/data/qcsrc/menu/nexuiz/radiobutton.c
trunk/data/qcsrc/menu/nexuiz/slider.c
trunk/data/qcsrc/menu/nexuiz/textslider.c
Log:
only show tooltips for not engine owned cvars
Modified: trunk/data/qcsrc/menu/nexuiz/checkbox.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/checkbox.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/checkbox.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -64,8 +64,9 @@
if(theCvar)
{
me.cvarName = theCvar;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
me.loadCvars(me);
}
me.configureCheckBox(me, theText, me.fontSize, me.image);
Modified: trunk/data/qcsrc/menu/nexuiz/gametypebutton.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/gametypebutton.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/gametypebutton.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -35,8 +35,9 @@
if(theCvar)
{
me.cvarName = theCvar;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
me.loadCvars(me);
}
me.configureRadioButton(me, theText, me.fontSize, me.image, theGroup, 0);
Modified: trunk/data/qcsrc/menu/nexuiz/inputbox.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/inputbox.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/inputbox.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -39,8 +39,9 @@
if(theCvar)
{
me.cvarName = theCvar;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
me.loadCvars(me);
}
me.cursorPos = strlen(me.text);
Modified: trunk/data/qcsrc/menu/nexuiz/radiobutton.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/radiobutton.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/radiobutton.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -36,8 +36,9 @@
{
me.cvarName = theCvar;
me.cvarValue = theValue;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
me.loadCvars(me);
}
me.configureRadioButton(me, theText, me.fontSize, me.image, theGroup, 0);
Modified: trunk/data/qcsrc/menu/nexuiz/slider.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/slider.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/slider.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -44,8 +44,9 @@
if(theCvar)
{
me.cvarName = theCvar;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
me.loadCvars(me);
}
}
Modified: trunk/data/qcsrc/menu/nexuiz/textslider.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/textslider.c 2009-05-31 10:45:28 UTC (rev 6818)
+++ trunk/data/qcsrc/menu/nexuiz/textslider.c 2009-05-31 10:53:26 UTC (rev 6819)
@@ -38,8 +38,9 @@
if(theCvar)
{
me.cvarName = theCvar;
- if(cvar_description(theCvar) != "custom cvar")
- me.tooltip = strzone(cvar_description(theCvar));
+ if not(cvar_type(theCvar) & CVAR_TYPEFLAG_ENGINE)
+ if(cvar_description(theCvar) != "custom cvar")
+ me.tooltip = strzone(cvar_description(theCvar));
// don't load it yet
}
}
More information about the nexuiz-commits
mailing list