wesnoth/data/gui/default/widget/window_default.cfg
Mark de Wever 8bcb690932 Added stretch_surface_horizontal and stretch_surface_vertical.
The functions stretch a surface based on the first row/column. This
looks better for the widget borders as scale_surface and should be
faster (not tested).  Added the option to the widget library to use
these functions and convert the window borders to use the new option.
2008-04-10 16:52:18 +00:00

120 lines
1.9 KiB
INI

###
### Default definition of a window.
###
[window_definition]
id = "default"
description = "The default window"
[resolution]
left_border = 10
right_border = 13
top_border = 10
bottom_border = 13
[background]
[draw]
# Keep the old way, might come in handy for testing later.
# [rectangle]
# x = 0
# y = 0
# w = "(width)"
# h = "(height)"
# border_thickness = 3
# border_colour = "55, 55, 55, 192"
# fill_colour = "128, 128, 128, 128"
# [/rectangle]
# [rectangle]
# x = 10
# y = 10
# w = "(width - 20)"
# h = "(height - 20)"
# border_thickness = 3
# border_colour = "55, 55, 55, 192"
# [/rectangle]
[image]
name = "dialogs/opaque-border-topleft.png"
[/image]
[image]
x = 5
y = 0
w = "(width - 14)"
stretch = "true"
name = "dialogs/opaque-border-top.png"
[/image]
[image]
x = "(width - 9)"
y = 0
name = "dialogs/opaque-border-topright.png"
[/image]
[image]
x = "(width - 9)"
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/opaque-border-right.png"
[/image]
[image]
x = "(width - 9)"
y = "(height - 9)"
name = "dialogs/opaque-border-botright.png"
[/image]
[image]
x = 5
y = "(height - 9)"
w = "(width - 14)"
stretch = "true"
name = "dialogs/opaque-border-bottom.png"
[/image]
[image]
x = 0
y = "(height - 9)"
name = "dialogs/opaque-border-botleft.png"
[/image]
[image]
x = 0
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/opaque-border-left.png"
[/image]
[image]
x = 5
y = 5
w = "(width - 14)"
h = "(height - 14)"
name = "dialogs/opaque-background.png"
[/image]
[/draw]
[/background]
[foreground]
[draw]
[/draw]
[/foreground]
[/resolution]
[/window_definition]