mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-22 16:52:30 +08:00
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
|
||||
|
Reference in New Issue
Block a user