mail[Wesnoth-commits] r29055 - /trunk/data/gui/default/widget/tooltip_default.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 28, 2008 - 19:24:
Author: mordante
Date: Thu Aug 28 19:24:00 2008
New Revision: 29055

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29055&view=rev
Log:
Updated to the new style.

Modified:
    trunk/data/gui/default/widget/tooltip_default.cfg

Modified: trunk/data/gui/default/widget/tooltip_default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/tooltip_default.cfg?rev=29055&r1=29054&r2=29055&view=diff
==============================================================================
--- trunk/data/gui/default/widget/tooltip_default.cfg (original)
+++ trunk/data/gui/default/widget/tooltip_default.cfg Thu Aug 28 19:24:00 2008
@@ -2,10 +2,8 @@
 ### Definition of a tooltip.
 ###
 
-[tooltip_definition]
-       id = "default"
-       description = "small help tooltip"
 
+#define _GUI_RESOLUTION RESOLUTION MAX_WIDTH FONT_SIZE
        [resolution]
                min_width = 0
                min_height = 0
@@ -13,10 +11,10 @@
                default_width = 0
                default_height = 0
 
-               max_width = 300
+               max_width = {MAX_WIDTH}
                max_height = 0
 
-               text_font_size = 16
+               text_font_size = {FONT_SIZE}
 
                [state_enabled]
 
@@ -38,8 +36,8 @@
                                        y = 0
                                        w = "(text_width)"
                                        h = "(text_height)"
-                                       font_size = 16
-                                       colour = "255, 255, 255, 0"
+                                       font_size = {FONT_SIZE}
+                                       colour = 
{GUI__FONT_COLOUR_ENABLED__DEFAULT}
                                        text = "(text)"
                                [/text]
 
@@ -48,5 +46,16 @@
                [/state_enabled]
 
        [/resolution]
+#enddef
+
+[tooltip_definition]
+       id = "default"
+       description = "small help tooltip"
+
+       # Tiny gui sizes haven't been tested yet so might need some tuning.
+       {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 150 
({GUI_TINY__FONT_SIZE__SMALL})   }
+       {_GUI_RESOLUTION ()                       300 
({GUI_NORMAL__FONT_SIZE__SMALL}) }
 
 [/tooltip_definition]
+
+#undef _GUI_RESOLUTION 




Related Messages


Powered by MHonArc, Updated Thu Aug 28 19:41:03 2008