diff options
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r-- | source/EditorCore.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp index a9ef93a..28ad849 100644 --- a/source/EditorCore.hpp +++ b/source/EditorCore.hpp @@ -1,7 +1,6 @@ #pragma once #include "EditorAttachment.hpp" -#include "EditorInspector.hpp" #include "EditorResources.hpp" #include "GameObject.hpp" #include "World.hpp" @@ -11,12 +10,20 @@ class App; class EditorInstance { +public: + enum InspectorTargetType { + ITT_GameObject, + ITT_Shader, + ITT_None, + }; + private: App* mApp; GameWorld* mWorld; - GameObject* mSelectedGameObject = nullptr; - EditorInspector mEdInspector; + void* mSelectedItPtr = nullptr; EditorContentBrowser mEdContentBrowser; + InspectorTargetType mSelectedItt = ITT_None; + bool mEdContentBrowserVisible=false; public: EditorInstance(App* app, GameWorld* world); @@ -24,9 +31,14 @@ public: void Show(); + void* GetSelectedItPtr() const { return mSelectedItPtr; } + InspectorTargetType GetSelectedItt() const { return mSelectedItt; } + void SelectIt(void* ptr, InspectorTargetType itt); + private: void ShowWorldProperties(); + void ShowInspector(Shader* shader); void ShowInspector(GameObject* object); void ShowGameObjecetFields(GameObject* object); |