
The main goal was improving the readability of the original code however some ugliness remains. - Swapped from pointer singleton to instance singleton - Actually make use of the alpha logic that used to be present - Added a counter to notifications to indicate if something is being spammed - Notification timeouts reset if they're sent to the queue again
69 lines
1.8 KiB
C++
69 lines
1.8 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("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">();
|
|
|
|
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())));
|
|
});
|
|
}
|
|
}
|