Mercurial > mm7
comparison NewUI/MainMenu.cpp @ 1980:c1c74df0a33e
changing most of auto types to their actual types
author | Grumpy7 |
---|---|
date | Wed, 30 Oct 2013 00:47:37 -0700 |
parents | b6252811663d |
children | aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
1979:92dfa0cafbe3 | 1980:c1c74df0a33e |
---|---|
26 void MainMenuWindow::Show() {} | 26 void MainMenuWindow::Show() {} |
27 bool MainMenuWindow::Focused() {return false;} | 27 bool MainMenuWindow::Focused() {return false;} |
28 | 28 |
29 bool MainMenuWindow::Initialize() | 29 bool MainMenuWindow::Initialize() |
30 { | 30 { |
31 auto background_texture = new RGBTexture; | 31 RGBTexture* background_texture = new RGBTexture; |
32 background_texture->Load("mm6title.pcx", 0); | 32 background_texture->Load("mm6title.pcx", 0); |
33 return true; | 33 return true; |
34 } | 34 } |
35 | 35 |
36 MainMenuWindow *MainMenuWindow::Create() | 36 MainMenuWindow *MainMenuWindow::Create() |
37 { | 37 { |
38 auto window = new MainMenuWindow; | 38 MainMenuWindow* window = new MainMenuWindow; |
39 if (window) | 39 if (window) |
40 if (!window->Initialize()) | 40 if (!window->Initialize()) |
41 { | 41 { |
42 delete window; | 42 delete window; |
43 window = nullptr; | 43 window = nullptr; |