Mercurial > mm7
view NewUI/MainMenu.cpp @ 1851:80e897fc2438
Actor::AI_SpellAttack getting rid of labels, constant vars(used in playsound)
author | Grumpy7 |
---|---|
date | Sun, 13 Oct 2013 11:17:09 +0200 |
parents | a5637690ffbb |
children | b6252811663d |
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("newtitle.pcx", 0); return true; } MainMenuWindow *MainMenuWindow::Create() { auto window = new MainMenuWindow; if (window) if (!window->Initialize()) { delete window; window = nullptr; } return window; }