Skip to content

Commit

Permalink
Campaign Difficulty: rearranged entry layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 25, 2018
1 parent b24de54 commit 67530c4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -107,6 +107,7 @@
* Added a button to access the version info dialog to Preferences.
* Removed player list sorting options in the MP lobby. The list is now
automatically sorted alphabetically, friends first.
* Rearranged campaign difficulty menu layout
### WML engine
* Support formula= key in [variable] ConditionalWML
* Support to_location in [move_unit], taking a location ID
Expand Down
62 changes: 34 additions & 28 deletions data/gui/window/campaign_difficulty.cfg
Expand Up @@ -27,16 +27,6 @@
fixed_width = true
[/linked_group]

[linked_group]
id = "label"
fixed_width = true
[/linked_group]

[linked_group]
id = "description"
fixed_width = true
[/linked_group]

[tooltip]
id = "tooltip"
[/tooltip]
Expand Down Expand Up @@ -181,28 +171,44 @@
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5

[label]
id = "label"
definition = "default"
linked_group = "label"
[/label]
[grid]

[/column]
[row]

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

[label]
id = "description"
definition = "default"
linked_group = "description"
[/label]
[label]
id = "label"
definition = "default_large"
[/label]

[/column]

[/row]

[row]

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

[label]
id = "description"
definition = "default"
[/label]

[/column]

[/row]

[/grid]

[/column]

Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/campaign_difficulty.cpp
Expand Up @@ -107,7 +107,7 @@ void campaign_difficulty::pre_show(window& window)

if(!d["description"].empty()) {
item["label"] = (formatter() <<
font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")" << "</span>").str();
font::span_color(font::GRAY_COLOR) << d["description"].str() << "</span>").str();
data.emplace("description", item);
}

Expand Down

0 comments on commit 67530c4

Please sign in to comment.