#textdomain wesnoth-lib ### ### Definition of a label. ### ### Defines the following labels ### - alignment, the one for general usage, which lets pango handle the alignment ### - title_screen_tip, the one for the tips in the title screen, with a maximum width #define _GUI_RESOLUTION RESOLUTION FONT_SIZE FONT_STYLE FONT_COLOR_ENABLED FONT_COLOR_DISABLED MAX_WIDTH [resolution] {RESOLUTION} min_width = 0 min_height = 0 default_width = 0 default_height = 0 max_width = {MAX_WIDTH} max_height = 0 text_font_size = {FONT_SIZE} text_font_style = {FONT_STYLE} [state_enabled] [draw] [text] x = 0 y = 0 w = "(width)" h = "(height)" maximum_width = "(width)" font_size = {FONT_SIZE} font_style = {FONT_STYLE} text_alignment = "(text_alignment)" color = {FONT_COLOR_ENABLED} text = "(text)" text_markup = "(text_markup)" [/text] [/draw] [/state_enabled] [state_disabled] [draw] [text] x = 0 y = 0 w = "(width)" h = "(height)" maximum_width = "(width)" font_size = {FONT_SIZE} font_style = {FONT_STYLE} text_alignment = "(text_alignment)" color = {FONT_COLOR_DISABLED} text = "(text)" text_markup = "(text_markup)" [/text] [/draw] [/state_disabled] [/resolution] #enddef #define _GUI_DEFINITION ID DESCRIPTION FONT_SIZE FONT_STYLE FONT_COLOR MAX_WIDTH [label_definition] id = {ID} description = {DESCRIPTION} {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) ({GUI_TINY__FONT_SIZE__{FONT_SIZE}}) ({FONT_STYLE}) ({GUI__FONT_COLOR_ENABLED__{FONT_COLOR}}) ({GUI__FONT_COLOR_DISABLED__{FONT_COLOR}}) ({MAX_WIDTH}) } {_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) ({GUI_NORMAL__FONT_SIZE__{FONT_SIZE}}) ({FONT_STYLE}) ({GUI__FONT_COLOR_ENABLED__{FONT_COLOR}}) ({GUI__FONT_COLOR_DISABLED__{FONT_COLOR}}) ({MAX_WIDTH}) } [/label_definition] #enddef # Enable the other types when needed. {_GUI_DEFINITION "alignment" "default label" DEFAULT () DEFAULT 0} {_GUI_DEFINITION "title_screen_tip" "Label used for the tips in the title screen" DEFAULT () DEFAULT 650} #{_GUI_DEFINITION "scroll_label" "scroll label" DEFAULT () DEFAULT 0} #{_GUI_DEFINITION "title" "label used for titles" TITLE "bold" TITLE ({GUI__TEXT_VERTICALLY_CENTRED})} #{_GUI_DEFINITION "default_small" "default, small font size" SMALL () DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})} #{_GUI_DEFINITION "default_tiny" "default, small font size" TINY () DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})} #undef _GUI_DEFINITION #undef _GUI_RESOLUTION