Skip to content

Commit

Permalink
Add hub_brush and hub status
Browse files Browse the repository at this point in the history
  • Loading branch information
EstatoDeviato authored May 9, 2024
1 parent c2a8a2e commit 3328040
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,8 @@ void Courtroom::set_widgets()
QBrush(ao_app->get_color("area_gaming_color", "courtroom_design.ini"));
locked_brush =
QBrush(ao_app->get_color("area_locked_color", "courtroom_design.ini"));
hub_brush =
QBrush(ao_app->get_color("area_hub_color", "courtroom_design.ini"));

refresh_evidence();
}
Expand Down Expand Up @@ -2013,10 +2015,14 @@ void Courtroom::list_areas()
if (ao_app->arup_supported) {
i_area.append("\n ");

i_area.append(arup_statuses.at(n_area));
if (arup_statuses.at(n_area) != "HUB") {
i_area.append(arup_statuses.at(n_area));
}

if (arup_cms.at(n_area) != "FREE") {
i_area.append(" | CM: ");
if (arup_statuses.at(n_area) != "HUB") {
i_area.append(" | CM: ");
}
i_area.append(arup_cms.at(n_area));
}

Expand Down Expand Up @@ -2055,6 +2061,8 @@ void Courtroom::list_areas()
treeItem->setBackground(1, rp_brush);
else if (arup_statuses.at(n_area) == "GAMING")
treeItem->setBackground(1, gaming_brush);
else if (arup_statuses.at(n_area) == "HUB")
treeItem->setBackground(1, hub_brush);
}
}
else {
Expand Down

0 comments on commit 3328040

Please sign in to comment.