view NewUI/MainMenu.cpp @ 1815:bd899dfd976c

MainMenuWindow
author Nomad
date Tue, 08 Oct 2013 11:04:08 +0200
parents
children a5637690ffbb
line wrap: on
line source

#include "MainMenu.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()
{
  return true;
}

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