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 / repeating_button_default.cfg < prev    next >
Encoding:
Text File  |  2009-12-27  |  2.6 KB  |  154 lines

  1. #textdomain wesnoth-lib
  2. ###
  3. ### Definition of repeating buttons which have a 25 x 25 pixels image.
  4. ### - down arrow button for the listbox.
  5. ### - up arrow button for the listbox.
  6.  
  7. #define _GUI_RESOLUTION RESOLUTION SIZE IMAGE
  8.     [resolution]
  9.  
  10.         {RESOLUTION}
  11.  
  12.         min_width = {SIZE}
  13.         min_height = {SIZE}
  14.  
  15.         default_width = {SIZE}
  16.         default_height = {SIZE}
  17.  
  18.         max_width = {SIZE}
  19.         max_height = {SIZE}
  20.  
  21.         [state_enabled]
  22.  
  23.             [draw]
  24.  
  25.                 [image]
  26.                     w = {SIZE}
  27.                     h = {SIZE}
  28.                     name = {IMAGE} + ".png"
  29.                 [/image]
  30.  
  31.             [/draw]
  32.  
  33.         [/state_enabled]
  34.  
  35.         [state_disabled]
  36.  
  37.             [draw]
  38.  
  39.                 [image]
  40.                     w = {SIZE}
  41.                     h = {SIZE}
  42.                     name = {IMAGE} + "-disabled.png"
  43.                 [/image]
  44.  
  45.             [/draw]
  46.  
  47.         [/state_disabled]
  48.  
  49.         [state_pressed]
  50.  
  51.             [draw]
  52.  
  53.                 [image]
  54.                     w = {SIZE}
  55.                     h = {SIZE}
  56.                     name = {IMAGE} + "-pressed.png"
  57.                 [/image]
  58.  
  59.             [/draw]
  60.  
  61.         [/state_pressed]
  62.  
  63.         [state_focussed]
  64.  
  65.             [draw]
  66.  
  67.                 [image]
  68.                     w = {SIZE}
  69.                     h = {SIZE}
  70.                     name = {IMAGE} + "-active.png"
  71.                 [/image]
  72.  
  73.             [/draw]
  74.  
  75.         [/state_focussed]
  76.  
  77.     [/resolution]
  78. #enddef
  79.  
  80. #define _GUI_DEFINITION ID DESCRIPTION IMAGE
  81. [repeating_button_definition]
  82.     id = {ID}
  83.     description = {DESCRIPTION}
  84.  
  85.     {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 12 ({IMAGE}) }
  86.     {_GUI_RESOLUTION ()                       25 ({IMAGE}) }
  87.  
  88. [/repeating_button_definition]
  89. #enddef
  90.  
  91. # Default normally not used since the versions with specific images are
  92. # preferred.
  93. {_GUI_DEFINITION
  94.     "default"
  95.     "Default don't use."
  96.     "buttons/button"
  97. }
  98.  
  99. # Opaques arrow buttons
  100.  
  101. {_GUI_DEFINITION
  102.     "down_arrow"
  103.     "Down arrow button for a scrollbar."
  104.     "buttons/downarrow-button"
  105. }
  106.  
  107. {_GUI_DEFINITION
  108.     "up_arrow"
  109.     "Up arrow button for a scrollbar."
  110.     "buttons/uparrow-button"
  111. }
  112.  
  113. {_GUI_DEFINITION
  114.     "left_arrow"
  115.     "Left arrow button for a scrollbar."
  116.     "buttons/left_arrow-button"
  117. }
  118.  
  119. {_GUI_DEFINITION
  120.     "right_arrow"
  121.     "Right arrow button for a scrollbar."
  122.     "buttons/right_arrow-button"
  123. }
  124.  
  125. # Opaques arrow buttons
  126.  
  127. {_GUI_DEFINITION
  128.     "down_arrow_transparent"
  129.     "Down arrow button for a transparent scrollbar."
  130.     "buttons/downarrow-button_transparent"
  131. }
  132.  
  133. {_GUI_DEFINITION
  134.     "up_arrow_transparent"
  135.     "Up arrow button for a transparent scrollbar."
  136.     "buttons/uparrow-button_transparent"
  137. }
  138.  
  139. {_GUI_DEFINITION
  140.     "left_arrow_transparent"
  141.     "Left arrow button for a transparent scrollbar."
  142.     "buttons/left_arrow-button_transparent"
  143. }
  144.  
  145. {_GUI_DEFINITION
  146.     "right_arrow_transparent"
  147.     "Right arrow button for a transparent scrollbar."
  148.     "buttons/right_arrow-button_transparent"
  149. }
  150.  
  151. #undef _GUI_DEFINITION
  152. #undef _GUI_RESOLUTION
  153.  
  154.