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
2023-07-15 00:57:30 +02:00

67 lines
1.7 KiB
C++

#include "fiber_pool.hpp"
#include "services/mobile/mobile_service.hpp"
#include "util/mobile.hpp"
#include "views/view.hpp"
namespace big
{
void view::mobile()
{
ImGui::SetWindowSize({0.f, (float)*g_pointers->m_gta.m_resolution_y}, ImGuiCond_Always);
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, [] {
mobile::merry_weather::request_backup_helicopter();
});
components::button("MW_AIRSTRIKE"_T, [] {
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("Services");
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("Miscellaneous");
components::command_button<"taxi">();
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())));
});
}
}