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 / label_default.cfg < prev    next >
Encoding:
Text File  |  2009-11-26  |  2.5 KB  |  106 lines

  1. #textdomain wesnoth-lib
  2. ###
  3. ### Definition of a label.
  4. ### 
  5. ### Defines the following labels
  6. ### - default, the one for general usage.
  7. ### - title, for titles in dialogs.
  8.  
  9. #define _GUI_RESOLUTION RESOLUTION FONT_SIZE FONT_STYLE FONT_COLOUR_ENABLED FONT_COLOUR_DISABLED Y_POSITION
  10.     [resolution]
  11.  
  12.         {RESOLUTION}
  13.  
  14.         min_width = 0
  15.         min_height = 0
  16.  
  17.         default_width = 0
  18.         default_height = 0
  19.  
  20.         max_width = 0
  21.         max_height = 0
  22.  
  23.         text_font_size = {FONT_SIZE}
  24.         text_font_style = {FONT_STYLE}
  25.  
  26.         [state_enabled]
  27.  
  28.             [draw]
  29.  
  30.                 [text]
  31.                     x = 0
  32.                     y = {Y_POSITION}
  33.                     w = "(width)"
  34.                     h = "(text_height)"
  35.                     maximum_width = "(width)"
  36.                     font_size = {FONT_SIZE}
  37.                     font_style = {FONT_STYLE}
  38.                     colour = {FONT_COLOUR_ENABLED}
  39.                     text = "(text)"
  40.                     text_markup = "(text_markup)"
  41.                 [/text]
  42.  
  43.             [/draw]
  44.     
  45.         [/state_enabled]
  46.  
  47.         [state_disabled]
  48.  
  49.             [draw]
  50.  
  51.                 [text]
  52.                     x = 0
  53.                     y = {Y_POSITION}
  54.                     w = "(width)"
  55.                     h = "(text_height)"
  56.                     maximum_width = "(width)"
  57.                     font_size = {FONT_SIZE}
  58.                     font_style = {FONT_STYLE}
  59.                     colour = {FONT_COLOUR_DISABLED}
  60.                     text = "(text)"
  61.                     text_markup = "(text_markup)"
  62.                 [/text]
  63.  
  64.             [/draw]
  65.     
  66.         [/state_disabled]
  67.  
  68.     [/resolution]
  69. #enddef
  70.  
  71. #define _GUI_DEFINITION ID DESCRIPTION FONT_SIZE FONT_STYLE FONT_COLOUR Y_POSITION
  72. [label_definition]
  73.     id = {ID}
  74.     description = {DESCRIPTION}
  75.  
  76.     {_GUI_RESOLUTION 
  77.         ({GUI_TINY__RESOLUTION})
  78.         ({GUI_TINY__FONT_SIZE__{FONT_SIZE}})
  79.         ({FONT_STYLE})
  80.         ({GUI__FONT_COLOUR_ENABLED__{FONT_COLOUR}})
  81.         ({GUI__FONT_COLOUR_DISABLED__{FONT_COLOUR}})
  82.         ({Y_POSITION})
  83.     }
  84.  
  85.     
  86.     {_GUI_RESOLUTION 
  87.         ({GUI_NORMAL__RESOLUTION}) 
  88.         ({GUI_NORMAL__FONT_SIZE__{FONT_SIZE}}) 
  89.         ({FONT_STYLE}) 
  90.         ({GUI__FONT_COLOUR_ENABLED__{FONT_COLOUR}}) 
  91.         ({GUI__FONT_COLOUR_DISABLED__{FONT_COLOUR}}) 
  92.         ({Y_POSITION})
  93.     }
  94.  
  95. [/label_definition]
  96. #enddef
  97.  
  98. {_GUI_DEFINITION "default"       "default label"            DEFAULT      ()     DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})}
  99. {_GUI_DEFINITION "scroll_label"  "scroll label"             DEFAULT      ()     DEFAULT 0}
  100. {_GUI_DEFINITION "title"         "label used for titles"    TITLE        "bold" TITLE   ({GUI__TEXT_VERTICALLY_CENTRED})}
  101. {_GUI_DEFINITION "default_small" "default, small font size" SMALL        ()     DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})}
  102. {_GUI_DEFINITION "default_tiny"  "default, small font size" TINY         ()     DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})}
  103.  
  104. #undef _GUI_DEFINITION
  105. #undef _GUI_RESOLUTION 
  106.