diff options
author | hnOsmium0001 <[email protected]> | 2022-04-25 20:22:07 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-25 20:22:07 -0700 |
commit | f54370de7e4214cb7813d26b1a39a8f6e42b7b56 (patch) | |
tree | 20913b4099b77af933fcd2ebb4e73f53b366ad8f /source/EditorCore.hpp | |
parent | c8ebee643f23c34ff57f69f8dfcf1903b59ea9d1 (diff) |
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(); }; |