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 / button_default.cfg < prev    next >
Encoding:
Text File  |  2009-03-01  |  2.4 KB  |  114 lines

  1. #textdomain wesnoth-lib
  2. ###
  3. ### Definition of the default button.
  4. ###
  5.  
  6. #define _GUI_RESOLUTION RESOLUTION MIN_WIDTH DEFAULT_WIDTH HEIGHT EXTRA_WIDTH EXTRA_HEIGHT FONT_SIZE BASE_NAME
  7.     [resolution]
  8.  
  9.         {RESOLUTION}
  10.  
  11.         min_width = {MIN_WIDTH}
  12.         min_height = {HEIGHT}
  13.  
  14.         default_width = {DEFAULT_WIDTH}
  15.         default_height = {HEIGHT}
  16.  
  17.         max_width = 0
  18.         max_height = {HEIGHT}
  19.  
  20.         text_extra_width = {EXTRA_WIDTH}
  21.         text_extra_height = {EXTRA_HEIGHT}
  22.         text_font_size = {FONT_SIZE}
  23.  
  24.         [state_enabled]
  25.  
  26.             [draw]
  27.  
  28.                 [image]
  29.                     w = "(width)"
  30.                     h = "(height)"
  31.                     name = "buttons/{BASE_NAME}.png"
  32.                 [/image]
  33.  
  34.                 {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOUR_ENABLED__TITLE})}
  35.  
  36.             [/draw]
  37.  
  38.         [/state_enabled]
  39.  
  40.         [state_disabled]
  41.  
  42.             [draw]
  43.  
  44.                 [image]
  45.                     w = "(width)"
  46.                     h = "(height)"
  47.                     name = "buttons/{BASE_NAME}-disabled.png"
  48.                 [/image]
  49.  
  50.                 {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOUR_DISABLED__TITLE})}
  51.  
  52.             [/draw]
  53.  
  54.         [/state_disabled]
  55.  
  56.         [state_pressed]
  57.  
  58.             [draw]
  59.  
  60.                 [image]
  61.                     w = "(width)"
  62.                     h = "(height)"
  63.                     name = "buttons/{BASE_NAME}-pressed.png"
  64.                 [/image]
  65.  
  66.                 {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOUR_ENABLED__TITLE})}
  67.  
  68.             [/draw]
  69.  
  70.         [/state_pressed]
  71.  
  72.         [state_focussed]
  73.  
  74.             [draw]
  75.  
  76.                 [image]
  77.                     w = "(width)"
  78.                     h = "(height)"
  79.                     name = "buttons/{BASE_NAME}-active.png"
  80.                 [/image]
  81.  
  82.                 {GUI__CENTERED_TEXT ({FONT_SIZE}) () ({GUI__FONT_COLOUR_ENABLED__TITLE})}
  83.  
  84.             [/draw]
  85.  
  86.         [/state_focussed]
  87.  
  88.     [/resolution]
  89. #enddef
  90.  
  91. [button_definition]
  92.  
  93.     id = "default"
  94.     description = "Default button"
  95.  
  96.     # Tiny gui sizes haven't been tested yet so might need some tuning.
  97.     {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 20  54 11  6 2 ({GUI_TINY__FONT_SIZE__SMALL})   "button" }
  98.     {_GUI_RESOLUTION ()                       40 108 22 13 4 ({GUI_NORMAL__FONT_SIZE__SMALL}) "button" }
  99.  
  100. [/button_definition]
  101.  
  102. [button_definition]
  103.  
  104.     id = "transparent"
  105.     description = "Default transparent button"
  106.  
  107.     # Tiny gui sizes haven't been tested yet so might need some tuning.
  108.     {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 20  54 11  6 2 ({GUI_TINY__FONT_SIZE__SMALL})   "button_transparent" }
  109.     {_GUI_RESOLUTION ()                       40 108 22 13 4 ({GUI_NORMAL__FONT_SIZE__SMALL}) "button_transparent" }
  110.  
  111. [/button_definition]
  112.  
  113. #undef _GUI_RESOLUTION 
  114.