Add a transparent listbox to the wml_message.

This commit is contained in:
Mark de Wever 2009-02-28 18:58:36 +00:00
parent 16a85ceb57
commit 1bd360080e
2 changed files with 155 additions and 2 deletions

View file

@ -0,0 +1,153 @@
#textdomain wesnoth-lib
###
### Definition of a listbox for wml message
###
#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]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[/draw]
[/state_disabled]
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = "true" # needed ?
vertical_grow = "true" # needed ?
[grid]
id = "_content_grid"
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = "true"
[grid]
id = "_header_grid"
[/grid]
[/column]
[/row]
[row]
[column]
horizontal_grow = "true"
vertical_grow = "true"
[grid]
id = "_list_grid"
[/grid]
[/column]
[/row]
[row]
[column]
horizontal_grow = "true"
[grid]
id = "_footer_grid"
[/grid]
[/column]
[/row]
[/grid]
[/column]
[column]
grow_factor = 0
{GUI__VERTICAL_SCROLLBAR_GRID_TRANSPARENT}
[/column]
[/row]
[row]
grow_factor = 0
[column]
{GUI__HORIZONTAL_SCROLLBAR_GRID_TRANSPARENT}
[/column]
[column]
[spacer]
[/spacer]
[/column]
[/row]
[/grid]
[/resolution]
#enddef
[listbox_definition]
id = "wml_message"
description = "Listbox for wml_message."
{_GUI_RESOLUTION
({GUI_TINY__RESOLUTION})
({GUI_TINY__FONT_SIZE__DEFAULT})
()
({GUI__FONT_COLOUR_ENABLED__DEFAULT})
({GUI__FONT_COLOUR_DISABLED__DEFAULT})
}
{_GUI_RESOLUTION
({GUI_NORMAL__RESOLUTION})
({GUI_NORMAL__FONT_SIZE__DEFAULT})
()
({GUI__FONT_COLOUR_ENABLED__DEFAULT})
({GUI__FONT_COLOUR_DISABLED__DEFAULT})
}
[/listbox_definition]
#undef _GUI_RESOLUTION

View file

@ -210,7 +210,7 @@
#define _GUI_INPUT_LIST
[listbox]
id = "input_list"
definition = "default"
definition = "wml_message"
[list_definition]
@ -221,7 +221,7 @@
horizontal_grow = "true"
[toggle_panel]
definition = "default"
definition = "wml_message"
return_value = -1
[grid]