Player UI tweaks (#1489)

* Redesigned Player UI

* Formatting
This commit is contained in:
DayibBaba
2023-06-22 10:11:56 +02:00
committed by GitHub
parent 9201cc363b
commit b96fddd8d0
11 changed files with 306 additions and 234 deletions

View File

@ -4,7 +4,9 @@ namespace big
{
void view::player_vehicle()
{
if (ImGui::TreeNode("Vehicle"))
ImGui::BeginGroup();
components::sub_title("Vehicle");
if (ImGui::ListBoxHeader("##veh", get_listbox_dimensions()))
{
components::player_command_button<"vehkick">(g_player_service->get_selected(), {});
ImGui::SameLine();
@ -38,7 +40,10 @@ namespace big
ImGui::SameLine();
components::player_command_button<"downgradeveh">(g_player_service->get_selected(), {});
ImGui::TreePop();
components::player_command_button<"rcplayer">(g_player_service->get_selected());
ImGui::ListBoxFooter();
}
ImGui::EndGroup();
}
}