[nexuiz-commits] r6816 - in trunk/data: gfx/menu/blueplastic gfx/menu/default gfx/menu/silver gfx/menu/simplygray gfx/menu/wickedblack gfx/menu/wickedblue gfx/menu/wickedgreen gfx/menu/wickedred gfx/menu/wickedwhite gfx/menu/wickedyellow gfx/menu/wickedz gfx/menu/xaw qcsrc/menu qcsrc/menu/nexuiz

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 31 06:25:23 EDT 2009


Author: div0
Date: 2009-05-31 06:25:22 -0400 (Sun, 31 May 2009)
New Revision: 6816

Modified:
   trunk/data/gfx/menu/blueplastic/skinvalues.txt
   trunk/data/gfx/menu/default/skinvalues.txt
   trunk/data/gfx/menu/silver/skinvalues.txt
   trunk/data/gfx/menu/simplygray/skinvalues.txt
   trunk/data/gfx/menu/wickedblack/skinvalues.txt
   trunk/data/gfx/menu/wickedblue/skinvalues.txt
   trunk/data/gfx/menu/wickedgreen/skinvalues.txt
   trunk/data/gfx/menu/wickedred/skinvalues.txt
   trunk/data/gfx/menu/wickedwhite/skinvalues.txt
   trunk/data/gfx/menu/wickedyellow/skinvalues.txt
   trunk/data/gfx/menu/wickedz/skinvalues.txt
   trunk/data/gfx/menu/xaw/skinvalues.txt
   trunk/data/qcsrc/menu/item.c
   trunk/data/qcsrc/menu/menu.qc
   trunk/data/qcsrc/menu/nexuiz/dialog_credits.c
   trunk/data/qcsrc/menu/skin-customizables.inc
Log:
tooltip support for the menu (only the credits dialog has a tooltip as of now)

To assign a tooltip to a class, add:
	ATTRIB(CLASSNAMEGOESHERE, tooltip, string, "Information about who was involved in making this game.")
to the class declaration

To assign a tooltip to a button or label or other item, add:
	e.tooltip = "Information about who was involved in making this game.";
behind the "e = make......" function call.


Modified: trunk/data/gfx/menu/blueplastic/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/blueplastic/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/blueplastic/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -9,6 +9,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 1 1'
 COLOR_DIALOG_SETTINGS           '1 1 1'

Modified: trunk/data/gfx/menu/default/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/default/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/default/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '0.7 0.7 1'
 COLOR_DIALOG_SETTINGS           '0.7 0.7 1'

Modified: trunk/data/gfx/menu/silver/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/silver/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/silver/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 1 1'
 COLOR_DIALOG_SETTINGS           '0.95 0.95 1'

Modified: trunk/data/gfx/menu/simplygray/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/simplygray/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/simplygray/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              0
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '0.7 0.7 0.7'
 COLOR_DIALOG_SETTINGS           '0.7 0.7 0.7'

Modified: trunk/data/gfx/menu/wickedblack/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedblack/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedblack/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 1 1'
 COLOR_DIALOG_SETTINGS           '1 1 1'

Modified: trunk/data/gfx/menu/wickedblue/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedblue/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedblue/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '0.5 0.75 1'
 COLOR_DIALOG_SETTINGS           '0.5 0.75 1'

Modified: trunk/data/gfx/menu/wickedgreen/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedgreen/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedgreen/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '0.5 1 0'
 COLOR_DIALOG_SETTINGS           '0.5 1 0'

Modified: trunk/data/gfx/menu/wickedred/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedred/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedred/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 0 0'
 COLOR_DIALOG_SETTINGS           '1 0 0'

Modified: trunk/data/gfx/menu/wickedwhite/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedwhite/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedwhite/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 1 1'
 COLOR_DIALOG_SETTINGS           '1 1 1'

Modified: trunk/data/gfx/menu/wickedyellow/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedyellow/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedyellow/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              -1
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 0.875 0'
 COLOR_DIALOG_SETTINGS           '1 0.875 0'

Modified: trunk/data/gfx/menu/wickedz/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/wickedz/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/wickedz/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -22,6 +22,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              0
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '0.4 0.8 0.9'
 COLOR_DIALOG_SETTINGS           '0.5 0.65 0.7'

Modified: trunk/data/gfx/menu/xaw/skinvalues.txt
===================================================================
--- trunk/data/gfx/menu/xaw/skinvalues.txt	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/gfx/menu/xaw/skinvalues.txt	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,15 @@
 HEIGHT_TITLE                    1.5
 HEIGHT_ZOOMEDTITLE              0
 
+// tooltips
+//   uses "tooltip" images
+MARGIN_TOOLTIP                  '5 5 0'
+BORDER_TOOLTIP                  '8 8 0'
+FONTSIZE_TOOLTIP                12
+ALPHA_TOOLTIP                   0.7
+WIDTH_TOOLTIP                   0.3
+AVOID_TOOLTIP                   '8 8 0'
+
 // the individual dialog background colors
 COLOR_DIALOG_MULTIPLAYER        '1 1 1'
 COLOR_DIALOG_SETTINGS           '1 1 1'

Modified: trunk/data/qcsrc/menu/item.c
===================================================================
--- trunk/data/qcsrc/menu/item.c	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/qcsrc/menu/item.c	2009-05-31 10:25:22 UTC (rev 6816)
@@ -21,6 +21,7 @@
 	ATTRIB(Item, preferredFocusPriority, float, 0)
 	ATTRIB(Item, origin, vector, '0 0 0')
 	ATTRIB(Item, size, vector, '0 0 0')
+	ATTRIB(Item, tooltip, string, string_null)
 ENDCLASS(Item)
 #endif
 
@@ -41,6 +42,7 @@
 {
 	me.origin = absOrigin;
 	me.size = absSize;
+	// me.tooltip = "The quick brown fox jumped over the lazy sleeping dog's back then sat on a tack. Franz jagt im komplett verwahrlosten Taxi quer durch Bayern.";
 }
 
 void drawItem(entity me)

Modified: trunk/data/qcsrc/menu/menu.qc
===================================================================
--- trunk/data/qcsrc/menu/menu.qc	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/qcsrc/menu/menu.qc	2009-05-31 10:25:22 UTC (rev 6816)
@@ -206,6 +206,224 @@
 	draw_Picture('0.5 0.5 0' - 0.5 * isz, img, isz, '1 1 1', a);
 }
 
+
+vector menuTooltipAveragedMousePos;
+entity menuTooltipItem;
+vector menuTooltipOrigin;
+vector menuTooltipSize;
+float menuTooltipAlpha;
+float menuTooltipState; // 0: no tooltip, 1: fading in, 2: displaying, 3: fading out
+float m_testmousetooltipbox(vector pos)
+{
+	if(pos_x >= menuTooltipOrigin_x && pos_x < menuTooltipOrigin_x + menuTooltipSize_x)
+	if(pos_y >= menuTooltipOrigin_y && pos_y < menuTooltipOrigin_y + menuTooltipSize_y)
+		return FALSE;
+	return TRUE;
+}
+float m_testtooltipbox(vector tooltippos)
+{
+	if(tooltippos_x < 0)
+		return FALSE;
+	if(tooltippos_y < 0)
+		return FALSE;
+	if(tooltippos_x + menuTooltipSize_x > 1)
+		return FALSE;
+	if(tooltippos_y + menuTooltipSize_y > 1)
+		return FALSE;
+	menuTooltipOrigin = tooltippos;
+	return TRUE;
+}
+float m_allocatetooltipbox(vector pos)
+{
+	vector avoidplus, avoidminus;
+	vector v;
+
+	avoidplus_x = (SKINAVOID_TOOLTIP_x + SKINSIZE_CURSOR_x - SKINOFFSET_CURSOR_x) / conwidth;
+	avoidplus_y = (SKINAVOID_TOOLTIP_y + SKINSIZE_CURSOR_y - SKINOFFSET_CURSOR_y) / conheight;
+	avoidplus_z = 0;
+
+	avoidminus_x = (SKINAVOID_TOOLTIP_x + SKINOFFSET_CURSOR_x) / conwidth + menuTooltipSize_x;
+	avoidminus_y = (SKINAVOID_TOOLTIP_y + SKINOFFSET_CURSOR_y) / conheight + menuTooltipSize_y;
+	avoidminus_z = 0;
+
+	// bottom right
+	v = pos + avoidplus;
+	if(m_testtooltipbox(v))
+		return TRUE;
+	
+	// bottom center
+	v_x = pos_x - menuTooltipSize_x * 0.5;
+	if(m_testtooltipbox(v))
+		return TRUE;
+
+	// bottom left
+	v_x = pos_x - avoidminus_x;
+	if(m_testtooltipbox(v))
+		return TRUE;
+
+	// top left
+	v_y = pos_y - avoidminus_y;
+	if(m_testtooltipbox(v))
+		return TRUE;
+
+	// top center
+	v_x = pos_x - menuTooltipSize_x * 0.5;
+	if(m_testtooltipbox(v))
+		return TRUE;
+	
+	// top right
+	v_x = pos_x + avoidplus_x;
+	if(m_testtooltipbox(v))
+		return TRUE;
+	
+	return FALSE;
+}
+entity m_findtooltipitem(entity root, vector pos)
+{
+	entity it;
+	entity best;
+
+	best = world;
+	it = root;
+
+	while(it.instanceOfContainer)
+	{
+		if(it.instanceOfNexposee)
+		{
+			if(it.focusedChild)
+			{
+				it = it.focusedChild;
+			}
+			else
+			{
+				it = it.itemFromPoint(it, pos);
+				if(it.tooltip)
+					best = it;
+				break;
+			}
+		}
+		else if(it.instanceOfModalController)
+			it = it.focusedChild;
+		else
+			it = it.itemFromPoint(it, pos);
+		if(it.tooltip)
+			best = it;
+		pos = globalToBox(pos, it.Container_origin, it.Container_size);
+	}
+
+	return best;
+}
+void m_tooltip(vector pos)
+{
+	float f, i, w;
+	entity it;
+	vector fontsize, p;
+	string s;
+
+	fontsize = '1 0 0' * (SKINFONTSIZE_TOOLTIP / conwidth) + '0 1 0' * (SKINFONTSIZE_TOOLTIP / conheight);
+
+	f = bound(0, frametime * 2, 1);
+	menuTooltipAveragedMousePos = menuTooltipAveragedMousePos * (1 - f) + pos * f;
+	f = vlen(pos - menuTooltipAveragedMousePos);
+
+	if(f < 0.01)
+		it = m_findtooltipitem(main, pos);
+	else	
+		it = world;
+
+	// float menuTooltipState; // 0: static, 1: fading in, 2: fading out
+	if(it != menuTooltipItem)
+	{
+		switch(menuTooltipState)
+		{
+			case 0:
+				if(menuTooltipItem)
+				{
+					// another item: fade out first
+					menuTooltipState = 2;
+				}
+				else
+				{
+					// new item: fade in
+					menuTooltipState = 1;
+					menuTooltipItem = it;
+
+					menuTooltipOrigin_x = -1; // unallocated
+					i = 0;
+					w =  0;
+					getWrappedLine_remaining = it.tooltip;
+					while(getWrappedLine_remaining)
+					{
+						s = getWrappedLine(SKINWIDTH_TOOLTIP / fontsize_x, draw_TextWidth_WithoutColors);
+						++i;
+						f = draw_TextWidth(s, FALSE);
+						if(f > w)
+							w = f;
+					}
+					menuTooltipSize_x = w * fontsize_x + 2 * (SKINMARGIN_TOOLTIP_x / conwidth);
+					menuTooltipSize_y = i * fontsize_y + 2 * (SKINMARGIN_TOOLTIP_y / conheight);
+					menuTooltipSize_z = 0;
+				}
+				break;
+			case 1:
+				// changing item while fading in: fade out first
+				menuTooltipState = 2;
+				break;
+			case 2:
+				// changing item while fading out: can't
+				break;
+		}
+	}
+	else if(menuTooltipState == 2) // re-fade in?
+		menuTooltipState = 1;
+
+	if(menuTooltipItem)
+		if(!m_testmousetooltipbox(pos))
+			menuTooltipState = 2; // fade out if mouse touches it
+
+	switch(menuTooltipState)
+	{
+		case 1:
+			menuTooltipAlpha = bound(0, menuTooltipAlpha + 5 * frametime, 1);
+			if(menuTooltipAlpha == 1)
+				menuTooltipState = 0;
+			break;
+		case 2:
+			menuTooltipAlpha = bound(0, menuTooltipAlpha - 2 * frametime, 1);
+			if(menuTooltipAlpha == 0)
+			{
+				menuTooltipState = 0;
+				menuTooltipItem = world;
+			}
+			break;
+	}
+
+	if(menuTooltipItem)
+	{
+		if(menuTooltipOrigin_x < 0) // unallocated?
+			m_allocatetooltipbox(pos);
+
+		if(menuTooltipOrigin_x >= 0)
+		{
+			// draw the tooltip!
+			p = SKINBORDER_TOOLTIP;
+			p_x *= 1 / conwidth;
+			p_y *= 1 / conheight;
+			draw_BorderPicture(menuTooltipOrigin, SKINGFX_TOOLTIP, menuTooltipSize, '1 1 1', menuTooltipAlpha, p);
+			p = menuTooltipOrigin;
+			p_x += SKINMARGIN_TOOLTIP_x / conwidth;
+			p_y += SKINMARGIN_TOOLTIP_y / conheight;
+			getWrappedLine_remaining = menuTooltipItem.tooltip;
+			while(getWrappedLine_remaining)
+			{
+				s = getWrappedLine(SKINWIDTH_TOOLTIP / fontsize_x, draw_TextWidth_WithoutColors);
+				draw_Text(p, s, fontsize, '1 1 1', SKINALPHA_TOOLTIP * menuTooltipAlpha, FALSE);
+				p_y += fontsize_y;
+			}
+		}
+	}
+}
+
 void() m_draw =
 {
 	float t;
@@ -356,6 +574,9 @@
 		}
 	}
 	main.draw(main);
+
+	m_tooltip(menuMousePos);
+
 	draw_alpha = max(draw_alpha, SKINALPHA_CURSOR_INTRO * bound(0, menuLogoAlpha, 1));
 
 	draw_drawMousePointer(menuMousePos);

Modified: trunk/data/qcsrc/menu/nexuiz/dialog_credits.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/dialog_credits.c	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/qcsrc/menu/nexuiz/dialog_credits.c	2009-05-31 10:25:22 UTC (rev 6816)
@@ -8,6 +8,7 @@
 	ATTRIB(NexuizCreditsDialog, rows, float, SKINROWS_CREDITS)
 	ATTRIB(NexuizCreditsDialog, columns, float, 2)
 	ATTRIB(NexuizCreditsDialog, creditsList, entity, NULL)
+	ATTRIB(NexuizCreditsDialog, tooltip, string, "Information about who was involved in making this game.")
 ENDCLASS(NexuizCreditsDialog)
 #endif
 

Modified: trunk/data/qcsrc/menu/skin-customizables.inc
===================================================================
--- trunk/data/qcsrc/menu/skin-customizables.inc	2009-05-30 20:49:08 UTC (rev 6815)
+++ trunk/data/qcsrc/menu/skin-customizables.inc	2009-05-31 10:25:22 UTC (rev 6816)
@@ -40,6 +40,15 @@
 	SKINFLOAT(HEIGHT_TITLE, 1.5);
 	SKINFLOAT(HEIGHT_ZOOMEDTITLE, -1);
 
+	// tooltips
+	SKINSTRING(GFX_TOOLTIP, "tooltip");
+	SKINVECTOR(MARGIN_TOOLTIP, '5 5 0');
+	SKINVECTOR(BORDER_TOOLTIP, '8 8 0');
+	SKINFLOAT(FONTSIZE_TOOLTIP, 12);
+	SKINFLOAT(ALPHA_TOOLTIP, 0.7);
+	SKINFLOAT(WIDTH_TOOLTIP, 0.3);
+	SKINVECTOR(AVOID_TOOLTIP, '8 8 0');
+
 	// the individual dialog background colors
 	SKINVECTOR(COLOR_DIALOG_MULTIPLAYER, '0.7 0.7 1');
 	SKINVECTOR(COLOR_DIALOG_SETTINGS, '0.7 0.7 1');



More information about the nexuiz-commits mailing list