Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
+20
-1
@@ -25,6 +25,8 @@ namespace overlay {
|
||||
extern bool AUTO_SHOW_KEYPAD_P1;
|
||||
extern bool AUTO_SHOW_KEYPAD_P2;
|
||||
extern bool USE_WM_CHAR_FOR_IMGUI_CHAR_INPUT;
|
||||
extern bool FPS_SHOULD_FLIP;
|
||||
extern bool SHOW_DEBUG_LOG_WINDOW;
|
||||
|
||||
class SpiceOverlay {
|
||||
public:
|
||||
@@ -33,6 +35,19 @@ namespace overlay {
|
||||
D3DADAPTER_IDENTIFIER9 adapter_identifier {};
|
||||
bool hotkeys_enable = true;
|
||||
|
||||
// windows
|
||||
Window *window_fps = nullptr;
|
||||
Window *window_iopanel = nullptr;
|
||||
Window *window_config = nullptr;
|
||||
Window *window_keypad1 = nullptr;
|
||||
Window *window_keypad2 = nullptr;
|
||||
Window *window_cards = nullptr;
|
||||
Window *window_control = nullptr;
|
||||
Window *window_resize = nullptr;
|
||||
Window *window_camera = nullptr;
|
||||
Window *window_sub = nullptr;
|
||||
Window *window_log = nullptr;
|
||||
|
||||
explicit SpiceOverlay(HWND hWnd, IDirect3D9 *d3d, IDirect3DDevice9 *device);
|
||||
explicit SpiceOverlay(HWND hWnd);
|
||||
~SpiceOverlay();
|
||||
@@ -42,6 +57,7 @@ namespace overlay {
|
||||
void render();
|
||||
void update();
|
||||
void toggle_active(bool overlay_key = false);
|
||||
void show_main_menu();
|
||||
void set_active(bool active);
|
||||
bool get_active();
|
||||
bool has_focus();
|
||||
@@ -101,16 +117,19 @@ namespace overlay {
|
||||
size_t pixel_data_height = 0;
|
||||
|
||||
std::vector<std::unique_ptr<Window>> windows;
|
||||
Window *window_fps = nullptr;
|
||||
|
||||
Window *window_main_menu = nullptr;
|
||||
|
||||
std::function<bool(LONG *, LONG *)> subscreen_mouse_handler = nullptr;
|
||||
|
||||
bool active = false;
|
||||
bool toggle_down = false;
|
||||
bool main_menu_down = false;
|
||||
bool hotkey_toggle = false;
|
||||
bool hotkey_toggle_last = false;
|
||||
|
||||
void init();
|
||||
void add_font(const char* font, ImFontConfig* config, const ImWchar* glyphs);
|
||||
};
|
||||
|
||||
// global
|
||||
|
||||
Reference in New Issue
Block a user