fix(ViewPlayer): Certain Misc options were incorrectly placed

This commit is contained in:
Yimura 2022-03-08 20:06:37 +01:00
parent bf43f6f9ce
commit a566dd4c18

View File

@ -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();
}