Polyphase Game Engine
Loading...
Searching...
No Matches
EditorHotkeysWindow.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include "EditorAction.h"
6
7#include <string>
8#include <vector>
9
10class EditorHotkeysWindow
11{
12public:
13
14 void Open();
15 bool IsOpen() const;
16 bool IsCapturing() const;
17
18 void Draw();
19
20private:
21
22 void DrawPresetBar();
23 void DrawSearchBar();
24 void DrawCategorySection(const char* category);
25 void DrawActionRow(EditorAction action);
26 void DrawCaptureOverlay();
27
28 void RefreshPresetList();
29 void StartCapture(EditorAction action);
30 bool PollKeyPress(int32_t& outKeyCode) const;
31
32 bool mIsOpen = false;
33 std::vector<std::string> mPresetNames;
34 int mSelectedPreset = -1;
35 char mNewPresetName[64] = { 0 };
36 char mImportExportPath[260] = { 0 };
37 char mSearchBuffer[64] = { 0 };
38
39 bool mCapturing = false;
40 EditorAction mCaptureAction = EditorAction::Count;
41 float mCaptureTimer = 0.0f;
42};
43
44EditorHotkeysWindow* GetEditorHotkeysWindow();
45
46#endif