feat: Added toggle for admin join notification (#1199)
This commit is contained in:
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user