Fix the right side wml dialog.

This commit is contained in:
Mark de Wever 2009-01-17 17:53:15 +00:00
parent c2f29a9076
commit 741f8efa01

View file

@ -147,8 +147,10 @@
[draw]
[image]
x = "(width - image_width)"
x = "(width - (if (image_original_width = 205, 205, (image_original_width * {__GUI_IMAGE_WIDTH}) / 500)))"
y = "(height - image_height)"
w = "(if (image_original_width = 205, 205, (image_original_width * {__GUI_IMAGE_WIDTH}) / 500))"
h = "(if (image_original_width = 205, 205, (image_original_height * {__GUI_IMAGE_WIDTH}) / 500))"
name = "(portrait_image)"
vertical_mirror = "(portrait_mirror)"
[/image]
@ -537,9 +539,142 @@
[window]
id = "wml_message_right"
description = "Test dialog to test Jetryl's new message style and Kitty's portraits."
{RESOLUTION_RIGHT 1000 700 250}
{RESOLUTION_RIGHT 0 0 500}
description = "Dialog showing a unit portrait on the right side"
[resolution]
window_width = 0
window_height = 0
definition = "wml_message_right"
automatic_placement = "false"
x = 0
y = 30
width = "(screen_width - 142)"
height = "(screen_height - 30)"
easy_close = "true"
[grid]
[row]
[column]
vertical_alignment = "bottom"
horizontal_grow = "true"
[panel]
definition = "message_test"
[grid]
[row]
[column]
horizontal_grow = "true"
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = "true"
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "title"
definition = "title"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 1
horizontal_grow = "true"
border = "all"
border_size = 5
[scroll_label] # NOTE maybe change the code to use message instead of label as id
id = "label"
definition = "default"
[/scroll_label]
[/column]
[/row]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
# This button will be shown or hidden depending on the
# whether or not a scrollbar is needed to show the
# text.
id = "ok"
definition = "default"
label = "close"
[/button]
[/column]
[/row]
[/grid]
[/column]
[column]
[spacer]
# reserve place for the image and set a minimum height for the text
id = "image_place_holder"
width = {_GUI_IMAGE_WIDTH}
height = 75
[/spacer]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/panel]
[/column]
[/row]
[/grid]
[/resolution]
[/window]