Change the window definition into a macro and add the common used types.

This commit is contained in:
Mark de Wever 2008-06-24 16:29:56 +00:00
parent 9505e748a5
commit 1b4dd7fd2e

View file

@ -1,11 +1,13 @@
###
### Default definition of a window.
### Defines all window styles used in the game.
###
#define __WINDOW ID DESCRIPTION BASE_NAME
[window_definition]
id = "default"
description = "The default window"
id = {ID}
description = {DESCRIPTION}
[resolution]
@ -41,7 +43,7 @@
# [/rectangle]
[image]
name = "dialogs/opaque-border-topleft.png"
name = "dialogs/" + {BASE_NAME} + "-border-topleft.png"
[/image]
[image]
@ -49,13 +51,13 @@
y = 0
w = "(width - 14)"
stretch = "true"
name = "dialogs/opaque-border-top.png"
name = "dialogs/" + {BASE_NAME} + "-border-top.png"
[/image]
[image]
x = "(width - 9)"
y = 0
name = "dialogs/opaque-border-topright.png"
name = "dialogs/" + {BASE_NAME} + "-border-topright.png"
[/image]
[image]
@ -63,13 +65,13 @@
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/opaque-border-right.png"
name = "dialogs/" + {BASE_NAME} + "-border-right.png"
[/image]
[image]
x = "(width - 9)"
y = "(height - 9)"
name = "dialogs/opaque-border-botright.png"
name = "dialogs/" + {BASE_NAME} + "-border-botright.png"
[/image]
[image]
@ -77,13 +79,13 @@
y = "(height - 9)"
w = "(width - 14)"
stretch = "true"
name = "dialogs/opaque-border-bottom.png"
name = "dialogs/" + {BASE_NAME} + "-border-bottom.png"
[/image]
[image]
x = 0
y = "(height - 9)"
name = "dialogs/opaque-border-botleft.png"
name = "dialogs/" + {BASE_NAME} + "-border-botleft.png"
[/image]
[image]
@ -91,7 +93,7 @@
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/opaque-border-left.png"
name = "dialogs/" + {BASE_NAME} + "-border-left.png"
[/image]
[image]
@ -99,7 +101,7 @@
y = 5
w = "(width - 14)"
h = "(height - 14)"
name = "dialogs/opaque-background.png"
name = "dialogs/" + {BASE_NAME} + "-background.png"
[/image]
[/draw]
@ -116,4 +118,13 @@
[/resolution]
[/window_definition]
#enddef
{__WINDOW "default" "The default window" "opaque"}
{__WINDOW "message" "The style used as transparent to the user." "translucent65"}
{__WINDOW "titlescreen" "The items in the titelscreen" "translucent54"}
# No idea what this style does, just leave it disabled for now.
#{__WINDOW "menu2" "menu2" "menu2"}
#unddef __WINDOW