mail[Wesnoth-commits] r40149 - /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 guillaume . melquiond on December 06, 2009 - 18:14:
Author: silene
Date: Sun Dec  6 18:14:56 2009
New Revision: 40149

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40149&view=rev
Log:
Made gui2 use the same tooltip settings as gui1.

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=40149&r1=40148&r2=40149&view=diff
==============================================================================
--- trunk/data/gui/default/widget/tooltip_default.cfg (original)
+++ trunk/data/gui/default/widget/tooltip_default.cfg Sun Dec  6 18:14:56 2009
@@ -4,7 +4,7 @@
 ###
 
 
-#define _GUI_RESOLUTION RESOLUTION MAX_WIDTH FONT_SIZE
+#define _GUI_RESOLUTION RESOLUTION MAX_WIDTH BORDER FONT_SIZE
        [resolution]
                min_width = 0
                min_height = 0
@@ -16,6 +16,8 @@
                max_height = 0
 
                text_font_size = {FONT_SIZE}
+               text_extra_width = {BORDER}
+               text_extra_height = {BORDER}
 
                [state_enabled]
 
@@ -27,12 +29,12 @@
                                        w = "(width)"
                                        h = "(height)"
                                        border_thickness = 0
-                                       fill_colour = "0, 0, 0, 128"
+                                       fill_colour = "0, 0, 0, 187"
                                [/rectangle]
 
                                [text]
-                                       x = 0
-                                       y = 0
+                                       x = "((width-text_width)/2)"
+                                       y = "((height-text_height)/2)"
                                        w = "(text_width)"
                                        h = "(text_height)"
                                        font_size = {FONT_SIZE}
@@ -52,8 +54,8 @@
        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__LARGE})   }
-       {_GUI_RESOLUTION ()                       300 
({GUI_NORMAL__FONT_SIZE__LARGE}) }
+       {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 150 4 
({GUI_TINY__FONT_SIZE__LARGE})   }
+       {_GUI_RESOLUTION ()                       300 10 
({GUI_NORMAL__FONT_SIZE__LARGE}) }
 
 [/tooltip_definition]
 




Related Messages


Powered by MHonArc, Updated Sun Dec 06 19:00:07 2009