Xml vehicles (Menyoo) (#1594)
This commit is contained in:
@ -59,13 +59,11 @@ namespace big
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
|
||||
|
||||
static char search[64];
|
||||
|
||||
ImGui::SetNextItemWidth(300.f);
|
||||
components::input_text_with_hint("MODEL_NAME"_T, "SEARCH"_T, search, sizeof(search), ImGuiInputTextFlags_None);
|
||||
|
||||
|
||||
if (ImGui::BeginListBox("###vehicles", {300, static_cast<float>(*g_pointers->m_gta.m_resolution_y - 188 - 38 * 4)}))
|
||||
{
|
||||
if (self::veh)
|
||||
@ -205,12 +203,15 @@ namespace big
|
||||
ImGui::RadioButton("Personal", &spawn_type, 1);
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton("Persistent", &spawn_type, 2);
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton("Xml", &spawn_type, 3);
|
||||
|
||||
switch (spawn_type)
|
||||
{
|
||||
case 0: render_spawn_new_vehicle(); break;
|
||||
case 1: view::pv(); break;
|
||||
case 2: view::persist_car(); break;
|
||||
case 3: view::xml_vehicles(); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user