feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
This commit is contained in:
@ -16,7 +16,7 @@ namespace big
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Info");
|
||||
|
||||
if (ImGui::ListBoxHeader("##infobox", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##infobox", get_listbox_dimensions()))
|
||||
{
|
||||
uint32_t ped_damage_bits = 0;
|
||||
uint32_t ped_task_flag = 0;
|
||||
@ -203,7 +203,7 @@ namespace big
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace big
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Kick");
|
||||
if (ImGui::ListBoxHeader("##kick", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##kick", get_listbox_dimensions()))
|
||||
{
|
||||
auto const is_session_host = [] {
|
||||
return gta_util::get_network()->m_game_session_ptr->is_host();
|
||||
@ -39,7 +39,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"desync">(g_player_service->get_selected());
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
|
||||
ImGui::EndGroup();
|
||||
|
@ -10,7 +10,7 @@ namespace big
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Misc");
|
||||
if (ImGui::ListBoxHeader("##misc", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##misc", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"joinceo">(g_player_service->get_selected());
|
||||
ImGui::SameLine();
|
||||
@ -31,7 +31,7 @@ namespace big
|
||||
ImGui::Checkbox("NEVER_WANTED"_T.data(), &g_player_service->get_selected()->never_wanted);
|
||||
ImGui::Checkbox("SEMI_GODMODE"_T.data(), &g_player_service->get_selected()->semi_godmode);
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
|
||||
ImGui::EndGroup();
|
||||
|
@ -13,7 +13,7 @@ namespace big
|
||||
|
||||
components::sub_title("Teleport");
|
||||
|
||||
if (ImGui::ListBoxHeader("##teleport", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##teleport", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"playertp">(g_player_service->get_selected());
|
||||
ImGui::SameLine();
|
||||
@ -133,7 +133,7 @@ namespace big
|
||||
std::copy(std::begin(current_location), std::end(current_location), std::begin(new_location));
|
||||
}
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ namespace big
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Toxic");
|
||||
if (ImGui::ListBoxHeader("##toxic", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##toxic", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"kill">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
@ -121,7 +121,7 @@ namespace big
|
||||
troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value, g.session.anonymous_bounty);
|
||||
});
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ namespace big
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Vehicle");
|
||||
if (ImGui::ListBoxHeader("##veh", get_listbox_dimensions()))
|
||||
if (ImGui::BeginListBox("##veh", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"vehkick">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
@ -42,7 +42,7 @@ namespace big
|
||||
|
||||
components::player_command_button<"rcplayer">(g_player_service->get_selected());
|
||||
|
||||
ImGui::ListBoxFooter();
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
Reference in New Issue
Block a user