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:
43
launcher/launchermode.cpp
Normal file
43
launcher/launchermode.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user