mirror of
https://github.com/EricPlayZ/EGameTools.git
synced 2026-10-10 12:53:04 +08:00
2def30b18a
- Added EGameTools logo to the menu
30 lines
830 B
C++
30 lines
830 B
C++
#pragma once
|
|
#include "..\core.h"
|
|
|
|
namespace Menu {
|
|
class MenuTab {
|
|
public:
|
|
MenuTab(std::string_view name, int tabIndex) : tabName(name), tabIndex(tabIndex) { GetInstances()->insert({ tabIndex, this}); };
|
|
~MenuTab() { GetInstances()->erase({ tabIndex, this }); }
|
|
static std::set<std::pair<int, MenuTab*>>* GetInstances() { static std::set<std::pair<int, MenuTab*>> instances{}; return &instances; };
|
|
|
|
virtual void Render() {};
|
|
virtual void Update() {};
|
|
|
|
std::string_view tabName{};
|
|
private:
|
|
int tabIndex{};
|
|
};
|
|
|
|
extern KeyBindOption menuToggle;
|
|
extern float opacity;
|
|
extern float scale;
|
|
|
|
extern Option firstTimeRunning;
|
|
extern Option hasSeenChangelog;
|
|
|
|
extern void InitImGuiStyle();
|
|
|
|
extern void FirstTimeRunning();
|
|
extern void Render();
|
|
} |