comparison NewUI/MainMenu.cpp @ 1823:24b70fa98474

Merge
author Grumpy7
date Wed, 09 Oct 2013 08:09:48 +0200
parents bd899dfd976c
children a5637690ffbb
comparison
equal deleted inserted replaced
1822:5f9eeb7bf8e6 1823:24b70fa98474
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 }