feat: Added toggle for admin join notification (#1199)

This commit is contained in:
Rxann
2023-04-06 13:55:28 -04:00
committed by GitHub
parent d92a172ecb
commit 38ba68e0e5
6 changed files with 45 additions and 34 deletions

View File

@ -36,7 +36,9 @@ namespace big
const ImRect icons_box(icons_pos, icons_pos + icons_size);
ImGui::PopFont();
if (plyr->is_modder)
if (plyr->is_admin)
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(1.f, 0.67f, 0.f, 1.f));
else if (plyr->is_modder)
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(1.f, 0.1f, 0.1f, 1.f));
if (selected_player)
@ -56,7 +58,7 @@ namespace big
if (selected_player)
ImGui::PopStyleColor();
if (plyr->is_modder)
if (plyr->is_admin || plyr->is_modder)
ImGui::PopStyleColor();
// render icons on top of the player button