2024-12-25 23:35:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <glm/glm.hpp> // or <glm/vec3.hpp> if you prefer
|
|
|
|
#include "imgui.h"
|
|
|
|
|
2024-12-26 00:15:18 +00:00
|
|
|
#include "Componenets/GameObject.h"
|
|
|
|
#include "Componenets/Mesh.h"
|
|
|
|
#include "Componenets/Transform.h"
|
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
|
|
|
|
// Example struct for a Script component
|
|
|
|
struct Script
|
|
|
|
{
|
|
|
|
std::string scriptName = "MyBehavior.lua";
|
|
|
|
bool enabled = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
// The Inspector window class
|
|
|
|
class InspectorWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Constructor / Destructor
|
|
|
|
InspectorWindow() = default;
|
|
|
|
~InspectorWindow() = default;
|
|
|
|
|
|
|
|
// Show the window (call each frame)
|
|
|
|
// Pass references to your components, so any changes get applied to them.
|
|
|
|
void Show(Transform& transform, Script& script);
|
|
|
|
|
|
|
|
private:
|
|
|
|
// You can store additional state or styling here if needed
|
|
|
|
// e.g. bool m_SomeInternalFlag = false;
|
|
|
|
};
|