aboutsummaryrefslogtreecommitdiff
path: root/source/EditorCore.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r--source/EditorCore.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp
index 3d91fa6..c604f36 100644
--- a/source/EditorCore.hpp
+++ b/source/EditorCore.hpp
@@ -3,6 +3,9 @@
#include "EditorAttachment.hpp"
#include "EditorResources.hpp"
#include "GameObject.hpp"
+#include "Ires.hpp"
+#include "RcPtr.hpp"
+#include "Sprite.hpp"
#include "World.hpp"
#include <memory>
@@ -15,16 +18,19 @@ public:
ITT_GameObject,
ITT_Shader,
ITT_Material,
+ ITT_Ires,
ITT_None,
};
private:
App* mApp;
GameWorld* mWorld;
+ // TODO store more fields for ITT
void* mSelectedItPtr = nullptr;
+ RcPtr<Sprite> mSpriteView_Instance;
EditorContentBrowser mEdContentBrowser;
InspectorTargetType mSelectedItt = ITT_None;
- bool mEdContentBrowserVisible=false;
+ bool mEdContentBrowserVisible = false;
public:
EditorInstance(App* app, GameWorld* world);
@@ -41,8 +47,12 @@ private:
void ShowInspector(Shader* shader);
void ShowInspector(Material* material);
+ void ShowInspector(const std::string& path, IresObject* ires);
void ShowInspector(GameObject* object);
void ShowGameObjecetFields(GameObject* object);
void ShowGameObjectInTree(GameObject* object);
+
+ void OpenSpriteViewer(Sprite* sprite);
+ void ShowSpriteViewer();
};