Code cleanups.
This commit is contained in:
parent
41ef3949b0
commit
d0f6d7d2f7
2 changed files with 54 additions and 144 deletions
|
@ -213,6 +213,7 @@
|
||||||
|
|
||||||
{IMAGE_MESSAGE image_message}
|
{IMAGE_MESSAGE image_message}
|
||||||
{IMAGE_MESSAGE input_message}
|
{IMAGE_MESSAGE input_message}
|
||||||
|
{IMAGE_MESSAGE option_message}
|
||||||
|
|
||||||
|
|
||||||
#define _GUI_INPUT
|
#define _GUI_INPUT
|
||||||
|
@ -259,9 +260,18 @@
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define _GUI_OPTION_LIST
|
#define _GUI_OPTION_LIST
|
||||||
|
|
||||||
|
[row]
|
||||||
|
[column]
|
||||||
|
border = "all"
|
||||||
|
border_size = 5
|
||||||
|
horizontal_grow = "true"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[listbox]
|
[listbox]
|
||||||
id = "option_list"
|
id = "option_list"
|
||||||
definition = "option_message"
|
definition = "wml_message"
|
||||||
[list_definition]
|
[list_definition]
|
||||||
|
|
||||||
[row]
|
[row]
|
||||||
|
@ -271,7 +281,7 @@
|
||||||
horizontal_grow = "true"
|
horizontal_grow = "true"
|
||||||
|
|
||||||
[toggle_panel]
|
[toggle_panel]
|
||||||
definition = "option_message"
|
definition = "wml_message"
|
||||||
|
|
||||||
return_value_id = "ok"
|
return_value_id = "ok"
|
||||||
[grid]
|
[grid]
|
||||||
|
@ -336,6 +346,12 @@
|
||||||
[/list_definition]
|
[/list_definition]
|
||||||
|
|
||||||
[/listbox]
|
[/listbox]
|
||||||
|
#
|
||||||
|
# #{_GUI_RECRUIT_LIST}
|
||||||
|
|
||||||
|
[/column]
|
||||||
|
|
||||||
|
[/row]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define _GUI_UNIT_LIST
|
#define _GUI_UNIT_LIST
|
||||||
|
@ -590,7 +606,7 @@
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
|
|
||||||
#define IMAGE_MESSAGE_WINDOW ID
|
#define IMAGE_MESSAGE_WINDOW ID GUI_ELEMENT
|
||||||
[window]
|
[window]
|
||||||
id = "{ID}_left"
|
id = "{ID}_left"
|
||||||
description = "Dialog showing a unit portrait on the left side"
|
description = "Dialog showing a unit portrait on the left side"
|
||||||
|
@ -655,7 +671,7 @@
|
||||||
fixed_width = "true"
|
fixed_width = "true"
|
||||||
[/linked_group]
|
[/linked_group]
|
||||||
|
|
||||||
[linked_group]
|
[linked_group]
|
||||||
id = "usage"
|
id = "usage"
|
||||||
fixed_width = "true"
|
fixed_width = "true"
|
||||||
[/linked_group]
|
[/linked_group]
|
||||||
|
@ -754,7 +770,24 @@
|
||||||
|
|
||||||
[/column]
|
[/column]
|
||||||
|
|
||||||
[/row]
|
[/row]
|
||||||
|
{GUI_ELEMENT}
|
||||||
|
#[row]
|
||||||
|
|
||||||
|
# [column]
|
||||||
|
# border = "all"
|
||||||
|
## border_size = 5
|
||||||
|
# horizontal_grow = "true"
|
||||||
|
|
||||||
|
#
|
||||||
|
# #{_GUI_RECRUIT_LIST}
|
||||||
|
|
||||||
|
# [/column]
|
||||||
|
|
||||||
|
#[/row]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[row]
|
[row]
|
||||||
|
|
||||||
|
@ -981,6 +1014,9 @@ if(gamemap_width - ({__GUI_IMAGE_WIDTH}) > {MAX_TEXT_WIDTH}
|
||||||
[/row]
|
[/row]
|
||||||
|
|
||||||
|
|
||||||
|
{GUI_ELEMENT}
|
||||||
|
|
||||||
|
|
||||||
# [row]
|
# [row]
|
||||||
#
|
#
|
||||||
# [column]
|
# [column]
|
||||||
|
@ -1100,10 +1136,12 @@ if(gamemap_width - (10 + ({__GUI_IMAGE_WIDTH})) > {MAX_TEXT_WIDTH}
|
||||||
[/window]
|
[/window]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
{IMAGE_MESSAGE_WINDOW image_message}
|
{IMAGE_MESSAGE_WINDOW image_message ()}
|
||||||
{IMAGE_MESSAGE_WINDOW input_message}
|
{IMAGE_MESSAGE_WINDOW input_message ({_GUI_INPUT}) }
|
||||||
|
{IMAGE_MESSAGE_WINDOW option_message ({_GUI_OPTION_LIST}) }
|
||||||
|
|
||||||
#undef _GUI_INPUT_LIST
|
#undef _GUI_INPUT
|
||||||
|
#undef _GUI_OPTION_LIST
|
||||||
#undef _GUI_UNIT_LIST
|
#undef _GUI_UNIT_LIST
|
||||||
|
|
||||||
#undef __GUI_IMAGE_DISPLAYED_Y
|
#undef __GUI_IMAGE_DISPLAYED_Y
|
||||||
|
|
|
@ -1,105 +1,14 @@
|
||||||
#textdomain wesnoth-lib
|
#textdomain wesnoth-lib
|
||||||
{gui/default/macros/_initial.cfg}
|
|
||||||
###
|
###
|
||||||
### The recruit dialogs
|
### The recruit dialog.
|
||||||
###
|
###
|
||||||
|
|
||||||
#[window_definition]
|
|
||||||
# id = "recruit_message_left"
|
|
||||||
# description = "bar"
|
|
||||||
#
|
|
||||||
# [resolution]
|
|
||||||
|
|
||||||
# [background]
|
|
||||||
|
|
||||||
# [draw]
|
|
||||||
|
|
||||||
# [/draw]
|
|
||||||
|
|
||||||
# [/background]
|
|
||||||
|
|
||||||
# [foreground]
|
|
||||||
|
|
||||||
# [draw]
|
|
||||||
|
|
||||||
# [image]
|
|
||||||
# x = "{__GUI_IMAGE_DISPLAYED_X X}"
|
|
||||||
# y = "{__GUI_IMAGE_DISPLAYED_Y}"
|
|
||||||
# w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
|
||||||
# h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
|
||||||
# name = "(portrait_image)"
|
|
||||||
# vertical_mirror = "(portrait_mirror)"
|
|
||||||
# [/image]
|
|
||||||
|
|
||||||
# [/draw]
|
|
||||||
|
|
||||||
# [/foreground]
|
|
||||||
|
|
||||||
# [/resolution]
|
|
||||||
|
|
||||||
#[/window_definition]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[window_definition]
|
|
||||||
# id = "recruit_message_right"
|
|
||||||
# description = "bar"
|
|
||||||
|
|
||||||
# [resolution]
|
|
||||||
|
|
||||||
# [background]
|
|
||||||
|
|
||||||
# [draw]
|
|
||||||
|
|
||||||
# [/draw]
|
|
||||||
|
|
||||||
# [/background]
|
|
||||||
|
|
||||||
# [foreground]
|
|
||||||
|
|
||||||
# [draw]
|
|
||||||
|
|
||||||
# [image]
|
|
||||||
# x = "(width - {__GUI_IMAGE_DISPLAYED_WIDTH})"
|
|
||||||
# y = "(height - image_height)"
|
|
||||||
# w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
|
||||||
# h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
|
||||||
# name = "(portrait_image)"
|
|
||||||
# vertical_mirror = "(portrait_mirror)"
|
|
||||||
# [/image]
|
|
||||||
|
|
||||||
# [/draw]
|
|
||||||
|
|
||||||
# [/foreground]
|
|
||||||
|
|
||||||
# [/resolution]
|
|
||||||
|
|
||||||
#[/window_definition]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define _GUI_RECRUIT_WINDOW SIDE
|
#define _GUI_RECRUIT_WINDOW SIDE
|
||||||
[window]
|
[window]
|
||||||
id=recruit_message_{SIDE}
|
id=recruit_message_{SIDE}
|
||||||
description="A fucking description"
|
description="Recruit Dialog Window"
|
||||||
[resolution]
|
[resolution]
|
||||||
|
|
||||||
|
|
||||||
[linked_group]
|
[linked_group]
|
||||||
id = "cost"
|
id = "cost"
|
||||||
fixed_width = "true"
|
fixed_width = "true"
|
||||||
|
@ -110,20 +19,15 @@
|
||||||
definition= "default"
|
definition= "default"
|
||||||
|
|
||||||
automatic_placement= "false"
|
automatic_placement= "false"
|
||||||
vertical_placement= "center"
|
#vertical_placement= "center"
|
||||||
horizontal_placement= "right"
|
#horizontal_placement= "right"
|
||||||
maximum_width= 800
|
maximum_width= 800
|
||||||
maximum_height= 600
|
maximum_height= 600
|
||||||
border_size=50
|
|
||||||
border=all
|
|
||||||
width=800
|
width=800
|
||||||
height=600
|
height=600
|
||||||
x=743
|
x=743
|
||||||
y=200
|
y=200
|
||||||
|
|
||||||
|
|
||||||
# definition = "recruit_message_{SIDE}"
|
|
||||||
|
|
||||||
[grid]
|
[grid]
|
||||||
|
|
||||||
[row]
|
[row]
|
||||||
|
@ -146,31 +50,8 @@
|
||||||
[grid]
|
[grid]
|
||||||
[row]
|
[row]
|
||||||
[column]
|
[column]
|
||||||
horizontal_grow=yes
|
|
||||||
#horizontal_alignment=left
|
|
||||||
#vertical_alignment=bottom
|
|
||||||
#border_size=5
|
|
||||||
#border= "all"
|
|
||||||
#automatic_placement=true
|
|
||||||
#width=500
|
|
||||||
#height=500
|
|
||||||
min_width=500
|
|
||||||
min_height=500
|
|
||||||
#fixed_width=true
|
|
||||||
#fixed_height=true
|
|
||||||
[image]
|
[image]
|
||||||
horizontal_grow=yes
|
definition=scaled
|
||||||
# name = "(portrait_image)"
|
|
||||||
#w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
|
||||||
#h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
|
||||||
#w=500
|
|
||||||
#h=500
|
|
||||||
min_width=500
|
|
||||||
min_height=500
|
|
||||||
#width=500
|
|
||||||
#height=500
|
|
||||||
#fixed_width=true
|
|
||||||
#fixed_height=true
|
|
||||||
id=unit_portrait
|
id=unit_portrait
|
||||||
[/image]
|
[/image]
|
||||||
[/column]
|
[/column]
|
||||||
|
@ -178,8 +59,7 @@
|
||||||
[column]
|
[column]
|
||||||
horizontal_alignment=right
|
horizontal_alignment=right
|
||||||
vertical_alignment=top
|
vertical_alignment=top
|
||||||
|
|
||||||
#automatic_placement=true
|
|
||||||
[grid]
|
[grid]
|
||||||
[row]
|
[row]
|
||||||
[column]
|
[column]
|
||||||
|
@ -254,16 +134,8 @@
|
||||||
[/row]
|
[/row]
|
||||||
[/list_definition]
|
[/list_definition]
|
||||||
[/listbox]
|
[/listbox]
|
||||||
|
|
||||||
[/column]
|
[/column]
|
||||||
[/row]
|
[/row]
|
||||||
|
|
||||||
#[row]
|
|
||||||
|
|
||||||
#[/row]
|
|
||||||
#[row]
|
|
||||||
|
|
||||||
#[/row]
|
|
||||||
[/grid]
|
[/grid]
|
||||||
[/column]
|
[/column]
|
||||||
[/row]
|
[/row]
|
||||||
|
@ -308,8 +180,8 @@
|
||||||
[spacer]
|
[spacer]
|
||||||
width=280
|
width=280
|
||||||
height=0
|
height=0
|
||||||
|
|
||||||
|
|
||||||
[/spacer]
|
[/spacer]
|
||||||
[/column]
|
[/column]
|
||||||
[column]
|
[column]
|
||||||
|
|
Loading…
Add table
Reference in a new issue