view NewUI/MainMenu.cpp @ 2368:91b6c0a338ad

ODMFace::IsBackfaceCulled to ODMFace::IsBackfaceNotCulled, cleaned up a bit
author Grumpy7
date Mon, 12 May 2014 00:13:39 +0200
parents aff7a7b072b7
children f4af3b203f65
line wrap: on
line source

#define _CRT_SECURE_NO_WARNINGS
#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;
}