Added skeleton creation

This commit is contained in:
Antoine Pilote
2023-09-05 20:28:33 -04:00
parent 33e04e9216
commit e125bf5fdb
6 changed files with 125 additions and 6 deletions
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include "ComponentPanel.h"
#include <src/Core/FileSystem.h>
#include <src/Core/Maths.h>
#include <src/Scene/Components/BoneComponent.h>
#include <src/Scene/Entities/ImGuiHelper.h>
class BonePanel : ComponentPanel
{
public:
BonePanel() {}
void Draw(Nuake::Entity entity) override
{
using namespace Nuake;
if (!entity.HasComponent<BoneComponent>())
return;
auto& component = entity.GetComponent<BoneComponent>();
BeginComponentTable(BONE, BoneComponent);
{
{
ImGui::Text("Name");
ImGui::TableNextColumn();
ImGui::InputText("##BoneName", &component.Name);
ImGui::TableNextColumn();
ComponentTableReset(component.Name, "");
}
}
EndComponentTable();
}
};