Mercurial > mm7
diff NewUI/MainMenu.cpp @ 1823:24b70fa98474
Merge
author | Grumpy7 |
---|---|
date | Wed, 09 Oct 2013 08:09:48 +0200 |
parents | bd899dfd976c |
children | a5637690ffbb |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NewUI/MainMenu.cpp Wed Oct 09 08:09:48 2013 +0200 @@ -0,0 +1,44 @@ +#include "MainMenu.h" + + +bool MainMenuWindow::OnMouseLeftClick(int x, int y) +{ + if (UIControl::OnMouseLeftClick(x, y)) + return true; + return false; +} + +bool MainMenuWindow::OnMouseRightClick(int x, int y) +{ + if (UIControl::OnMouseRightClick(x, y)) + return true; + return false; +} + +bool MainMenuWindow::OnKey(int key) +{ + if (UIControl::OnKey(key)) + return true; + return false; +} + + +void MainMenuWindow::Show() {} +bool MainMenuWindow::Focused() {return false;} + +bool MainMenuWindow::Initialize() +{ + return true; +} + +MainMenuWindow *MainMenuWindow::Create() +{ + auto window = new MainMenuWindow; + if (window) + if (!window->Initialize()) + { + delete window; + window = nullptr; + } + return window; +} \ No newline at end of file