This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/views/self/view_mobile.cpp

68 lines
1.8 KiB
C++
Raw Normal View History

#include "fiber_pool.hpp"
#include "services/mobile/mobile_service.hpp"
#include "util/mobile.hpp"
#include "views/view.hpp"
namespace big
{
void view::mobile()
{
2023-04-14 18:54:07 +02:00
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_gta.m_resolution_y}, ImGuiCond_Always);
2023-06-27 14:05:44 +02:00
ImGui::SeparatorText("MERRYWEATHER"_T.data());
components::button("MW_AMMO_DROP"_T, [] {
mobile::merry_weather::request_ammo_drop();
});
components::button("MW_HELI_PICKUP"_T, [] {
mobile::merry_weather::request_helicopter_pickup();
});
components::command_button<"boatpickup">();
components::button("MW_BACKUP_HELI"_T, [] {
2022-12-30 02:09:33 +01:00
mobile::merry_weather::request_backup_helicopter();
});
components::button("MW_AIRSTRIKE"_T, [] {
2022-12-30 02:09:33 +01:00
mobile::merry_weather::request_airstrike();
});
ImGui::SeparatorText("CEO_ABILITIES"_T.data());
components::button("CEO_BULLSHARK"_T, [] {
mobile::ceo_abilities::request_bullshark_testosterone();
});
components::command_button<"ballisticarmor">();
ImGui::SeparatorText("VIEW_SELF_MOBILE_SERVICES"_T.data());
components::command_button<"avenger">();
components::command_button<"kosatka">();
components::command_button<"moc">();
components::command_button<"terrorbyte">();
components::command_button<"acidlab">();
components::command_button<"acidbike">();
ImGui::SeparatorText("DEBUG_TAB_MISC"_T.data());
components::command_button<"taxi">();
components::command_button<"gunvan">();
2023-06-27 14:05:44 +02:00
ImGui::SeparatorText("MORS_MUTUAL"_T.data());
components::button("MORS_FIX_ALL"_T, [] {
int amount_fixed = mobile::mors_mutual::fix_all();
g_notification_service->push_success("MOBILE"_T.data(),
std::vformat("VEHICLE_FIX_AMOUNT"_T,
std::make_format_args(amount_fixed,
amount_fixed == 1 ? "VEHICLE_FIX_HAS"_T.data() : "VEHICLE_FIX_HAVE"_T.data())));
});
}
}