Mercurial > mm7
view NewUI/MainMenu.cpp @ 1834:0b44f4d67c18
Merge
author | Ritor1 |
---|---|
date | Tue, 08 Oct 2013 15:27:57 +0600 |
parents | bd899dfd976c |
children | a5637690ffbb |
line wrap: on
line source
#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; }