Campaign Difficulty: consolidated both lines into a single label
This commit is contained in:
parent
61694688a8
commit
f72f89f4d5
2 changed files with 12 additions and 42 deletions
|
@ -171,44 +171,13 @@
|
||||||
[column]
|
[column]
|
||||||
grow_factor = 1
|
grow_factor = 1
|
||||||
horizontal_grow = true
|
horizontal_grow = true
|
||||||
|
border = "all"
|
||||||
|
border_size = 5
|
||||||
|
|
||||||
[grid]
|
[label]
|
||||||
|
id = "label"
|
||||||
[row]
|
definition = "default_large"
|
||||||
|
[/label]
|
||||||
[column]
|
|
||||||
grow_factor = 1
|
|
||||||
horizontal_grow = true
|
|
||||||
border = "all"
|
|
||||||
border_size = 5
|
|
||||||
|
|
||||||
[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]
|
[/column]
|
||||||
|
|
||||||
|
|
|
@ -102,15 +102,16 @@ void campaign_difficulty::pre_show(window& window)
|
||||||
|
|
||||||
item["use_markup"] = "true";
|
item["use_markup"] = "true";
|
||||||
|
|
||||||
item["label"] = d["label"];
|
std::ostringstream ss;
|
||||||
data.emplace("label", item);
|
ss << d["label"];
|
||||||
|
|
||||||
if(!d["description"].empty()) {
|
if(!d["description"].empty()) {
|
||||||
item["label"] = (formatter() <<
|
ss << "\n<small>" << font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")</span></small>"";
|
||||||
font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")</span>").str();
|
|
||||||
data.emplace("description", item);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item["label"] = ss.str();
|
||||||
|
data.emplace("label", item);
|
||||||
|
|
||||||
grid& grid = list.add_row(data);
|
grid& grid = list.add_row(data);
|
||||||
|
|
||||||
if(d["default"].to_bool(false)) {
|
if(d["default"].to_bool(false)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue