Files
Akebi-GC/cheat-base/src/cheat-base/cheat/misc/Settings.h
2022-08-06 23:44:36 +07:00

53 lines
1.1 KiB
C++

#pragma once
#include <cheat-base/cheat/Feature.h>
#include <cheat-base/config/config.h>
namespace cheat::feature
{
class Settings : public Feature
{
public:
config::Field<Hotkey> f_MenuKey;
config::Field<bool> f_HotkeysEnabled;
config::Field<bool> f_StatusMove;
config::Field<bool> f_StatusShow;
config::Field<bool> f_InfoMove;
config::Field<bool> f_InfoShow;
config::Field<bool> f_FpsShow;
config::Field<bool> f_FpsMove;
config::Field<bool> f_NotificationsShow;
config::Field<int> f_NotificationsDelay;
config::Field<bool> f_ConsoleLogging;
config::Field<bool> f_FileLogging;
config::Field<bool> f_FastExitEnable;
config::Field<Hotkey> f_HotkeyExit;
config::Field<int> f_FontSize;
config::Field<bool> f_ShowStyleEditor;
std::filesystem::path themesDir;
config::Field<std::string> f_DefaultTheme;
static Settings& GetInstance();
const FeatureGUIInfo& GetGUIInfo() const override;
void DrawMain() override;
void Init();
void Colors_Export(std::string name);
void Colors_Import(std::string name);
private:
void OnExitKeyPressed();
Settings();
};
}