Improve the tiny-gui version.

This commit is contained in:
Mark de Wever 2010-01-03 10:38:29 +00:00
parent 93d68a73b6
commit c16e777eb0

View file

@ -6,16 +6,15 @@
#define _GUI_BASE_NAME
"translucent65" #enddef
[panel_definition]
id = "wml_message"
description = "The panel for the wml messages."
#define _GUI_RESOLUTION RESOLUTION BORDER_SIDE_1 BORDER_SIDE_2 OFFSET_SIDE_1 OFFSET_SIDE_2 OFFSET_TOTAL
[resolution]
{RESOLUTION}
left_border = 0
right_border = 0
top_border = 10
bottom_border = 13
top_border = {BORDER_SIDE_1}
bottom_border = {BORDER_SIDE_2}
[background]
@ -31,7 +30,7 @@
[image]
x = 0
y = "(height - 9)"
y = "(height - {OFFSET_SIDE_2})"
w = "(width)"
stretch = "true"
name = "dialogs/" + {_GUI_BASE_NAME} + "-border-bottom.png"
@ -39,9 +38,9 @@
[image]
x = 0
y = 5
y = {OFFSET_SIDE_1}
w = "(width)"
h = "(if(height < 14, 0, height - 14))"
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
name = "dialogs/" + {_GUI_BASE_NAME} + "-background.png"
[/image]
@ -58,8 +57,17 @@
[/foreground]
[/resolution]
#enddef
[panel_definition]
id = "wml_message"
description = "The panel for the wml messages."
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 5 6 2 4 6 }
{_GUI_RESOLUTION () 10 13 5 9 14 }
[/panel_definition]
#undef _GUI_RESOLUTION
#undef _GUI_BASE_NAME