Campaign Difficulty: rearranged entry layout

This commit is contained in:
Charles Dang 2018-05-25 11:45:24 +11:00
parent 6318d66abd
commit 2624bbf419
3 changed files with 36 additions and 29 deletions

View file

@ -27,6 +27,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
### Terrains
* Removed hidden terrains that were not supposed to make it to 1.14: ^Prg,
^Prgo, ^Pwd, ^Pwdo

View file

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

View file

@ -141,7 +141,7 @@ void campaign_difficulty::pre_show(window& window)
const std::string descrip_text = d["old_markup"].to_bool() || d["description"].empty()
? d["description"]
: (formatter() <<
font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")" << "</span>").str();
font::span_color(font::GRAY_COLOR) << d["description"].str() << "</span>").str();
item["label"] = descrip_text;
data.emplace("description", item);