Session Changer move from Self tab to Session tab (#76)
This commit is contained in:
parent
197be47914
commit
03576f4d74
@ -61,13 +61,13 @@ namespace big
|
|||||||
looped::weapons_delete_gun();
|
looped::weapons_delete_gun();
|
||||||
looped::weapons_force_crosshairs();
|
looped::weapons_force_crosshairs();
|
||||||
looped::weapons_gravity_gun();
|
looped::weapons_gravity_gun();
|
||||||
looped::weapons_infinite_ammo();
|
|
||||||
looped::weapons_increased_damage();
|
looped::weapons_increased_damage();
|
||||||
|
looped::weapons_infinite_ammo();
|
||||||
looped::weapons_infinite_mag();
|
looped::weapons_infinite_mag();
|
||||||
looped::weapons_no_spread();
|
|
||||||
looped::weapons_no_recoil();
|
looped::weapons_no_recoil();
|
||||||
looped::weapons_steal_vehicle_gun();
|
looped::weapons_no_spread();
|
||||||
looped::weapons_repair_gun();
|
looped::weapons_repair_gun();
|
||||||
|
looped::weapons_steal_vehicle_gun();
|
||||||
looped::weapons_vehicle_gun();
|
looped::weapons_vehicle_gun();
|
||||||
}QUEUE_JOB_END_CLAUSE
|
}QUEUE_JOB_END_CLAUSE
|
||||||
|
|
||||||
|
@ -9,17 +9,18 @@ namespace big
|
|||||||
class view
|
class view
|
||||||
{
|
{
|
||||||
enum class tabs {
|
enum class tabs {
|
||||||
NONE,
|
DEBUG,
|
||||||
SELF,
|
|
||||||
MOBILE,
|
MOBILE,
|
||||||
SPAWN,
|
NONE,
|
||||||
WEAPONS,
|
PLAYER,
|
||||||
SPOOFING,
|
SELF,
|
||||||
|
SESSION,
|
||||||
SETTINGS,
|
SETTINGS,
|
||||||
|
SPAWN,
|
||||||
|
SPOOFING,
|
||||||
TELEPORT,
|
TELEPORT,
|
||||||
VEHICLE,
|
VEHICLE,
|
||||||
PLAYER,
|
WEAPONS,
|
||||||
DEBUG,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct navigation_struct
|
struct navigation_struct
|
||||||
@ -29,19 +30,20 @@ namespace big
|
|||||||
std::function<void()> func = nullptr;
|
std::function<void()> func = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void self();
|
static void active_view();
|
||||||
static void vehicle();
|
|
||||||
static void debug();
|
static void debug();
|
||||||
static void view_player();
|
|
||||||
static void weapons();
|
|
||||||
static void mobile();
|
static void mobile();
|
||||||
static void teleport();
|
|
||||||
static void spawn();
|
|
||||||
static void settings();
|
|
||||||
static void spoofing();
|
|
||||||
static void navigation();
|
static void navigation();
|
||||||
static void notifications();
|
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();
|
inline static animator window_animator = animator();
|
||||||
|
|
||||||
@ -57,6 +59,7 @@ namespace big
|
|||||||
{ tabs::VEHICLE, "Vehicle", view::vehicle },
|
{ tabs::VEHICLE, "Vehicle", view::vehicle },
|
||||||
{ tabs::WEAPONS, "Weapons", view::weapons },
|
{ tabs::WEAPONS, "Weapons", view::weapons },
|
||||||
{ tabs::SPOOFING, "Spoofing", view::spoofing },
|
{ tabs::SPOOFING, "Spoofing", view::spoofing },
|
||||||
|
{ tabs::SESSION, "Session", view::session },
|
||||||
{ tabs::SETTINGS, "Settings", view::settings },
|
{ tabs::SETTINGS, "Settings", view::settings },
|
||||||
{ tabs::DEBUG, "Debug", view::debug },
|
{ tabs::DEBUG, "Debug", view::debug },
|
||||||
{ tabs::PLAYER, "Players", view::view_player },
|
{ tabs::PLAYER, "Players", view::view_player },
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#include "views/view.hpp"
|
|
||||||
#include "fiber_pool.hpp"
|
#include "fiber_pool.hpp"
|
||||||
#include "script.hpp"
|
|
||||||
#include "script_global.hpp"
|
|
||||||
#include "util/entity.hpp"
|
#include "util/entity.hpp"
|
||||||
#include "util/player.hpp"
|
#include "views/view.hpp"
|
||||||
#include "util/session.hpp"
|
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
@ -128,15 +124,6 @@ namespace big
|
|||||||
components::button("Skip Cutscene", [] {
|
components::button("Skip Cutscene", [] {
|
||||||
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
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();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user