Move the panel definition to its own file.

This commit is contained in:
Mark de Wever 2009-01-23 22:54:51 +00:00
parent 06e8959120
commit 133eb440fb
2 changed files with 65 additions and 61 deletions

View file

@ -0,0 +1,65 @@
#textdomain wesnoth-lib
###
### The panel used in the wml messages using the new portraits.
###
#define _GUI_BASE_NAME
"translucent65" #enddef
[panel_definition]
id = "wml_message"
description = "The panel for the wml messages."
[resolution]
left_border = 0
right_border = 0
top_border = 10
bottom_border = 13
[background]
[draw]
[image]
x = 0
y = 0
w = "(width)"
stretch = "true"
name = "dialogs/" + {_GUI_BASE_NAME} + "-border-top.png"
[/image]
[image]
x = 0
y = "(height - 9)"
w = "(width)"
stretch = "true"
name = "dialogs/" + {_GUI_BASE_NAME} + "-border-bottom.png"
[/image]
[image]
x = 0
y = 5
w = "(width)"
h = "(height - 14)"
name = "dialogs/" + {_GUI_BASE_NAME} + "-background.png"
[/image]
[/draw]
[/background]
[foreground]
[draw]
[/draw]
[/foreground]
[/resolution]
[/panel_definition]
#undef _GUI_BASE_NAME

View file

@ -163,67 +163,6 @@
[/window_definition]
#define BASE_NAME
"translucent65" #enddef
[panel_definition]
id = "wml_message"
description = "The panel for the wml messages."
[resolution]
left_border = 0
right_border = 0
top_border = 10
bottom_border = 13
[background]
[draw]
[image]
x = 0
y = 0
w = "(width)"
stretch = "true"
name = "dialogs/" + {BASE_NAME} + "-border-top.png"
[/image]
[image]
x = 0
y = "(height - 9)"
w = "(width)"
stretch = "true"
name = "dialogs/" + {BASE_NAME} + "-border-bottom.png"
[/image]
[image]
x = 0
y = 5
w = "(width)"
h = "(height - 14)"
name = "dialogs/" + {BASE_NAME} + "-background.png"
[/image]
[/draw]
[/background]
[foreground]
[draw]
[/draw]
[/foreground]
[/resolution]
[/panel_definition]
#undef BASE_NAME
[window]
id = "wml_message_left"
description = "Dialog showing a unit portrait on the left side"