comparison NewUI/MainMenu.cpp @ 1815:bd899dfd976c

MainMenuWindow
author Nomad
date Tue, 08 Oct 2013 11:04:08 +0200
parents
children a5637690ffbb
comparison
equal deleted inserted replaced
1806:8e17ceba3a40 1815:bd899dfd976c
1 #include "MainMenu.h"
2
3
4 bool MainMenuWindow::OnMouseLeftClick(int x, int y)
5 {
6 if (UIControl::OnMouseLeftClick(x, y))
7 return true;
8 return false;
9 }
10
11 bool MainMenuWindow::OnMouseRightClick(int x, int y)
12 {
13 if (UIControl::OnMouseRightClick(x, y))
14 return true;
15 return false;
16 }
17
18 bool MainMenuWindow::OnKey(int key)
19 {
20 if (UIControl::OnKey(key))
21 return true;
22 return false;
23 }
24
25
26 void MainMenuWindow::Show() {}
27 bool MainMenuWindow::Focused() {return false;}
28
29 bool MainMenuWindow::Initialize()
30 {
31 return true;
32 }
33
34 MainMenuWindow *MainMenuWindow::Create()
35 {
36 auto window = new MainMenuWindow;
37 if (window)
38 if (!window->Initialize())
39 {
40 delete window;
41 window = nullptr;
42 }
43 return window;
44 }