1#ifndef GAME_EDITOR_PROOF_MODE_H
2#define GAME_EDITOR_PROOF_MODE_H
3
4#include "component.h"
5
6class CProofMode : public CEditorComponent
7{
8public:
9 void Init(CEditor *pEditor) override;
10 void OnReset() override;
11 void OnMapLoad() override;
12 void RenderScreenSizes();
13
14 bool IsEnabled() const;
15 bool IsModeMenu() const;
16 bool IsModeIngame() const;
17 void Toggle();
18 void SetModeMenu();
19 void SetModeIngame();
20
21 enum EProofBorder
22 {
23 PROOF_BORDER_OFF,
24 PROOF_BORDER_INGAME,
25 PROOF_BORDER_MENU
26 };
27 EProofBorder m_ProofBorders;
28
29 int m_CurrentMenuProofIndex;
30 std::vector<vec2> m_vMenuBackgroundPositions;
31 std::vector<const char *> m_vpMenuBackgroundPositionNames;
32 std::vector<std::vector<int>> m_vMenuBackgroundCollisions;
33
34 void SetMenuBackgroundPositionNames();
35 void ResetMenuBackgroundPositions();
36};
37
38#endif
39