home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 July / maximum-cd-2010-07.iso / DiscContents / wesnoth-1.8-win32.exe / data / gui / default / widget / tooltip_default.cfg < prev    next >
Encoding:
Text File  |  2009-12-13  |  1.2 KB  |  63 lines

  1. #textdomain wesnoth-lib
  2. ###
  3. ### Definition of a tooltip.
  4. ###
  5.  
  6.  
  7. #define _GUI_RESOLUTION RESOLUTION MAX_WIDTH BORDER FONT_SIZE
  8.     [resolution]
  9.         min_width = 0
  10.         min_height = 0
  11.  
  12.         default_width = 0
  13.         default_height = 0
  14.  
  15.         max_width = {MAX_WIDTH}
  16.         max_height = 0
  17.  
  18.         text_font_size = {FONT_SIZE}
  19.         text_extra_width = {BORDER}
  20.         text_extra_height = {BORDER}
  21.  
  22.         [state_enabled]
  23.  
  24.             [draw]
  25.                 
  26.                 [rectangle]
  27.                     x = 0
  28.                     y = 0
  29.                     w = "(width)"
  30.                     h = "(height)"
  31.                     border_thickness = 0
  32.                     fill_colour = "0, 0, 0, 187"
  33.                 [/rectangle]
  34.  
  35.                 [text]
  36.                     x = "((width-text_width)/2)"
  37.                     y = "((height-text_height)/2)"
  38.                     w = "(text_width)"
  39.                     h = "(text_height)"
  40.                     font_size = {FONT_SIZE}
  41.                     colour = {GUI__FONT_COLOUR_ENABLED__DEFAULT}
  42.                     text = "(text)"
  43.                 [/text]
  44.  
  45.             [/draw]
  46.     
  47.         [/state_enabled]
  48.  
  49.     [/resolution]
  50. #enddef
  51.  
  52. [tooltip_definition]
  53.     id = "default"
  54.     description = "small help tooltip"
  55.  
  56.     # Tiny gui sizes haven't been tested yet so might need some tuning.
  57.     {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 150 4 ({GUI_TINY__FONT_SIZE__LARGE})   }
  58.     {_GUI_RESOLUTION ()                       300 10 ({GUI_NORMAL__FONT_SIZE__LARGE}) }
  59.  
  60. [/tooltip_definition]
  61.  
  62. #undef _GUI_RESOLUTION 
  63.