WML for the recruit gui2 dialog.

This commit is contained in:
Fabian Müller 2011-03-04 11:27:39 +00:00
parent 265c4ef87b
commit af7a57c30a

View file

@ -0,0 +1,322 @@
#textdomain wesnoth-lib
{gui/default/macros/_initial.cfg}
###
### The recruit dialogs
###
#[window_definition]
# id = "recruit_message_left"
# description = "bar"
#
# [resolution]
# [background]
# [draw]
# [/draw]
# [/background]
# [foreground]
# [draw]
# [image]
# x = "{__GUI_IMAGE_DISPLAYED_X X}"
# y = "{__GUI_IMAGE_DISPLAYED_Y}"
# w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
# h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
# name = "(portrait_image)"
# vertical_mirror = "(portrait_mirror)"
# [/image]
# [/draw]
# [/foreground]
# [/resolution]
#[/window_definition]
#[window_definition]
# id = "recruit_message_right"
# description = "bar"
# [resolution]
# [background]
# [draw]
# [/draw]
# [/background]
# [foreground]
# [draw]
# [image]
# x = "(width - {__GUI_IMAGE_DISPLAYED_WIDTH})"
# y = "(height - image_height)"
# w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
# h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
# name = "(portrait_image)"
# vertical_mirror = "(portrait_mirror)"
# [/image]
# [/draw]
# [/foreground]
# [/resolution]
#[/window_definition]
#define _GUI_RECRUIT_WINDOW SIDE
[window]
id=recruit_message_{SIDE}
description="A fucking description"
[resolution]
click_dismiss=false
definition= "default"
automatic_placement= "false"
vertical_placement= "center"
horizontal_placement= "right"
maximum_width= 800
maximum_height= 600
border_size=50
border=all
width=800
height=600
x=743
y=200
# definition = "recruit_message_{SIDE}"
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "title"
definition = "title"
[/label]
[/column]
[column]
grow_factor = 1
horizontal_grow = "true"
border = "all"
border_size = 5
[scroll_label]
id = "amessage"
# definition = "wml_message"
[/scroll_label]
[/column]
[/row]
[row]
[column]
horizontal_alignment=left
vertical_alignment=down
[grid]
[row]
[column]
border_size=5
border= "all"
automatic_placement=false
horizontal_alignment=left
vertical_alignment=down
width=500
height=500
fixed_width=true
fixed_height=true
[image]
# name = "(portrait_image)"
#w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
#h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
w=250
h=250
#width=500
#height=500
#fixed_width=true
#fixed_height=true
id=unit_portrait
[/image]
[/column]
[/row]
[row]
[column]
[grid]
[row]
[column]
[button]
id=profile
label = _"Profile"
[/button]
[/column]
[column]
[button]
id=help
label = _"Help"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[column]
horizontal_alignment=right
vertical_alignment=top
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = "true"
border = "all"
border_size = 5
[scroll_label]
id = "message"
definition = "wml_message"
[/scroll_label]
[/column]
[/row]
[row]
[column]
horizontal_grow=true
[listbox]
id = "recruit_list"
[list_definition]
[row]
[column]
horizontal_grow=true
[toggle_panel]
[grid]
[row]
[column]
[image]
id="icon"
[/image]
[/column]
[column]
horizontal_alignment= "left"
[label]
id= "type"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[/column]
[/row]
[row]
[column]
[grid]
[row]
[column]
horizontal_alignment=right
border_size=5
border= "all"
[button]
id=ok
label = _"OK"
[/button]
[/column]
[column]
horizontal_alignment=right
border_size=5
border= "all"
[button]
id=cancel
label = _"Cancel"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
#[row]
#[/row]
#[row]
#[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]
#enddef
{_GUI_RECRUIT_WINDOW left}
{_GUI_RECRUIT_WINDOW right}
# local dialog = {
# T.grid { T.row {
# T.column { T.grid {
# T.row { T.column { horizontal_grow = true, T.listbox { id = "the_list",
# T.list_definition { T.row { T.column { horizontal_grow = true,
# T.toggle_panel { T.grid { T.row {
# T.column { horizontal_alignment = "left", T.label { id = "the_label" } },
# T.column { T.image { id = "the_icon" } }
# } } }
# } } }
# } } },
# T.row { T.column { T.grid { T.row {
# T.column { T.button { id = "ok", label = _"OK" } },
# T.column { T.button { id = "cancel", label = _"Cancel" } }
# } } } },
# T.row { T.column {
# T.toggle_button { id = "flip", label = "Flip" }
# } }
# } },
# T.column { T.image { id = "the_image" } }
# } }
# }