Add more requests and reorganize network tab (#1709)

This commit is contained in:
TheGreenBandit
2023-07-14 18:57:30 -04:00
committed by GitHub
parent 8974300e78
commit 1b52f4ee7c
8 changed files with 193 additions and 50 deletions

View File

@ -9,6 +9,7 @@ namespace big
{
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, [] {
@ -29,7 +30,30 @@ namespace big
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, [] {
@ -39,13 +63,5 @@ namespace big
std::make_format_args(amount_fixed,
amount_fixed == 1 ? "VEHICLE_FIX_HAS"_T.data() : "VEHICLE_FIX_HAVE"_T.data())));
});
ImGui::SeparatorText("CEO_ABILITIES"_T.data());
components::button("CEO_BULLSHARK"_T, [] {
mobile::ceo_abilities::request_bullshark_testosterone();
});
components::command_button<"ballisticarmor">();
}
}

View File

@ -7,6 +7,8 @@
#include "util/scripts.hpp"
#include "views/view.hpp"
#include <script/globals/GPBD_FM_3.hpp>
namespace big
{
void view::self()
@ -29,6 +31,8 @@ namespace big
components::command_checkbox<"godmode">();
components::command_checkbox<"otr">();
if (g.self.off_radar && scr_globals::gpbd_fm_3.as<GPBD_FM_3*>()->Entries[self::id].BossGoon.Boss == self::id)
components::command_checkbox<"ghostorg">();
components::command_checkbox<"freecam">();
components::command_checkbox<"nophone">();
components::command_checkbox<"infoxy">();
@ -36,7 +40,6 @@ namespace big
components::command_checkbox<"invis">();
if (g.self.invisibility)
components::command_checkbox<"localvis">(); // TODO: does nothing in SP
components::command_checkbox<"nocollision">();
ImGui::EndGroup();
ImGui::SameLine();
@ -51,6 +54,7 @@ namespace big
components::command_checkbox<"beastjump">();
if (!g.self.beast_jump)
components::command_checkbox<"superjump">();
components::command_checkbox<"nocollision">();
ImGui::EndGroup();
ImGui::SameLine();