Move the panel definition to its own file.
This commit is contained in:
parent
06e8959120
commit
133eb440fb
2 changed files with 65 additions and 61 deletions
65
data/gui/default/widget/panel_wml_message.cfg
Normal file
65
data/gui/default/widget/panel_wml_message.cfg
Normal 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
|
||||
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue