Session Changer move from Self tab to Session tab (#76)

This commit is contained in:
Maddy 2022-03-02 19:35:20 -05:00 committed by GitHub
parent 17dd3be7cb
commit 9b34d69559
4 changed files with 44 additions and 33 deletions

View File

@ -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

View File

@ -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 },

View File

@ -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);
});
}
}
}
}

View 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();
}
}
}