annotate NewUI/MainMenu.h @ 2003:72af4d93bdfb

DoGetHeightOnTerrain -1 signed fix
author zipi
date Tue, 05 Nov 2013 23:59:54 +0000
parents a5637690ffbb
children 5abd8fc8f1c6
rev   line source
1815
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
1 #pragma once
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
2 #include "Core/UIControl.h"
1835
Ritor1
parents: 1815
diff changeset
3 #include "..\Render.h"
1815
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
4
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
5
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
6 class MainMenuWindow: public UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
7 {
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
8 public:
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
9 static MainMenuWindow *Create();
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
10
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
11 bool Initialize();
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
12
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
13 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
14 virtual void Show() override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
15
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
16 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
17 virtual bool Focused() override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
18
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
19 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
20 virtual bool OnKey(int key) override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
21 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
22 virtual bool OnMouseLeftClick(int x, int y) override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
23 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
24 virtual bool OnMouseRightClick(int x, int y) override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
25 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
26 //virtual bool OnMouseEnter() override;
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
27 // UIControl
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
28 //virtual bool OnMouseLeave() override;
1835
Ritor1
parents: 1815
diff changeset
29
Ritor1
parents: 1815
diff changeset
30 private:
Ritor1
parents: 1815
diff changeset
31 RGBTexture *background_texture;
1815
bd899dfd976c MainMenuWindow
Nomad
parents:
diff changeset
32 };