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
This commit is contained in:
Mark de Wever 2010-09-28 19:37:59 +00:00
parent 29de5bf9ef
commit e3b4dee9d0

View file

@ -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]