Skip to content

Commit

Permalink
gui2/campaign_selection: Layout tweaks for the settings row
Browse files Browse the repository at this point in the history
This makes the row actually take up its full horizontal space and spaces
out the columns very slightly while still allowing them to be usable at
800x600.

It also replaces the overlong detailed descriptions for the options in
the Combat menu with tooltips holding the same contents.
  • Loading branch information
irydacea committed Dec 19, 2020
1 parent 10d578b commit 61e832e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions data/gui/window/campaign_dialog.cfg
Expand Up @@ -272,7 +272,7 @@
[row]
[column]
grow_factor = 0
horizontal_alignment = "right"
horizontal_alignment = "left"
border = "all"
border_size = 5

Expand All @@ -283,7 +283,7 @@
[/column]

[column]
grow_factor = 0
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
Expand All @@ -293,6 +293,8 @@
[/multimenu_button]
[/column]

{GUI_FILLER WIDTH=10}

[column]
grow_factor = 0
horizontal_alignment = "right"
Expand All @@ -306,7 +308,7 @@
[/column]

[column]
grow_factor = 0
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
Expand All @@ -317,19 +319,21 @@

[option]
label = _ "Default RNG"
details = "<span color='#777'>" + _ "Reloading alters future combat outcomes" + "</span>"
tooltip = _ "Reloading alters future combat outcomes"
[/option]
[option]
label = _ "Predictable RNG"
details = "<span color='#777'>" + _ "Combat outcomes remain constant when reloading" + "</span>"
tooltip = _ "Combat outcomes remain constant when reloading"
[/option]
[option]
label = _ "Biased RNG (experimental)"
details = "<span color='#777'>" + _ "Combat outcomes are more in line with displayed probabilities and unaffected by reloading" + "</span>"
tooltip = _ "Combat outcomes are more in line with displayed probabilities and unaffected by reloading"
[/option]
[/menu_button]
[/column]

{GUI_FILLER WIDTH=10}

[column]
grow_factor = 0
horizontal_alignment = "right"
Expand All @@ -343,7 +347,7 @@
[/column]

[column]
grow_factor = 0
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
Expand Down

0 comments on commit 61e832e

Please sign in to comment.