diff options
author | rtk0c <[email protected]> | 2022-04-25 20:22:07 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-25 20:22:07 -0700 |
commit | 855da86feae1a5cc14dc2d486ccf115f484dbc2e (patch) | |
tree | 8284c6a6bdfb1a919eb1a22f466f4180a329c7f3 /source/EditorCore.hpp | |
parent | d78a55de5003dbb040f1d1c369409e63a2c806d8 (diff) |
Changeset: 16 Initial work on rendering sprites to screen
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r-- | source/EditorCore.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp index 13dc2d0..b473b2e 100644 --- a/source/EditorCore.hpp +++ b/source/EditorCore.hpp @@ -10,6 +10,7 @@ #include <memory> #include <string> +// TODO move inspector drawing to this class struct EditorInspector { enum TargetType { ITT_GameObject, @@ -58,12 +59,18 @@ class EditorInstance { private: App* mApp; GameWorld* mWorld; - RcPtr<Sprite> mSpriteView_Instance; + GameObject* mPopupCurrent_GameObject = nullptr; + RcPtr<SpriteDefinition> mSpriteView_Instance; EditorInspector mEdInspector; EditorContentBrowser mEdContentBrowser; int mSpriteView_Frame; bool mSpriteView_OpenNextFrame = false; - bool mEdContentBrowserVisible = false; + bool mWindowVisible_ImGuiDemo = false; + bool mWindowVisible_CommandPalette = false; + bool mWindowVisible_Inspector = true; + bool mWindowVisible_ContentBrowser = true; + bool mWindowVisible_WorldStructure = true; + bool mWindowVisible_WorldProperties = true; public: EditorInstance(App* app, GameWorld* world); @@ -74,7 +81,7 @@ public: EditorInspector& GetInspector() { return mEdInspector; } EditorContentBrowser& GetContentBrowser() { return mEdContentBrowser; } - void OpenSpriteViewer(Sprite* sprite); + void OpenSpriteViewer(SpriteDefinition* sprite); private: void ShowWorldProperties(); @@ -82,7 +89,5 @@ private: void ShowInspector(IresObject* ires); void ShowInspector(GameObject* object); - void ShowGameObjectInTree(GameObject* object); - void ShowSpriteViewer(); }; |