diff --git a/CMakeLists.txt b/CMakeLists.txt index 229d1c6..738113e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ set(LUNARIUM_SRC "src/graphics/opengl/glShader.cpp" "src/gui/gui.cpp" "src/gui/panel.cpp" +"src/gui/panel_manager.cpp" "src/gui/console.cpp" "src/internal_data/data_manager.cpp" "src/assets/asset_manager.cpp" diff --git a/docs/tasks/core.todo b/docs/tasks/core.todo index d27127a..52ae2c0 100644 --- a/docs/tasks/core.todo +++ b/docs/tasks/core.todo @@ -93,12 +93,14 @@ Core: To support larger region sizes without needing single images that are like 1048576x1048576 or some nonsense.] GUI: + ☐ Improve the GUI API! + ☐ Implement a better way to handle popup windows and context menus ✔ Dear ImGui class with basic initialization @done (9/10/2021, 1:42:19 PM) ✔ Debug log window @done (9/10/2021, 4:44:48 PM) ✔ Add key to show debug log window @done (9/13/2021, 6:47:44 PM) ☐ Add checkboxes to disable log categories and levels ✔ Add LUA Console window @done (10/26/2021, 4:43:41 PM) - ☐ Improve the interfaces for the Lua Editor and Console (partial transparancy for one thing) @high + ✔ Improve the interfaces for the Lua Editor and Console (partial transparancy for one thing) @high @done(22-06-23 15:54) FileBrowser: ✔ Allow opening of listed directories @done (11/8/2021, 3:16:26 PM) ✔ Add indication that an item is directory @done (11/8/2021, 6:19:20 PM) diff --git a/src/core/core.cpp b/src/core/core.cpp index 02c0d74..69b1741 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -423,7 +423,7 @@ namespace lunarium // HELPERS //////////////////////////////////////////////////////////// - uint32_t Core::AddPanel(gui::Panel* p) + uint32_t Core::AddPanel(Panel* p) { mPanels.push_back(p); return mPanels.size() - 1; diff --git a/src/core/core.h b/src/core/core.h index 7302364..8be0268 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -64,7 +64,7 @@ namespace lunarium { uint32_t CoreConsole; } mPanelIDs; - std::vector mPanels; + std::vector mPanels; // Log Files std::ofstream mMasterLogFile; @@ -85,7 +85,7 @@ namespace lunarium static InputManager& Input(); private: // HELPERS - uint32_t AddPanel(gui::Panel* p); + uint32_t AddPanel(Panel* p); void FreePanel(uint32_t id); private: // HIDDEN METHODS diff --git a/src/core/core_console.h b/src/core/core_console.h index a9312d3..eea01b7 100644 --- a/src/core/core_console.h +++ b/src/core/core_console.h @@ -13,7 +13,7 @@ namespace lunarium { - class CoreConsole : public gui::Console + class CoreConsole : public Console { public: CoreConsole(); diff --git a/src/gui/console.cpp b/src/gui/console.cpp index 65b627f..280dad1 100644 --- a/src/gui/console.cpp +++ b/src/gui/console.cpp @@ -16,8 +16,6 @@ #include namespace lunarium { - namespace gui - { //////////////////////////////////////////////////////////// // GUI LOG LISTENER //////////////////////////////////////////////////////////// @@ -46,7 +44,7 @@ namespace lunarium // CONSOLE //////////////////////////////////////////////////////////// Console::Console(const char* name) - : Panel(name, gui::PanelDockZone::DDZ_NONE, false), + : Panel(name, PanelDockZone::DDZ_NONE, false), mbNewCommand(false), mRecalledCommand(-1), mIsFocused(false), mListener(nullptr), mbOglDebug(false), mbInfoVerbose(false), mpListener(nullptr) { @@ -222,4 +220,4 @@ namespace lunarium return 0; } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/src/gui/console.h b/src/gui/console.h index f6be5b1..f1ead78 100644 --- a/src/gui/console.h +++ b/src/gui/console.h @@ -16,9 +16,7 @@ namespace lunarium { - namespace gui - { - + class Console; class GuiListener : public LogListener { @@ -69,7 +67,7 @@ namespace lunarium void CheckFocus(); }; -}} +} #endif // CONSOLE_H_ \ No newline at end of file diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4b87cb7..29f1277 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -18,6 +18,7 @@ namespace lunarium { + uint32_t GUI::LogCat = 0; GUI* GUI::mpInstance = nullptr; GUI::GUI() : mbIsInit(false)//, mbShowDemo(false) @@ -48,6 +49,9 @@ namespace lunarium return OpRes::Fail("GUI is already initialized!"); } + LogCat = Logger::RegisterCategory("GUI"); + mNextWindowID = 0; + IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; @@ -146,6 +150,12 @@ namespace lunarium } + u32 GUI::GetNextWindowID() + { + return mNextWindowID++; + } + + void GUI::SetStyle(GuiStyle style) { // Reset the style diff --git a/src/gui/gui.h b/src/gui/gui.h index 8d7d413..138dd87 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -9,6 +9,7 @@ #ifndef GUI_H_ #define GUI_H_ +#include #include #include @@ -41,6 +42,7 @@ namespace lunarium class GUI { public: + static uint32_t LogCat; static GUI& GetInstance(); static void FreeInstance(); OpRes Initialize(GLFWwindow* pWindow); @@ -55,6 +57,8 @@ namespace lunarium void SetStyle(GuiStyle style); ImFont* GetFont(GuiFont font); + u32 GetNextWindowID(); + private: GUI(); GUI(const GUI&) = delete; @@ -63,6 +67,7 @@ namespace lunarium private: static GUI* mpInstance; bool mbIsInit; + u32 mNextWindowID; ImGuiStyle* mpBaseStyle; std::map mFonts; //bool mbShowDemo; diff --git a/src/gui/panel.cpp b/src/gui/panel.cpp index 01f32ce..43c1cc9 100644 --- a/src/gui/panel.cpp +++ b/src/gui/panel.cpp @@ -11,8 +11,6 @@ #include "dearimgui/imgui.h" namespace lunarium -{ -namespace gui { Panel::Panel(std::string name, PanelDockZone dock_zone, bool isOpen) : mIsOpen(isOpen), mPanelName(name), mDockZone(dock_zone) @@ -73,5 +71,5 @@ namespace gui mWidth = s.x; mHeight = s.y; } -} + } \ No newline at end of file diff --git a/src/gui/panel.h b/src/gui/panel.h index 799db79..d239d03 100644 --- a/src/gui/panel.h +++ b/src/gui/panel.h @@ -1,5 +1,5 @@ /****************************************************************************** -* File - iPanel.h +* File - panel.h * Author - Joey Pollack * Date - 2021/11/01 (y/m/d) * Mod Date - 2021/11/01 (y/m/d) @@ -10,14 +10,13 @@ #define PANEL_H_ #include "panel_defs.h" +#include "panel_manager.h" #include struct ImGuiInputTextCallbackData; namespace lunarium -{ -namespace gui { class Panel { @@ -46,7 +45,10 @@ namespace gui protected: void UpdateMetaInfo(); + + private: + friend class PanelManager; }; -}} +} #endif // PANEL_H_ \ No newline at end of file diff --git a/src/gui/panel_defs.h b/src/gui/panel_defs.h index da8c200..5c4bcfd 100644 --- a/src/gui/panel_defs.h +++ b/src/gui/panel_defs.h @@ -9,7 +9,7 @@ #ifndef PANEL_DEFS_H_ #define PANEL_DEFS_H_ -namespace lunarium { namespace gui +namespace lunarium { enum PanelDockZone { @@ -22,6 +22,6 @@ namespace lunarium { namespace gui DDZ_NONE }; -}} +} #endif // PANEL_DEFS_H_ \ No newline at end of file diff --git a/src/run_modes/editor/panel_manager.cpp b/src/gui/panel_manager.cpp similarity index 87% rename from src/run_modes/editor/panel_manager.cpp rename to src/gui/panel_manager.cpp index d337179..cb01ccb 100644 --- a/src/run_modes/editor/panel_manager.cpp +++ b/src/gui/panel_manager.cpp @@ -7,36 +7,30 @@ ******************************************************************************/ #include "panel_manager.h" -#include "editor.h" +#include "gui.h" +#include #include #include // To use the DockWindowXXX methods #include // Panels -#include "panels/about.h" -#include "panels/asset_browser.h" -#include "panels/world_tree.h" -#include "panels/world_view.h" -#include "panels/properties_view.h" -using namespace lunarium::gui; -namespace lunarium { namespace editor +namespace lunarium { PanelManager::PanelManager() - : mpEditor(nullptr), mResetDockSpace(false), mDockSpaceID(0), mSplitBottom(false) + : mResetDockSpace(false), mDockSpaceID(0), mSplitBottom(false) { } - OpRes PanelManager::Initialize(Editor* editor, std::string name, bool split_bottom) + OpRes PanelManager::Initialize(std::string name, bool split_bottom) { - mpEditor = editor; mName = name; mSplitBottom = split_bottom; memset(&mWindowClass, 0, sizeof(ImGuiWindowClass)); - mWindowClass.ClassId = mpEditor->GetNextWindowID(); + mWindowClass.ClassId = GUI::GetInstance().GetNextWindowID(); if (!std::filesystem::exists("imgui.ini")) { @@ -52,7 +46,7 @@ namespace lunarium { namespace editor } - OpRes PanelManager::AddPanel(gui::Panel* panel, uint32_t& id) + OpRes PanelManager::AddPanel(Panel* panel, uint32_t& id) { if (mPanelsByName.find(panel->GetName()) != mPanelsByName.end()) { @@ -97,7 +91,7 @@ namespace lunarium { namespace editor return mPanels[id]; } - Logger::Warn(mpEditor->GetLogCat(), "Requested panel not found: %d", id); + Logger::Warn(GUI::LogCat, "Requested panel not found: %d", id); return nullptr; } @@ -162,13 +156,13 @@ namespace lunarium { namespace editor { //ImGuiViewport* Viewport = ImGui::GetMainViewport(); ImGuiViewport* Viewport = ImGui::GetWindowViewport(); - ImGuiID windowID = mpEditor->GetNextWindowID(); + ImGuiID windowID = GUI::GetInstance().GetNextWindowID(); std::string dock_name = mName; dock_name += " DockSpace"; mDockSpaceID = ImGui::DockSpace(ImGui::GetID(dock_name.c_str()), ImVec2(0, 0), 0, &mWindowClass); if (!ImGui::DockBuilderGetNode(mDockSpaceID) || mResetDockSpace) { - Logger::Trace(mpEditor->GetLogCat(), "Resetting Dockspace: %s", dock_name.c_str()); + Logger::Trace(GUI::LogCat, "Resetting Dockspace: %s", dock_name.c_str()); mResetDockSpace = false; ImGui::DockBuilderRemoveNode(mDockSpaceID); @@ -215,4 +209,4 @@ namespace lunarium { namespace editor } } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/src/run_modes/editor/panel_manager.h b/src/gui/panel_manager.h similarity index 73% rename from src/run_modes/editor/panel_manager.h rename to src/gui/panel_manager.h index c79691c..df9c5aa 100644 --- a/src/run_modes/editor/panel_manager.h +++ b/src/gui/panel_manager.h @@ -9,9 +9,9 @@ #ifndef PANEL_MANAGER_H_ #define PANEL_MANAGER_H_ +#include "panel_defs.h" #include #include -#include #include #include @@ -19,23 +19,22 @@ struct ImGuiWindowClass; namespace lunarium{ class IGraphics; -namespace editor -{ - class Editor; + class Panel; + class PanelManager { public: PanelManager(); - OpRes Initialize(Editor* editor, std::string name, bool split_bottom = false); + OpRes Initialize(std::string name, bool split_bottom = false); void Shutdown(); // Panel interface - [[nodiscard]] OpRes AddPanel(gui::Panel* panel, uint32_t& id); + [[nodiscard]] OpRes AddPanel(Panel* panel, uint32_t& id); void OpenPanel(uint32_t id); void ClosePanel(uint32_t id); bool IsOpen(uint32_t id); - gui::Panel* GetPanel(uint32_t id); + Panel* GetPanel(uint32_t id); const ImGuiWindowClass* GetWindowClass() const; // Docking @@ -48,21 +47,20 @@ namespace editor void RenderPanels(); private: - Editor* mpEditor; std::string mName; bool mSplitBottom; // If true the bottom dock node will also be split into left/right bool mResetDockSpace; - std::vector mPanels; - std::map mPanelsByName; + std::vector mPanels; + std::map mPanelsByName; unsigned int mDockSpaceID; ImGuiWindowClass mWindowClass; - std::map mDockZoneIDs; + std::map mDockZoneIDs; private: void DestoryPanels(); }; -}} +} #endif // PANEL_MANAGER_H_ \ No newline at end of file diff --git a/src/run_modes/editor/CMakeLists.txt b/src/run_modes/editor/CMakeLists.txt index 2d1b688..419aa7a 100644 --- a/src/run_modes/editor/CMakeLists.txt +++ b/src/run_modes/editor/CMakeLists.txt @@ -3,7 +3,6 @@ set(EDITOR_SRC "editor.cpp" "editor_helpers.cpp" -"panel_manager.cpp" "project.cpp" "component_guis.cpp" "panels/about.cpp" diff --git a/src/run_modes/editor/editor.cpp b/src/run_modes/editor/editor.cpp index 317405d..ca3eef1 100644 --- a/src/run_modes/editor/editor.cpp +++ b/src/run_modes/editor/editor.cpp @@ -9,7 +9,7 @@ #include "editor.h" #include -#include "panel_manager.h" +#include #include #include #include @@ -46,7 +46,7 @@ namespace editor Editor::Editor() : mDoNewProject(false), mDoOpenProject(false), - mDoSaveProject(false), mDoSaveAs(false), mNextWindowID(0), mpMapEditor(nullptr) + mDoSaveProject(false), mDoSaveAs(false), mpMapEditor(nullptr) { } @@ -62,7 +62,7 @@ namespace editor // Init editor panels mAboutPanel.SetOpen(false); - OpRes res = mPanelManager.Initialize(this, "Lunarium editor", true).LogIfFailed(LogCat); + OpRes res = mPanelManager.Initialize("Lunarium editor", true).LogIfFailed(LogCat); if (Failed(res)) { return res; @@ -124,12 +124,6 @@ namespace editor return LogCat; } - unsigned int Editor::GetNextWindowID() - { - return ++mNextWindowID; - } - - bool Editor::IsToolOpen(ToolType type) const { switch (type) diff --git a/src/run_modes/editor/editor.h b/src/run_modes/editor/editor.h index d137e65..895e3e4 100644 --- a/src/run_modes/editor/editor.h +++ b/src/run_modes/editor/editor.h @@ -11,10 +11,10 @@ #include #include +#include #include #include "project.h" -#include "panel_manager.h" #include "panels/about.h" #include @@ -49,7 +49,6 @@ namespace lunarium { namespace editor uint32_t GetLogCat() const; - unsigned int GetNextWindowID(); bool IsToolOpen(ToolType type) const; void ChangeWorld(lunarium::World* pWorld); @@ -67,7 +66,6 @@ namespace lunarium { namespace editor Project mProject; // Tools - unsigned int mNextWindowID; MapEditor* mpMapEditor; // Panels diff --git a/src/run_modes/editor/panels/about.cpp b/src/run_modes/editor/panels/about.cpp index 79ba4b2..8d4e3a7 100644 --- a/src/run_modes/editor/panels/about.cpp +++ b/src/run_modes/editor/panels/about.cpp @@ -16,7 +16,7 @@ namespace lunarium namespace editor { AboutPanel::AboutPanel() - : Panel("About", gui::PanelDockZone::DDZ_NONE) + : Panel("About", PanelDockZone::DDZ_NONE) { } diff --git a/src/run_modes/editor/panels/about.h b/src/run_modes/editor/panels/about.h index d9807ae..d00d1f7 100644 --- a/src/run_modes/editor/panels/about.h +++ b/src/run_modes/editor/panels/about.h @@ -16,7 +16,7 @@ namespace lunarium namespace editor { class Editor; - class AboutPanel : public gui::Panel + class AboutPanel : public Panel { public: AboutPanel(); diff --git a/src/run_modes/editor/panels/asset_browser.cpp b/src/run_modes/editor/panels/asset_browser.cpp index 2e4f4e7..4543974 100644 --- a/src/run_modes/editor/panels/asset_browser.cpp +++ b/src/run_modes/editor/panels/asset_browser.cpp @@ -23,7 +23,7 @@ namespace lunarium namespace editor { AssetBrowser::AssetBrowser(std::filesystem::path dir, Editor* pEditor) - : Panel("Asset Browser", gui::PanelDockZone::DDZ_BOTTOM, true), + : Panel("Asset Browser", PanelDockZone::DDZ_BOTTOM, true), mAssetDirectory(dir), mpEditor(pEditor), mNewFolder(false), mSyncTree(false) { } diff --git a/src/run_modes/editor/panels/asset_browser.h b/src/run_modes/editor/panels/asset_browser.h index 848f35a..b516028 100644 --- a/src/run_modes/editor/panels/asset_browser.h +++ b/src/run_modes/editor/panels/asset_browser.h @@ -19,7 +19,7 @@ namespace lunarium { namespace editor { - class AssetBrowser : public gui::Panel + class AssetBrowser : public Panel { public: AssetBrowser(std::filesystem::path dir, Editor* pEditor); diff --git a/src/run_modes/editor/panels/properties_view.cpp b/src/run_modes/editor/panels/properties_view.cpp index 09dd97e..fa201a4 100644 --- a/src/run_modes/editor/panels/properties_view.cpp +++ b/src/run_modes/editor/panels/properties_view.cpp @@ -17,7 +17,7 @@ namespace lunarium { namespace editor { PropertiesView::PropertiesView() - : Panel("Properties", gui::PanelDockZone::DDZ_RIGHT, true), mpSelectedAsset(nullptr), mpSelectedEntity(nullptr) + : Panel("Properties", PanelDockZone::DDZ_RIGHT, true), mpSelectedAsset(nullptr), mpSelectedEntity(nullptr) { } diff --git a/src/run_modes/editor/panels/properties_view.h b/src/run_modes/editor/panels/properties_view.h index d35b644..961121b 100644 --- a/src/run_modes/editor/panels/properties_view.h +++ b/src/run_modes/editor/panels/properties_view.h @@ -20,7 +20,7 @@ namespace editor { class CustromProperty; class EditorAsset; - class PropertiesView : public gui::Panel + class PropertiesView : public Panel { public: diff --git a/src/run_modes/editor/panels/world_tree.cpp b/src/run_modes/editor/panels/world_tree.cpp index 7944355..36c2731 100644 --- a/src/run_modes/editor/panels/world_tree.cpp +++ b/src/run_modes/editor/panels/world_tree.cpp @@ -20,7 +20,7 @@ namespace lunarium namespace editor { WorldTree::WorldTree() - : Panel("World Tree", gui::PanelDockZone::DDZ_LEFT, true), mpWorld(new lunarium::World), mDoNewEntity(false) + : Panel("World Tree", PanelDockZone::DDZ_LEFT, true), mpWorld(new lunarium::World), mDoNewEntity(false) { } diff --git a/src/run_modes/editor/panels/world_tree.h b/src/run_modes/editor/panels/world_tree.h index d37fa44..1a335cb 100644 --- a/src/run_modes/editor/panels/world_tree.h +++ b/src/run_modes/editor/panels/world_tree.h @@ -17,7 +17,7 @@ namespace lunarium namespace editor { - class WorldTree : public gui::Panel + class WorldTree : public Panel { public: WorldTree(); diff --git a/src/run_modes/editor/panels/world_view.cpp b/src/run_modes/editor/panels/world_view.cpp index 9544e35..5e31383 100644 --- a/src/run_modes/editor/panels/world_view.cpp +++ b/src/run_modes/editor/panels/world_view.cpp @@ -11,14 +11,14 @@ #include #include #include -#include "../panel_manager.h" +#include namespace lunarium { namespace editor { WorldView::WorldView() - : Panel("World View", gui::PanelDockZone::DDZ_CENTER ,true), mpWorld(nullptr) + : Panel("World View", PanelDockZone::DDZ_CENTER ,true), mpWorld(nullptr) { } diff --git a/src/run_modes/editor/panels/world_view.h b/src/run_modes/editor/panels/world_view.h index 65a90a9..735bd63 100644 --- a/src/run_modes/editor/panels/world_view.h +++ b/src/run_modes/editor/panels/world_view.h @@ -19,7 +19,7 @@ namespace lunarium namespace editor { class Editor; - class WorldView : public gui::Panel + class WorldView : public Panel { public: WorldView(); diff --git a/src/run_modes/editor/tools/map_editor/map_editor.cpp b/src/run_modes/editor/tools/map_editor/map_editor.cpp index bce0060..823aae2 100644 --- a/src/run_modes/editor/tools/map_editor/map_editor.cpp +++ b/src/run_modes/editor/tools/map_editor/map_editor.cpp @@ -43,7 +43,7 @@ namespace lunarium { namespace editor } mpEditor = editor; - if (Failed(mPanelManager.Initialize(mpEditor, "Map Editor").LogIfFailed(mpEditor->GetLogCat(), "Map Editor - "))) + if (Failed(mPanelManager.Initialize("Map Editor").LogIfFailed(mpEditor->GetLogCat(), "Map Editor - "))) { return OpRes::Fail("Could not initialize the panel manager!"); } diff --git a/src/run_modes/editor/tools/map_editor/map_editor.h b/src/run_modes/editor/tools/map_editor/map_editor.h index 27dffeb..798d235 100644 --- a/src/run_modes/editor/tools/map_editor/map_editor.h +++ b/src/run_modes/editor/tools/map_editor/map_editor.h @@ -13,7 +13,7 @@ #include #include #include -#include "../../panel_manager.h" +#include #include namespace lunarium { diff --git a/src/run_modes/editor/tools/map_editor/panels/map_canvas.cpp b/src/run_modes/editor/tools/map_editor/panels/map_canvas.cpp index b673449..5acccf3 100644 --- a/src/run_modes/editor/tools/map_editor/panels/map_canvas.cpp +++ b/src/run_modes/editor/tools/map_editor/panels/map_canvas.cpp @@ -21,7 +21,7 @@ namespace lunarium { namespace editor { MapCanvas::MapCanvas(MapEditor* editor) - : Panel("Map Canvas", gui::PanelDockZone::DDZ_CENTER, true), + : Panel("Map Canvas", PanelDockZone::DDZ_CENTER, true), mpMapEditor(editor), mpCanvasImage(nullptr), mMap(nullptr), mSelectedTile({-1, -1}), mFrameBuffer(-1), mMapSizeChanged(false), mZoomFactor(1.0f), mScrollDragged(false), mCurrentRegion({0, 0}), mRegionString("") { diff --git a/src/run_modes/editor/tools/map_editor/panels/map_canvas.h b/src/run_modes/editor/tools/map_editor/panels/map_canvas.h index 3a5873b..33f5593 100644 --- a/src/run_modes/editor/tools/map_editor/panels/map_canvas.h +++ b/src/run_modes/editor/tools/map_editor/panels/map_canvas.h @@ -20,7 +20,7 @@ namespace lunarium { namespace editor class MapEditor; class TileMap; - class MapCanvas : public gui::Panel + class MapCanvas : public Panel { public: MapCanvas(MapEditor* editor); diff --git a/src/run_modes/editor/tools/map_editor/panels/tile_set_view.cpp b/src/run_modes/editor/tools/map_editor/panels/tile_set_view.cpp index e1e474f..11c6375 100644 --- a/src/run_modes/editor/tools/map_editor/panels/tile_set_view.cpp +++ b/src/run_modes/editor/tools/map_editor/panels/tile_set_view.cpp @@ -20,7 +20,7 @@ namespace lunarium { namespace editor { TileSetView::TileSetView(MapEditor* editor) - : Panel("Tile Set View", gui::PanelDockZone::DDZ_RIGHT, true), + : Panel("Tile Set View", PanelDockZone::DDZ_RIGHT, true), mpEditor(editor), mpSelectedTileSet(nullptr), mpViewImage(nullptr), mFrameBuffer(-1), mViewOffset({0, 0}), mViewZoom(1.0f), mMouseDown(false) { diff --git a/src/run_modes/editor/tools/map_editor/panels/tile_set_view.h b/src/run_modes/editor/tools/map_editor/panels/tile_set_view.h index 6a1692e..ef3c7b1 100644 --- a/src/run_modes/editor/tools/map_editor/panels/tile_set_view.h +++ b/src/run_modes/editor/tools/map_editor/panels/tile_set_view.h @@ -20,7 +20,7 @@ namespace lunarium { namespace editor { class MapEditor; class TileSet; - class TileSetView : public gui::Panel + class TileSetView : public Panel { public: TileSetView(MapEditor* editor); diff --git a/src/run_modes/testbed/CMakeLists.txt b/src/run_modes/testbed/CMakeLists.txt index 19b6122..6c49e24 100644 --- a/src/run_modes/testbed/CMakeLists.txt +++ b/src/run_modes/testbed/CMakeLists.txt @@ -9,7 +9,7 @@ target_include_directories(testbed PUBLIC ../../../external/glad/include PUBLIC ../../../external/glfw/include PUBLIC ../../../external/box2d/include - PUBLIC ../../../external/dearimgui + PUBLIC ../../../external ) target_link_libraries(testbed box2d dearimgui) \ No newline at end of file