gui2/ttitle_screen: Reorganize grid slightly

This frees up some space for the central stacked widget so the game
doesn't crash to desktop due to requiring a vertical resolution of 487
or more to fit it with the version label and button.

Also, the layout of the version label and button is now simpler as they
are now on their own grid outside the central stacked widget. This also
happens to ensure that the label doesn't end up behind the tip of the
day panel. Whether this is a good thing or not depends on personal
opinion.

(And incidentally, the button no longer has a margin around it. This is
intentional.)
This commit is contained in:
Ignacio R. Morelle 2015-07-14 20:32:38 -03:00
parent b548d6946b
commit d7583f8bb1

View file

@ -294,12 +294,6 @@
[grid]
[row]
{_GUI_V_SPACER 30}
[/row]
[row]
grow_factor = 1
@ -315,6 +309,14 @@
[layer]
[row]
grow_factor = 0
{_GUI_V_SPACER 30}
[/row]
[row]
grow_factor = 1
[column]
vertical_alignment = "top"
@ -344,8 +346,6 @@
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[spacer]
# Should be as large as the about button on the
@ -355,19 +355,7 @@
[/spacer]
[/column]
[column]
grow_factor = 1
# No border since we are trying to save up space here
# and the text gets vertically centered relative to
# the button cell anyway.
#border = "all"
#border_size = 5
horizontal_alignment = "left"
[label]
id = "revision_number"
definition = "title_screen_revision"
[/label]
[/column]
{GUI_FILLER}
[/row]
@ -382,7 +370,7 @@
[layer]
[row]
grow_factor = 4
grow_factor = 5
{GUI_FILLER}
@ -421,24 +409,14 @@
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
vertical_alignment = "bottom"
[button]
id = "about"
definition = "action_about"
tooltip = _ "Display the game version and build information"
[/button]
[/column]
{GUI_FILLER}
{GUI_FILLER}
{GUI_FILLER}
{_GUI_V_SPACER 22}
#{_GUI_V_SPACER 22}
{GUI_FILLER}
{GUI_FILLER}
@ -454,6 +432,43 @@
[/row]
[row]
[column]
horizontal_alignment = "left"
vertical_alignment = "bottom"
[grid]
[row]
[column]
grow_factor = 0
[button]
id = "about"
definition = "action_about"
tooltip = _ "Display the game version and build information"
[/button]
[/column]
[column]
grow_factor = 1
border = "left"
border_size = 5
[label]
id = "revision_number"
definition = "title_screen_revision"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]