ttitle_screen: use a standard label definition for version label

Since this label no longer has a special background, the custom definition isn't
necessary anymore.
This commit is contained in:
Charles Dang 2016-02-22 23:48:53 +11:00
parent 5aa86c42f0
commit b57def5130
2 changed files with 1 additions and 88 deletions

View file

@ -1,87 +0,0 @@
#textdomain wesnoth-lib
###
### Definition of a label.
###
### Defines the following revision label for the title screen.
#define _GUI_RESOLUTION RESOLUTION FONT_SIZE FONT_COLOR_ENABLED FONT_COLOR_DISABLED Y_POSITION
[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}
[state_enabled]
[draw]
[text]
x = 0
y = 0
w = "(width)"
h = "(height)"
maximum_width = "(width)"
font_size = {FONT_SIZE}
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}
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_COLOR Y_POSITION
[label_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION
({GUI_NORMAL__RESOLUTION})
({GUI_NORMAL__FONT_SIZE__{FONT_SIZE}})
({GUI__FONT_COLOR_ENABLED__{FONT_COLOR}})
({GUI__FONT_COLOR_DISABLED__{FONT_COLOR}})
({Y_POSITION})
}
[/label_definition]
#enddef
{_GUI_DEFINITION "title_screen_revision" "label used for the revision number in the title screen" SMALL DEFAULT ({GUI__TEXT_VERTICALLY_CENTRED})}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION

View file

@ -483,7 +483,7 @@
border_size = 5
[label]
id = "revision_number"
definition = "title_screen_revision"
definition = "default_small"
[/label]
[/column]