mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
37 lines
825 B
C++
37 lines
825 B
C++
#pragma once
|
|
#include "ComponentPanel.h"
|
|
|
|
#include "Nuake/FileSystem/FileSystem.h"
|
|
#include <Nuake/Core/Maths.h>
|
|
#include <Nuake/Scene/Components/BoneComponent.h>
|
|
#include <Nuake/Scene/Entities/ImGuiHelper.h>
|
|
|
|
class BonePanel
|
|
{
|
|
public:
|
|
static void Draw(Nuake::Entity& entity, entt::meta_any& componentInstance)
|
|
{
|
|
using namespace Nuake;
|
|
|
|
Nuake::BoneComponent* componentPtr = componentInstance.try_cast<Nuake::BoneComponent>();
|
|
if (componentPtr == nullptr)
|
|
{
|
|
return;
|
|
}
|
|
Nuake::BoneComponent& component = *componentPtr;
|
|
|
|
BeginComponentTable(BONE, BoneComponent);
|
|
{
|
|
{
|
|
ImGui::Text("Name");
|
|
ImGui::TableNextColumn();
|
|
|
|
ImGui::InputText("##BoneName", &component.Name);
|
|
ImGui::TableNextColumn();
|
|
|
|
ComponentTableReset(component.Name, "");
|
|
}
|
|
}
|
|
EndComponentTable();
|
|
}
|
|
}; |