Merge branch 'Movement' of github.com:teamfisk/TacticalZ into Movement
This commit is contained in:
@@ -68,7 +68,7 @@ protected:
|
||||
|
||||
const std::string m_ComponentType;
|
||||
|
||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& scoreScreen, double dt) = 0;
|
||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& cFade, double dt) = 0;
|
||||
};
|
||||
|
||||
class ImpureSystem : public virtual System
|
||||
|
||||
@@ -54,7 +54,7 @@ struct SpriteJob : RenderJob
|
||||
|
||||
if((bool)cSprite["KeepRatio"] == true) {
|
||||
if(scale.y >= scale.x) {
|
||||
ScaleY = (scale.x)/(scale.y);
|
||||
ScaleY = (scale.y)/(scale.x);
|
||||
ScaleX = 1.f;
|
||||
} else {
|
||||
ScaleY = 1.f;
|
||||
@@ -90,8 +90,8 @@ struct SpriteJob : RenderJob
|
||||
bool Pickable;
|
||||
bool IsIndicator = false;
|
||||
bool BlurBackground = false;
|
||||
float ScaleX = 1;
|
||||
float ScaleY = 1;
|
||||
float ScaleX = 1.f;
|
||||
float ScaleY = 1.f;
|
||||
bool Linear = false;
|
||||
|
||||
glm::vec4 FillColor = glm::vec4(0);
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef FadeSystem_h__
|
||||
#define FadeSystem_h__
|
||||
|
||||
#include "Core/System.h"
|
||||
#include "GLM.h"
|
||||
|
||||
class FadeSystem : public PureSystem
|
||||
{
|
||||
public:
|
||||
FadeSystem(SystemParams params)
|
||||
: System(params)
|
||||
, PureSystem("Fade")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& cFadeOut, double dt) override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user