You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lunarium_OLD/src/run_modes/editor/panels/worldView.cpp

50 lines
1.2 KiB
C++

/******************************************************************************
* File - worldView.cpp
* Author - Joey Pollack
* Date - 2022/01/26 (y/m/d)
* Mod Date - 2022/01/26 (y/m/d)
* Description - A rendered view of the world
******************************************************************************/
#include "worldView.h"
#include <utils\logger.h>
#include <game/world/world.h>
#include <dearimgui/imgui.h>
#include <editor/editor.h>
#include "../panel_manager.h"
namespace lunarium
{
namespace editor
{
WorldView::WorldView()
: Panel(PT_WORLD_VIEW, true), mpWorld(nullptr)
{
}
bool WorldView::DoFrame()
{
if (!mIsOpen)
return false;
//ImGui::SetNextWindowPosition()
if (mForceDock)
{
mForceDock = false;
//ImGui::SetNextWindowDockID(PanelManager::GetInstance().GetDockSpaces().Center, ImGuiCond_Appearing);
Logger::Log(LogCategory::CORE, LogLevel::INFO, "Attempting force-dock world view panel");
}
if (!ImGui::Begin("World View", &mIsOpen, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar))
{
ImGui::End();
return false;
}
ImGui::End();
return true;
}
}
}