This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.

77 lines
1.6 KiB
C++
Raw Normal View History

2022-02-28 23:04:56 +01:00
#pragma once
#include "imgui.h"
#include "natives.hpp"
#include "util/animator.hpp"
#include "gui/components/components.hpp"
namespace big
{
class view
{
enum class tabs {
NONE,
SELF,
MOBILE,
SPAWN,
WEAPONS,
SPOOFING,
SETTINGS,
TELEPORT,
VEHICLE,
PLAYER,
DEBUG,
};
struct navigation_struct
{
tabs tab = tabs::NONE;
const char name[32] = "";
std::function<void()> func = nullptr;
};
static void self();
static void vehicle();
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();
2022-02-28 23:04:56 +01:00
static void active_view();
inline static animator window_animator = animator();
inline static navigation_struct initial_tab{};
inline static navigation_struct* current_tab = &initial_tab;
inline static navigation_struct nav[] = {
{ tabs::SELF, "Self", view::self },
{ tabs::MOBILE, "Mobile", view::mobile },
{ tabs::SPAWN, "Spawn", view::spawn },
{ tabs::TELEPORT, "Teleport", view::teleport },
{ tabs::VEHICLE, "Vehicle", view::vehicle },
{ tabs::WEAPONS, "Weapons", view::weapons },
{ tabs::SPOOFING, "Spoofing", view::spoofing },
{ tabs::SETTINGS, "Settings", view::settings },
{ tabs::DEBUG, "Debug", view::debug },
{ tabs::PLAYER, "Players", view::view_player },
};
public:
static void root()
{
active_view();
navigation();
}
static void always()
{
notifications();
}
2022-02-28 23:04:56 +01:00
};
}