From e3b4dee9d05aff4553e644e1084c417ee2bcf330 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Tue, 28 Sep 2010 19:37:59 +0000 Subject: [PATCH] Changed the horizontal growth in the title screen. Implementing some ideas suggested by Eleazar in the forum [1]. [1] http://www.wesnoth.org/forum/viewtopic.php?t=31765 --- data/gui/default/window/title_screen.cfg | 29 +++++++++++------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/data/gui/default/window/title_screen.cfg b/data/gui/default/window/title_screen.cfg index 96abfaa4411..702cf4a05d0 100644 --- a/data/gui/default/window/title_screen.cfg +++ b/data/gui/default/window/title_screen.cfg @@ -38,17 +38,14 @@ [/window_definition] -#define _GUI_H_SPACER +#define _GUI_H_SPACER WIDTH GROW_FACTOR [column] + grow_factor = "{GROW_FACTOR}" + [spacer] - # 17 emperical determined the border is 20 pixels at 768 and - # offsetted for the 5 pixels border between widgets this value - # seems right - # - # NOTE the engine doesn't recalculate the height upon scaling. definition = "default" - width = "((17 * screen_width) / 768)" + width = "{WIDTH}" [/spacer] [/column] @@ -294,32 +291,29 @@ [row] grow_factor = 1 - {_GUI_H_SPACER} + {_GUI_H_SPACER 17 1} [column] vertical_alignment = "bottom" horizontal_alignment = "left" - - # Send the growth to one of the columns that can grow. - # This to avoid the spacers to grow. - grow_factor = 1 - {_GUI_TIP_SECTION} [/column] + {_GUI_H_SPACER 0 3} + [column] horizontal_alignment = "right" vertical_alignment = "bottom" {_GUI_MENU_SECTION} [/column] - {_GUI_H_SPACER} + {_GUI_H_SPACER 17 1} [/row] [row] - {_GUI_H_SPACER} + {GUI_FILLER} [column] horizontal_alignment = "left" @@ -331,8 +325,11 @@ [/column] + {GUI_FILLER} + {_GUI_V_SPACER} - {_GUI_H_SPACER} + + {GUI_FILLER} [/row]