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

33 lines
821 B
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() {
ImGui::SetWindowSize({ 0.f, (float)*g_pointers->m_resolution_y }, ImGuiCond_Always);
components::sub_title("Merryweather");
ImGui::Separator();
components::button("Request Ammo Drop", [] {
mobile::merry_weather::request_ammo_drop();
});
components::button("Helicopter Pickup", [] {
mobile::merry_weather::request_helicopter_pickup();
});
ImGui::Separator();
components::button("Mors Mutual Fix All Vehicles", [] {
int amount_fixed = mobile::mors_mutual::fix_all();
g_notification_service->push("Mobile",
2022-10-24 14:08:37 +02:00
std::format("{} vehicle{} been fixed.", amount_fixed, amount_fixed == 1 ? " has" : "s have")
);
});
}
}