From 332804031a11fd1c5d849639c1dcb0084f645040 Mon Sep 17 00:00:00 2001 From: Dev <90421310+EstatoDeviato@users.noreply.github.com> Date: Thu, 9 May 2024 11:30:44 +0200 Subject: [PATCH] Add hub_brush and hub status --- src/courtroom.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 7843d953e..1effb9bb8 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -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(); } @@ -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)); } @@ -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 {