16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

add missing files

This commit is contained in:
milek7
2019-07-31 17:22:13 +02:00
parent f10e15f408
commit ee65ca77e3
12 changed files with 928 additions and 0 deletions

43
launcher/launchermode.cpp Normal file
View File

@@ -0,0 +1,43 @@
#include "stdafx.h"
#include "launcher/launchermode.h"
#include "launcher/launcheruilayer.h"
#include "application.h"
#include "simulation.h"
#include "Globals.h"
launcher_mode::launcher_mode()
{
m_userinterface = std::make_shared<launcher_ui>();
}
bool launcher_mode::init()
{
return true;
}
bool launcher_mode::update()
{
return true;
}
void launcher_mode::enter()
{
Application.set_cursor( GLFW_CURSOR_NORMAL );
simulation::is_ready = false;
m_userinterface->set_background( "logo" );
Application.set_title(Global.AppName);
}
void launcher_mode::exit()
{
}
void launcher_mode::on_key(const int Key, const int Scancode, const int Action, const int Mods)
{
Global.shiftState = ( Mods & GLFW_MOD_SHIFT ) ? true : false;
Global.ctrlState = ( Mods & GLFW_MOD_CONTROL ) ? true : false;
m_userinterface->on_key(Key, Action);
}