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 51e3b6e132
commit aa984a5636
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

View File

@ -48,6 +48,7 @@ namespace big
ImGui::Checkbox("Receive Pickup", &g.protections.receive_pickup);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("This prevents any pickup from the ground such as unwanted money drops.\nAttention: Normal pickups are also no longer possible.");
ImGui::Checkbox("Admin Check", &g.protections.admin_check);
ImGui::EndGroup();
}