mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
Editor+ (#745)
* feat(Toxic): add send to island * feat(mobile): add helicopter backup * refractor(mobile): update seperator * feat(Troll): add set bounty * tps tp all to island tp all to eclipse tp to eclipse * working hijack &, delete. + placeholders * speed, derail * drive train, working derail * improved drive train * exit train, rework delete * using CReplayInterface
This commit is contained in:
@ -287,8 +287,10 @@ namespace big
|
||||
|
||||
components::button("TP All To Skydive", [] { g_player_service->iterate([](auto& plyr) { toxic::start_activity(plyr.second, eActivityType::Skydive); }); });
|
||||
ImGui::SameLine();
|
||||
|
||||
components::command_button<"interiortpall">({ 81 }, "TP All To MOC");
|
||||
|
||||
ImGui::SameLine();
|
||||
components::command_button<"interiortpall">({ 123 }, "TP All To Casino");
|
||||
ImGui::SameLine();
|
||||
components::command_button<"interiortpall">({ 124 }, "TP All To Penthouse");
|
||||
|
@ -103,7 +103,8 @@ namespace big
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 160 }, "TP To Freakshop");
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), { 161 }, "TP To Multi Floor Garage");
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
components::player_command_button<"giveweaps">(g_player_service->get_selected(), { });
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"remweaps">(g_player_service->get_selected(), { });
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "views/view.hpp"
|
||||
#include "util/teleport.hpp"
|
||||
#include "util/vehicle.hpp"
|
||||
#include "util/troll.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
@ -12,10 +13,15 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"bring">(g_player_service->get_selected());
|
||||
|
||||
|
||||
components::player_command_button<"playervehtp">(g_player_service->get_selected());
|
||||
components::player_command_button<"rcplayer">(g_player_service->get_selected());
|
||||
|
||||
static int bounty_value = 0;
|
||||
|
||||
ImGui::SliderInt("Bounty", &bounty_value, 0, 10000);
|
||||
ImGui::SameLine();
|
||||
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value);});
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ namespace big
|
||||
{
|
||||
void view::mobile() {
|
||||
ImGui::SetWindowSize({ 0.f, (float)*g_pointers->m_resolution_y }, ImGuiCond_Always);
|
||||
|
||||
|
||||
components::sub_title("Merryweather");
|
||||
ImGui::Separator();
|
||||
|
||||
@ -45,4 +45,4 @@ namespace big
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -47,6 +47,7 @@ namespace big
|
||||
static void context_menu();
|
||||
static void gta_data();
|
||||
static void creator();
|
||||
static void train();
|
||||
|
||||
static void player_info();
|
||||
static void player_troll();
|
||||
|
46
src/views/world/view_train.cpp
Normal file
46
src/views/world/view_train.cpp
Normal file
@ -0,0 +1,46 @@
|
||||
#include "views/view.hpp"
|
||||
#include "util/train.hpp"
|
||||
|
||||
#include <imgui_internal.h>
|
||||
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::train()
|
||||
{
|
||||
components::button("Hijack Train", []
|
||||
{
|
||||
train::hijack_train();
|
||||
});
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
components::button("Delete Train", []
|
||||
{
|
||||
train::delete_train();
|
||||
});
|
||||
|
||||
if (ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("You cant delete the train while in it.");
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
components::button("Exit Train", []
|
||||
{
|
||||
train::exit_train();
|
||||
});
|
||||
|
||||
static float train_speed = 0;
|
||||
|
||||
ImGui::SliderFloat("Train Speed", &train_speed, -500.f, 500.f);
|
||||
ImGui::SameLine();
|
||||
components::button("Set", [] { train::set_train_speed(train_speed); });
|
||||
|
||||
ImGui::Checkbox("Drive Train", &g.train.drive_train);
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::Checkbox("Derail Train", &g.train.derail_train);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user