mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 07:54:17 +00:00
103 lines
2.2 KiB
INI
103 lines
2.2 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of a label.
|
|
###
|
|
### Defines the following labels
|
|
### - default, the one for general usage.
|
|
### - title, for titles in dialogs.
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION FONT_SIZE FONT_STYLE FONT_COLOUR_ENABLED FONT_COLOUR_DISABLED
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = 0
|
|
min_height = 0
|
|
|
|
default_width = 0
|
|
default_height = 0
|
|
|
|
max_width = 0
|
|
max_height = 0
|
|
|
|
text_font_size = {FONT_SIZE}
|
|
text_font_style = {FONT_STYLE}
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[text]
|
|
x = 0
|
|
y = {GUI__TEXT_VERTICALLY_CENTRED}
|
|
w = "(width)"
|
|
h = "(text_height)"
|
|
maximum_width = "(width)"
|
|
font_size = {FONT_SIZE}
|
|
font_style = {FONT_STYLE}
|
|
colour = {FONT_COLOUR_ENABLED}
|
|
text = "(text)"
|
|
text_markup = "(text_markup)"
|
|
[/text]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[text]
|
|
x = 0
|
|
y = {GUI__TEXT_VERTICALLY_CENTRED}
|
|
w = "(width)"
|
|
h = "(text_height)"
|
|
maximum_width = "(width)"
|
|
font_size = {FONT_SIZE}
|
|
font_style = {FONT_STYLE}
|
|
colour = {FONT_COLOUR_DISABLED}
|
|
text = "(text)"
|
|
text_markup = "(text_markup)"
|
|
[/text]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
#define _GUI_DEFINITION ID DESCRIPTION FONT_SIZE FONT_STYLE FONT_COLOUR
|
|
[label_definition]
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
{_GUI_RESOLUTION
|
|
({GUI_TINY__RESOLUTION})
|
|
({GUI_TINY__FONT_SIZE__{FONT_SIZE}})
|
|
({FONT_STYLE})
|
|
({GUI__FONT_COLOUR_ENABLED__{FONT_COLOUR}})
|
|
({GUI__FONT_COLOUR_DISABLED__{FONT_COLOUR}})
|
|
}
|
|
|
|
|
|
{_GUI_RESOLUTION
|
|
({GUI_NORMAL__RESOLUTION})
|
|
({GUI_NORMAL__FONT_SIZE__{FONT_SIZE}})
|
|
({FONT_STYLE})
|
|
({GUI__FONT_COLOUR_ENABLED__{FONT_COLOUR}})
|
|
({GUI__FONT_COLOUR_DISABLED__{FONT_COLOUR}})
|
|
}
|
|
|
|
[/label_definition]
|
|
#enddef
|
|
|
|
{_GUI_DEFINITION "default" "default label" DEFAULT () DEFAULT }
|
|
{_GUI_DEFINITION "title" "label used for titles" TITLE "bold" TITLE }
|
|
{_GUI_DEFINITION "default_small" "default, small font size" SMALL () DEFAULT }
|
|
{_GUI_DEFINITION "default_tiny" "default, small font size" TINY () DEFAULT }
|
|
|
|
#undef _GUI_DEFINITION
|
|
#undef _GUI_RESOLUTION
|