Added Buttons, Added Canvas Scaling matrix, Added Serialization of buttons and camera arm #250
|
@ -15,6 +15,7 @@
|
|||
#include "Math/Transform/SHTransformComponent.h"
|
||||
#include "Graphics/MiddleEnd/Interface/SHRenderable.h"
|
||||
#include "Physics/Interface/SHRigidBodyComponent.h"
|
||||
#include "UI/SHCanvasComponent.h"
|
||||
#include "ECS_Base/Managers/SHSystemManager.h"
|
||||
#include "Graphics/MiddleEnd/Lights/SHLightComponent.h"
|
||||
#include "Scripting/SHScriptEngine.h"
|
||||
|
@ -212,6 +213,8 @@ namespace SHADE
|
|||
AddComponentToComponentNode<SHRigidBodyComponent>(components, eid);
|
||||
AddConvComponentToComponentNode<SHColliderComponent>(components, eid);
|
||||
AddConvComponentToComponentNode<SHTextRendererComponent>(components, eid);
|
||||
AddComponentToComponentNode<SHCanvasComponent>(components, eid);
|
||||
|
||||
|
||||
node[ComponentsNode] = components;
|
||||
|
||||
|
@ -264,6 +267,7 @@ namespace SHADE
|
|||
AddComponentID<SHLightComponent>(componentIDList, componentsNode);
|
||||
AddComponentID<SHColliderComponent>(componentIDList, componentsNode);
|
||||
AddComponentID<SHTextRendererComponent>(componentIDList, componentsNode);
|
||||
AddComponentID<SHCanvasComponent>(componentIDList, componentsNode);
|
||||
|
||||
return componentIDList;
|
||||
}
|
||||
|
@ -341,6 +345,7 @@ namespace SHADE
|
|||
SHSerializationHelper::ConvertNodeToComponent<SHRenderable>(componentsNode, eid);
|
||||
SHSerializationHelper::ConvertNodeToComponent<SHColliderComponent>(componentsNode, eid);
|
||||
SHSerializationHelper::ConvertNodeToComponent<SHTextRendererComponent>(componentsNode, eid);
|
||||
SHSerializationHelper::InitializeComponentFromNode<SHCanvasComponent>(componentsNode, eid);
|
||||
SHSerializationHelper::InitializeComponentFromNode<SHLightComponent>(componentsNode, eid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue