1815
|
1 #pragma once
|
|
2 #include "Core/UIControl.h"
|
1835
|
3 #include "..\Render.h"
|
1815
|
4
|
|
5
|
|
6 class MainMenuWindow: public UIControl
|
|
7 {
|
|
8 public:
|
|
9 static MainMenuWindow *Create();
|
|
10
|
|
11 bool Initialize();
|
|
12
|
|
13 // UIControl
|
|
14 virtual void Show() override;
|
|
15
|
|
16 // UIControl
|
|
17 virtual bool Focused() override;
|
|
18
|
|
19 // UIControl
|
|
20 virtual bool OnKey(int key) override;
|
|
21 // UIControl
|
|
22 virtual bool OnMouseLeftClick(int x, int y) override;
|
|
23 // UIControl
|
|
24 virtual bool OnMouseRightClick(int x, int y) override;
|
|
25 // UIControl
|
|
26 //virtual bool OnMouseEnter() override;
|
|
27 // UIControl
|
|
28 //virtual bool OnMouseLeave() override;
|
1835
|
29
|
|
30 private:
|
|
31 RGBTexture *background_texture;
|
1815
|
32 }; |