Mercurial > mm7
view NewUI/MainMenu.cpp @ 1905:4cae2d58cfb4
Слияние
author | Ritor1 |
---|---|
date | Mon, 21 Oct 2013 17:24:10 +0600 |
parents | b6252811663d |
children | c1c74df0a33e |
line wrap: on
line source
#include "MainMenu.h" #include "..\LOD.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() { auto background_texture = new RGBTexture; background_texture->Load("mm6title.pcx", 0); return true; } MainMenuWindow *MainMenuWindow::Create() { auto window = new MainMenuWindow; if (window) if (!window->Initialize()) { delete window; window = nullptr; } return window; }