Skip to content

Commit

Permalink
gui2/ttitle_screen: Reorganize grid slightly
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
irydacea committed Jul 14, 2015
1 parent b548d69 commit d7583f8
Showing 1 changed file with 50 additions and 35 deletions.
85 changes: 50 additions & 35 deletions data/gui/default/window/title_screen.cfg
Expand Up @@ -294,12 +294,6 @@

[grid]

[row]

{_GUI_V_SPACER 30}

[/row]

[row]
grow_factor = 1

Expand All @@ -315,6 +309,14 @@
[layer]

[row]
grow_factor = 0

{_GUI_V_SPACER 30}

[/row]

[row]
grow_factor = 1

[column]
vertical_alignment = "top"
Expand Down Expand Up @@ -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
Expand All @@ -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]

Expand All @@ -382,7 +370,7 @@
[layer]

[row]
grow_factor = 4
grow_factor = 5

{GUI_FILLER}

Expand Down Expand Up @@ -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}

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

Expand Down

0 comments on commit d7583f8

Please sign in to comment.