2021-12-25 22:36:38 +01:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-25 17:13:16 +01:00
|
|
|
constexpr char IMGUI_BIND_FILE[] = "keymap.vdf";
|
2022-11-24 10:45:42 +01:00
|
|
|
|
2022-08-22 01:10:18 +02:00
|
|
|
enum class ImGuiStyle_t
|
|
|
|
{
|
|
|
|
NONE = -1,
|
|
|
|
DEFAULT,
|
|
|
|
LEGACY,
|
|
|
|
MODERN
|
|
|
|
};
|
|
|
|
|
2021-12-25 22:36:38 +01:00
|
|
|
class ImGuiConfig
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct
|
|
|
|
{
|
2022-01-22 15:51:09 +01:00
|
|
|
int m_nBind0 = VK_OEM_3;
|
|
|
|
int m_nBind1 = VK_INSERT;
|
2022-10-20 12:29:21 +02:00
|
|
|
} m_ConsoleConfig;
|
2021-12-25 22:36:38 +01:00
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
2023-03-25 17:13:16 +01:00
|
|
|
int m_nBind0 = VK_F10;
|
|
|
|
int m_nBind1 = VK_HOME;
|
2022-10-20 12:29:21 +02:00
|
|
|
} m_BrowserConfig;
|
2021-12-25 22:36:38 +01:00
|
|
|
|
|
|
|
void Load();
|
|
|
|
void Save();
|
2022-08-22 01:10:18 +02:00
|
|
|
ImGuiStyle_t InitStyle() const;
|
2021-12-25 22:36:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
extern ImGuiConfig* g_pImGuiConfig;
|