2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Update splash screen

This commit is contained in:
Jack Andersen
2015-12-13 11:01:32 -10:00
parent 1c333d5dab
commit eac226848a
9 changed files with 228 additions and 23 deletions

View File

@@ -2,6 +2,7 @@
#define RUDE_VIEW_MANAGER_HPP
#include <HECL/CVarManager.hpp>
#include "ProjectManager.hpp"
#include "Space.hpp"
namespace RUDE
@@ -11,6 +12,7 @@ class SplashScreen;
class ViewManager : Specter::IViewManager
{
HECL::CVarManager& m_cvarManager;
ProjectManager m_projManager;
Specter::FontCache m_fontCache;
Specter::ViewResources m_viewResources;
std::unique_ptr<boo::IWindow> m_mainWindow;
@@ -32,12 +34,10 @@ public:
struct SetTo1 : Specter::IButtonBinding
{
ViewManager& m_vm;
std::string m_name = "SetTo1";
std::string m_help = "Sets scale factor to 1.0";
SetTo1(ViewManager& vm) : m_vm(vm) {}
const std::string& name() const {return m_name;}
const std::string& help() const {return m_help;}
const char* name() const {return "SetTo1";}
const char* help() const {return "Sets scale factor to 1.0";;}
void pressed(const boo::SWindowCoord& coord)
{
m_vm.RequestPixelFactor(1.0);
@@ -48,12 +48,10 @@ public:
struct SetTo2 : Specter::IButtonBinding
{
ViewManager& m_vm;
std::string m_name = "SetTo2";
std::string m_help = "Sets scale factor to 2.0";
SetTo2(ViewManager& vm) : m_vm(vm) {}
const std::string& name() const {return m_name;}
const std::string& help() const {return m_help;}
const char* name() const {return "SetTo2";}
const char* help() const {return "Sets scale factor to 2.0";}
void pressed(const boo::SWindowCoord& coord)
{
m_vm.RequestPixelFactor(2.0);
@@ -75,6 +73,8 @@ public:
m_updatePf = true;
}
ProjectManager& projectManager() {return m_projManager;}
void init(boo::IApplication* app);
bool proc();
void stop();