view NewUI/MainMenu.cpp @ 2236:3c802b5e026a

_4B254D_SkillMasteryTeacher getting rid of uninitialized var use
author Grumpy7
date Sun, 23 Feb 2014 12:55:01 +0100
parents c1c74df0a33e
children aff7a7b072b7
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()
{
  RGBTexture* background_texture = new RGBTexture;
  background_texture->Load("mm6title.pcx", 0);
  return true;
}

MainMenuWindow *MainMenuWindow::Create()
{
  MainMenuWindow* window = new MainMenuWindow;
  if (window)
    if (!window->Initialize())
    {
      delete window;
      window = nullptr;
    }
  return window;
}