Setter and Getter for UIResource on component - Removed useless Environment creation

This commit is contained in:
antopilo
2024-10-15 20:35:42 -04:00
parent 534c35c76f
commit 8ed6a53cf4
3 changed files with 16 additions and 2 deletions

View File

@@ -1 +1,13 @@
#include "UIComponent.h"
#include "UIComponent.h"
using namespace Nuake;
void UIComponent::SetUIFile(ResourceFile file)
{
UIFilePath = file;
}
ResourceFile UIComponent::GetUIFile()
{
return UIFilePath;
}

View File

@@ -33,6 +33,9 @@ namespace Nuake
Vector3 Resolution = Vector3(1920, 1080, 0);
// TODO: Z-Ordering
void SetUIFile(ResourceFile file);
ResourceFile GetUIFile();
void SetResolution(const Vector3& newSize)
{
Resolution = newSize;

View File

@@ -688,7 +688,6 @@ namespace Nuake
m_Environement = CreateRef<Environment>();
if (j.contains("m_Environement"))
{
m_Environement = CreateRef<Environment>();
m_Environement->Deserialize(j["m_Environement"]);
}