Mercurial > mm7
diff NewUI/MainMenu.cpp @ 1815:bd899dfd976c
MainMenuWindow
author | Nomad |
---|---|
date | Tue, 08 Oct 2013 11:04:08 +0200 |
parents | |
children | a5637690ffbb |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NewUI/MainMenu.cpp Tue Oct 08 11:04:08 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