2019-03-21 20:18:31 +01:00
|
|
|
#pragma once
|
|
|
|
#include "common.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
class gui
|
|
|
|
{
|
|
|
|
public:
|
2022-12-16 18:55:55 +01:00
|
|
|
gui();
|
|
|
|
virtual ~gui();
|
|
|
|
gui(const gui&) = delete;
|
|
|
|
gui(gui&&) noexcept = delete;
|
|
|
|
gui& operator=(const gui&) = delete;
|
|
|
|
gui& operator=(gui&&) noexcept = delete;
|
|
|
|
|
|
|
|
bool is_open();
|
|
|
|
void toggle(bool toggle);
|
|
|
|
|
2019-03-21 20:18:31 +01:00
|
|
|
void dx_init();
|
|
|
|
void dx_on_tick();
|
|
|
|
|
|
|
|
void script_on_tick();
|
|
|
|
static void script_func();
|
2022-12-16 18:55:55 +01:00
|
|
|
|
|
|
|
void wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void toggle_mouse();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_is_open;
|
|
|
|
|
2019-03-21 20:18:31 +01:00
|
|
|
};
|
|
|
|
|
2022-12-16 18:55:55 +01:00
|
|
|
inline gui* g_gui;
|
2019-03-21 20:18:31 +01:00
|
|
|
}
|