mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-09 02:43:38 +08:00
Session Changer move from Self tab to Session tab (#76)
This commit is contained in:
parent
17dd3be7cb
commit
9b34d69559
@ -61,13 +61,13 @@ namespace big
|
||||
looped::weapons_delete_gun();
|
||||
looped::weapons_force_crosshairs();
|
||||
looped::weapons_gravity_gun();
|
||||
looped::weapons_infinite_ammo();
|
||||
looped::weapons_increased_damage();
|
||||
looped::weapons_infinite_ammo();
|
||||
looped::weapons_infinite_mag();
|
||||
looped::weapons_no_spread();
|
||||
looped::weapons_no_recoil();
|
||||
looped::weapons_steal_vehicle_gun();
|
||||
looped::weapons_no_spread();
|
||||
looped::weapons_repair_gun();
|
||||
looped::weapons_steal_vehicle_gun();
|
||||
looped::weapons_vehicle_gun();
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
|
||||
|
@ -9,17 +9,18 @@ namespace big
|
||||
class view
|
||||
{
|
||||
enum class tabs {
|
||||
NONE,
|
||||
SELF,
|
||||
DEBUG,
|
||||
MOBILE,
|
||||
SPAWN,
|
||||
WEAPONS,
|
||||
SPOOFING,
|
||||
NONE,
|
||||
PLAYER,
|
||||
SELF,
|
||||
SESSION,
|
||||
SETTINGS,
|
||||
SPAWN,
|
||||
SPOOFING,
|
||||
TELEPORT,
|
||||
VEHICLE,
|
||||
PLAYER,
|
||||
DEBUG,
|
||||
WEAPONS,
|
||||
};
|
||||
|
||||
struct navigation_struct
|
||||
@ -29,19 +30,20 @@ namespace big
|
||||
std::function<void()> func = nullptr;
|
||||
};
|
||||
|
||||
static void self();
|
||||
static void vehicle();
|
||||
static void active_view();
|
||||
static void debug();
|
||||
static void view_player();
|
||||
static void weapons();
|
||||
static void mobile();
|
||||
static void teleport();
|
||||
static void spawn();
|
||||
static void settings();
|
||||
static void spoofing();
|
||||
static void navigation();
|
||||
static void notifications();
|
||||
static void active_view();
|
||||
static void self();
|
||||
static void session();
|
||||
static void settings();
|
||||
static void spawn();
|
||||
static void spoofing();
|
||||
static void teleport();
|
||||
static void vehicle();
|
||||
static void view_player();
|
||||
static void weapons();
|
||||
|
||||
inline static animator window_animator = animator();
|
||||
|
||||
@ -57,6 +59,7 @@ namespace big
|
||||
{ tabs::VEHICLE, "Vehicle", view::vehicle },
|
||||
{ tabs::WEAPONS, "Weapons", view::weapons },
|
||||
{ tabs::SPOOFING, "Spoofing", view::spoofing },
|
||||
{ tabs::SESSION, "Session", view::session },
|
||||
{ tabs::SETTINGS, "Settings", view::settings },
|
||||
{ tabs::DEBUG, "Debug", view::debug },
|
||||
{ tabs::PLAYER, "Players", view::view_player },
|
||||
|
@ -1,10 +1,6 @@
|
||||
#include "views/view.hpp"
|
||||
#include "fiber_pool.hpp"
|
||||
#include "script.hpp"
|
||||
#include "script_global.hpp"
|
||||
#include "util/entity.hpp"
|
||||
#include "util/player.hpp"
|
||||
#include "util/session.hpp"
|
||||
#include "views/view.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
@ -128,15 +124,6 @@ namespace big
|
||||
components::button("Skip Cutscene", [] {
|
||||
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
||||
});
|
||||
|
||||
ImGui::Text("Session");
|
||||
for (const SessionType& session_type : sessions)
|
||||
{
|
||||
components::button(session_type.name, [session_type] {
|
||||
session::join_type(session_type);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
21
BigBaseV2/src/views/view_session.cpp
Normal file
21
BigBaseV2/src/views/view_session.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include "util/session.hpp"
|
||||
#include "views/view.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::session() {
|
||||
|
||||
if (ImGui::TreeNode("Session Switcher"))
|
||||
{
|
||||
for (const SessionType& session_type : sessions)
|
||||
{
|
||||
components::button(session_type.name, [session_type] {
|
||||
session::join_type(session_type);
|
||||
});
|
||||
}
|
||||
|
||||
ImGui::TreePop();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user