From d7583f8bb1932b84820d3ed9950cf8f5cdbb712f Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Tue, 14 Jul 2015 20:32:38 -0300 Subject: [PATCH] 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.) --- data/gui/default/window/title_screen.cfg | 85 ++++++++++++++---------- 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/data/gui/default/window/title_screen.cfg b/data/gui/default/window/title_screen.cfg index 5d2085a38b98..935d9ae9ba91 100644 --- a/data/gui/default/window/title_screen.cfg +++ b/data/gui/default/window/title_screen.cfg @@ -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]