Files
EGameTools/DL2GameOverhaulScript/source/menu/menu.h

31 lines
867 B
C
Raw Normal View History

2023-07-30 06:14:30 +03:00
#pragma once
#include "..\core.h"
2023-07-30 06:14:30 +03:00
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 const std::string title;
extern ImGuiStyle defStyle;
extern ImTextureID EGTLogoTexture;
extern KeyBindOption menuToggle;
extern float opacity;
2024-02-03 20:40:17 +02:00
extern float scale;
2023-07-30 06:14:30 +03:00
extern Option firstTimeRunning;
2024-02-12 03:51:26 +02:00
extern Option hasSeenChangelog;
2023-07-30 06:14:30 +03:00
extern void Render();
}