mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-09 02:43:38 +08:00
fix(ViewPlayer): Certain Misc options were incorrectly placed
This commit is contained in:
parent
bf43f6f9ce
commit
a566dd4c18
@ -14,19 +14,6 @@ namespace big
|
||||
|
||||
ImGui::Text(title.c_str());
|
||||
ImGui::Checkbox("Spectate", &g->player.spectating);
|
||||
|
||||
if (ImGui::TreeNode("Misc")) {
|
||||
|
||||
components::button("Clear Wanted Level", [] {
|
||||
toxic::clear_wanted_player(g_player_service->get_selected()->id());
|
||||
});
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::Checkbox("Never Wanted", &g->player.player_never_wanted);
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
if (g_player_service->get_selected()->is_valid())
|
||||
{
|
||||
@ -46,6 +33,14 @@ namespace big
|
||||
);
|
||||
});
|
||||
|
||||
components::button("Clear Wanted Level", [] {
|
||||
toxic::clear_wanted_player(g_player_service->get_selected()->id());
|
||||
});
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::Checkbox("Never Wanted", &g->player.player_never_wanted);
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user