Improving looks

This commit is contained in:
Arnau Alier Torres 2025-04-22 17:42:47 +02:00
parent fddb88a9b2
commit 66737f4eec
9 changed files with 220 additions and 172 deletions

View File

@ -102,7 +102,7 @@ namespace Deer {
void Environment::destroyEntity(uint16_t entityID) { void Environment::destroyEntity(uint16_t entityID) {
DEER_CORE_ASSERT(entityExists(entityID), "Entity id {0} does not exist", DEER_CORE_ASSERT(entityExists(entityID), "Entity id {0} does not exist",
entityID); entityID);
DEER_CORE_ASSERT(entityID == 0, "Can not destroy root"); DEER_CORE_ASSERT(entityID != 0, "Can not destroy root");
Entity& entity = (*entities)[entityID]; Entity& entity = (*entities)[entityID];
entity.getParent().getComponent<RelationshipComponent>().removeChildren( entity.getParent().getComponent<RelationshipComponent>().removeChildren(

View File

@ -7,6 +7,7 @@
#include "Deer/ScriptEngine.h" #include "Deer/ScriptEngine.h"
#include "Deer/Voxel.h" #include "Deer/Voxel.h"
#include "Deer/VoxelWorld.h" #include "Deer/VoxelWorld.h"
#include "DeerStudio/Editor/Fonts.h"
#include "DeerStudio/Editor/GamePannel.h" #include "DeerStudio/Editor/GamePannel.h"
#include "DeerStudio/Editor/Icons.h" #include "DeerStudio/Editor/Icons.h"
#include "DeerStudio/Editor/PropertiesPannel.h" #include "DeerStudio/Editor/PropertiesPannel.h"
@ -40,20 +41,17 @@ namespace Deer {
// IMGUI STYLE // IMGUI STYLE
ImGuiIO& io = ImGui::GetIO(); ImGuiIO& io = ImGui::GetIO();
io.Fonts->Clear();
std::string fLoc = (DataStore::rootPath / "imgui.ini").generic_string(); std::string fLoc = (DataStore::rootPath / "imgui.ini").generic_string();
char* filenameFLoc = new char[fLoc.size() + 1](); char* filenameFLoc = new char[fLoc.size() + 1]();
strcpy(filenameFLoc, fLoc.c_str()); strcpy(filenameFLoc, fLoc.c_str());
io.IniFilename = filenameFLoc; io.IniFilename = filenameFLoc;
ImFontConfig cnfg;
// cnfg.SizePixels = 26
Path rfPath = DataStore::rootPath / "editor/fonts/Roboto-Regular.ttf";
io.Fonts->AddFontFromFileTTF(rfPath.generic_string().c_str(), 18);
// io.Fonts->AddFontDefault(&cnfg);
initializeFonts();
setNatureStyle(); setNatureStyle();
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(20, 20));
auto m_gamePannel = Ref<GamePannel>(new GamePannel()); auto m_gamePannel = Ref<GamePannel>(new GamePannel());
pannels.push_back(m_gamePannel); pannels.push_back(m_gamePannel);

View File

@ -0,0 +1,22 @@
#include "Fonts.h"
#include "Deer/DataStore.h"
namespace Deer {
ImFont* normalText;
ImFont* titleText;
void initializeFonts() {
ImGuiIO& io = ImGui::GetIO();
io.Fonts->Clear();
ImFontConfig cnfg;
// cnfg.SizePixels = 26
Path rfPath = DataStore::rootPath / "editor/fonts/Roboto-Regular.ttf";
normalText =
io.Fonts->AddFontFromFileTTF(rfPath.generic_string().c_str(), 18);
titleText =
io.Fonts->AddFontFromFileTTF(rfPath.generic_string().c_str(), 27);
// io.Fonts->AddFontDefault(&cnfg);
}
} // namespace Deer

View File

@ -0,0 +1,9 @@
#pragma once
#include "imgui.h"
namespace Deer {
extern ImFont* normalText;
extern ImFont* titleText;
void initializeFonts();
} // namespace Deer

View File

@ -5,6 +5,7 @@
#include "DeerRender/Input.h" #include "DeerRender/Input.h"
#include "DeerRender/KeyCodes.h" #include "DeerRender/KeyCodes.h"
#include "DeerRender/Render/Texture.h" #include "DeerRender/Render/Texture.h"
#include "DeerStudio/Editor/Fonts.h"
#include "DeerStudio/Project.h" #include "DeerStudio/Project.h"
#include "imgui.h" #include "imgui.h"
@ -38,16 +39,17 @@ namespace Deer {
} }
void PropertiesPannel::propertiesPannel_onImgui() { void PropertiesPannel::propertiesPannel_onImgui() {
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(20, 20));
ImGui::Begin("Properties"); ImGui::Begin("Properties");
if (ActiveEntity::count() == 0) { if (ActiveEntity::count() == 0) {
ImGui::TextColored(ImVec4(0.5f, 0.5f, 0.5f, 1),
"No entity selected");
ImGui::End(); ImGui::End();
ImGui::PopStyleVar();
return; return;
} }
Entity& activeEntity = ActiveEntity::getEntity(0); Entity& activeEntity = ActiveEntity::getEntity(0);
ImGui::PushFont(titleText);
auto& tag = activeEntity.getComponent<TagComponent>(); auto& tag = activeEntity.getComponent<TagComponent>();
if (tag.tag == "") if (tag.tag == "")
@ -55,8 +57,16 @@ namespace Deer {
else else
ImGui::Text("%s", tag.tag.c_str()); ImGui::Text("%s", tag.tag.c_str());
ImGui::SameLine(); ImGui::PopFont();
ImGui::Text("id : %u", tag.entityUID); ImGui::Separator();
ImGui::TextColored(ImVec4(0.5f, 0.5f, 0.5f, 1), "Id : %u",
tag.entityUID);
if (activeEntity.isRoot()) {
ImGui::End();
return;
}
ImGui::SameLine(); ImGui::SameLine();
addComponentContext(); addComponentContext();
@ -65,8 +75,6 @@ namespace Deer {
if (collapsingComponentHeader<TransformComponent>("Transform Component", if (collapsingComponentHeader<TransformComponent>("Transform Component",
false)) { false)) {
auto& transform = activeEntity.getComponent<TransformComponent>(); auto& transform = activeEntity.getComponent<TransformComponent>();
ImGui::Dummy(ImVec2(0.0f, 10.0f));
ImGui::Indent();
drawMagicSlider3f("Position", &transform.position.x, 0); drawMagicSlider3f("Position", &transform.position.x, 0);
glm::vec3 rotation = transform.getEulerAngles(); glm::vec3 rotation = transform.getEulerAngles();
@ -76,15 +84,10 @@ namespace Deer {
drawMagicSlider3f("Scale", &transform.scale.x, 1); drawMagicSlider3f("Scale", &transform.scale.x, 1);
if (rotation != lastRotation) transform.setEulerAngles(rotation); if (rotation != lastRotation) transform.setEulerAngles(rotation);
ImGui::Dummy(ImVec2(0.0f, 5.0f));
ImGui::Unindent();
ImGui::Dummy(ImVec2(0.0f, 10.0f));
} }
if (collapsingComponentHeader<ScriptComponent>("Script Component")) { if (collapsingComponentHeader<ScriptComponent>("Script Component")) {
ImGui::Dummy(ImVec2(0.0f, 10.0f));
ImGui::Indent();
auto& script = activeEntity.getComponent<ScriptComponent>(); auto& script = activeEntity.getComponent<ScriptComponent>();
// ------ MESH ----- // ------ MESH -----
@ -98,15 +101,11 @@ namespace Deer {
ImGui::SameLine(); ImGui::SameLine();
ImGui::Button(scriptName.c_str()); ImGui::Button(scriptName.c_str());
ImGui::Unindent(); ImGui::Dummy(ImVec2(0.0f, 5.0f));
ImGui::Dummy(ImVec2(0.0f, 10.0f));
} }
if (collapsingComponentHeader<MeshRenderComponent>( if (collapsingComponentHeader<MeshRenderComponent>(
"Mesh Render Component")) { "Mesh Render Component")) {
ImGui::Dummy(ImVec2(0.0f, 10.0f));
ImGui::Indent();
auto& mesh = activeEntity.getComponent<MeshRenderComponent>(); auto& mesh = activeEntity.getComponent<MeshRenderComponent>();
// ------ MESH ----- // ------ MESH -----
@ -153,15 +152,11 @@ namespace Deer {
ImGui::EndDragDropTarget(); ImGui::EndDragDropTarget();
} }
ImGui::Unindent(); ImGui::Dummy(ImVec2(0.0f, 5.0f));
ImGui::Dummy(ImVec2(0.0f, 10.0f));
} }
if (collapsingComponentHeader<TextureBindingComponent>( if (collapsingComponentHeader<TextureBindingComponent>(
"Texture Binding Component")) { "Texture Binding Component")) {
ImGui::Dummy(ImVec2(0.0f, 10.0f));
ImGui::Indent();
TextureBindingComponent& textureBinding = TextureBindingComponent& textureBinding =
activeEntity.getComponent<TextureBindingComponent>(); activeEntity.getComponent<TextureBindingComponent>();
@ -266,7 +261,6 @@ namespace Deer {
} }
ImGui::End(); ImGui::End();
ImGui::PopStyleVar();
} }
void PropertiesPannel::drawMagicSlider(const std::string& text, void PropertiesPannel::drawMagicSlider(const std::string& text,

View File

@ -25,6 +25,10 @@ namespace Deer {
ImGui::Begin("Terrain Editor"); ImGui::Begin("Terrain Editor");
if (!Project::m_scene.isVoxelWorldInitialized()) { if (!Project::m_scene.isVoxelWorldInitialized()) {
ImGui::TextColored(ImVec4(0.5f, 0.5f, 0.5f, 1),
"No voxel world created");
ImGui::Separator();
ImGui::Spacing();
if (ImGui::Button("Create Voxel World")) { if (ImGui::Button("Create Voxel World")) {
ImGui::OpenPopup(TERRAIN_EDITOR_CREATE_VOXEL_WORLD_POPUP_NAME); ImGui::OpenPopup(TERRAIN_EDITOR_CREATE_VOXEL_WORLD_POPUP_NAME);
} }

View File

@ -53,12 +53,13 @@ namespace Deer {
Project::m_scene.getMainEnviroment() Project::m_scene.getMainEnviroment()
.getRoot() .getRoot()
.getComponent<RelationshipComponent>(); .getComponent<RelationshipComponent>();
for (int i = 0; i < relation.childCount; i++) {
Entity& childEntity = updateEntity(Project::m_scene.getMainEnviroment().getRoot());
Project::m_scene.getMainEnviroment().getEntity( // for (int i = 0; i < relation.childCount; i++) {
relation.getChildrenId(i)); // Entity& childEntity =
updateEntity(childEntity); // Project::m_scene.getMainEnviroment().getEntity(
} // relation.getChildrenId(i));
// }
ImGui::PopStyleVar(); ImGui::PopStyleVar();
updateContextMenu(); updateContextMenu();
@ -95,7 +96,7 @@ namespace Deer {
ImGui::Spacing(); ImGui::Spacing();
// End of the tree // End of the tree
if (relationship.childCount == 0) { if (relationship.childCount == 0 && !entity.isRoot()) {
ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf |
ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoTreePushOnOpen |
ImGuiTreeNodeFlags_SpanFullWidth; ImGuiTreeNodeFlags_SpanFullWidth;

View File

@ -1,75 +1,93 @@
#pragma once #pragma once
#include "imgui.h" #include "imgui.h"
void SetupVSCodeStyle(); void SetupModernStyle();
void geminiStyle(); void geminiStyle();
void setNatureStyle() { void setNatureStyle() {
// geminiStyle(); // geminiStyle();
SetupVSCodeStyle(); SetupModernStyle();
} }
void SetupModernStyle() {
void SetupVSCodeStyle() {
ImVec4* colors = ImGui::GetStyle().Colors;
ImGuiStyle& style = ImGui::GetStyle(); ImGuiStyle& style = ImGui::GetStyle();
style.WindowRounding = 2.0f; ImVec4* colors = style.Colors;
style.FrameRounding = 2.0f;
style.GrabRounding = 2.0f;
style.ScrollbarRounding = 2.0f;
colors[ImGuiCol_Text] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); // #CCCCCC // Round everything slightly more for modern softness
colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); // #808080 style.WindowRounding = 6.0f;
colors[ImGuiCol_WindowBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E style.FrameRounding = 4.0f;
colors[ImGuiCol_ChildBg] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f); // #262626 style.ScrollbarRounding = 6.0f;
colors[ImGuiCol_PopupBg] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f); // #262626 style.GrabRounding = 4.0f;
colors[ImGuiCol_Border] = ImVec4(0.23f, 0.23f, 0.23f, 1.00f); // #3C3C3C style.TabRounding = 4.0f;
colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); // Transparent
colors[ImGuiCol_FrameBg] = ImVec4(0.24f, 0.24f, 0.24f, 1.00f); // #3C3C3C
colors[ImGuiCol_FrameBgHovered] = ImVec4(0.30f, 0.30f, 0.30f, 1.00f); // #4D4D4D
colors[ImGuiCol_FrameBgActive] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f); // #595959
colors[ImGuiCol_TitleBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E
colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E
colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f); // #262626
colors[ImGuiCol_MenuBarBg] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f); // #262626
colors[ImGuiCol_ScrollbarBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E
colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.28f, 0.28f, 0.28f, 1.00f); // #474747
colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.32f, 0.32f, 0.32f, 1.00f); // #525252
colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.36f, 0.36f, 0.36f, 1.00f); // #5C5C5C
colors[ImGuiCol_CheckMark] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_SliderGrab] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_SliderGrabActive] = ImVec4(0.08f, 0.47f, 0.75f, 1.00f); // Even darker light blue
colors[ImGuiCol_Button] = ImVec4(0.18f, 0.18f, 0.18f, 1.00f); // #2E2E2E
colors[ImGuiCol_ButtonHovered] = ImVec4(0.24f, 0.24f, 0.24f, 1.00f); // #3C3C3C
colors[ImGuiCol_ButtonActive] = ImVec4(0.32f, 0.32f, 0.32f, 1.00f); // #525252
colors[ImGuiCol_Header] = ImVec4(0.18f, 0.18f, 0.18f, 1.00f); // #2E2E2E
colors[ImGuiCol_HeaderHovered] = ImVec4(0.24f, 0.24f, 0.24f, 1.00f); // #3C3C3C
colors[ImGuiCol_HeaderActive] = ImVec4(0.32f, 0.32f, 0.32f, 1.00f); // #525252
colors[ImGuiCol_Separator] = ImVec4(0.23f, 0.23f, 0.23f, 1.00f); // #3C3C3C
colors[ImGuiCol_SeparatorHovered] = ImVec4(0.32f, 0.32f, 0.32f, 1.00f); // #525252
colors[ImGuiCol_SeparatorActive] = ImVec4(0.36f, 0.36f, 0.36f, 1.00f); // #5C5C5C
colors[ImGuiCol_ResizeGrip] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.08f, 0.47f, 0.75f, 1.00f); // Even darker light blue
colors[ImGuiCol_ResizeGripActive] = ImVec4(0.06f, 0.40f, 0.65f, 1.00f); // Much darker light blue
colors[ImGuiCol_Tab] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E
colors[ImGuiCol_TabHovered] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_TabActive] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_TabUnfocused] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); // #1E1E1E
colors[ImGuiCol_TabUnfocusedActive] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f); // #262626
colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); // #9C9C9C
colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.86f, 0.50f, 0.14f, 1.00f); // #DB8E3B
colors[ImGuiCol_PlotHistogram] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_PlotHistogramHovered] = ImVec4(0.08f, 0.47f, 0.75f, 1.00f); // Even darker light blue
colors[ImGuiCol_TextSelectedBg] = ImVec4(0.10f, 0.55f, 0.85f, 0.35f); // Darker light blue with transparency
colors[ImGuiCol_DragDropTarget] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_NavHighlight] = ImVec4(0.10f, 0.55f, 0.85f, 1.00f); // Darker light blue
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); // White with transparency
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); // Grey with transparency
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); // Grey with transparency
style.WindowBorderSize = 0.0f;
style.FrameBorderSize = 0.0f;
// Core background colors
colors[ImGuiCol_WindowBg] =
ImVec4(0.11f, 0.11f, 0.13f, 1.00f); // Slightly lighter than pure black
colors[ImGuiCol_ChildBg] = ImVec4(0.13f, 0.13f, 0.15f, 1.00f);
colors[ImGuiCol_PopupBg] = ImVec4(0.15f, 0.15f, 0.18f, 1.00f);
// Text
colors[ImGuiCol_Text] = ImVec4(0.95f, 0.96f, 0.98f, 1.00f); // Almost white
colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.55f, 0.60f, 1.00f);
// Borders
colors[ImGuiCol_Border] = ImVec4(0.20f, 0.20f, 0.22f, 1.00f);
colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
// Frames
colors[ImGuiCol_FrameBg] = ImVec4(0.18f, 0.18f, 0.20f, 1.00f);
colors[ImGuiCol_FrameBgHovered] = ImVec4(0.22f, 0.22f, 0.25f, 1.00f);
colors[ImGuiCol_FrameBgActive] = ImVec4(0.25f, 0.25f, 0.28f, 1.00f);
// Title bar
colors[ImGuiCol_TitleBg] = ImVec4(0.10f, 0.10f, 0.12f, 1.00f);
colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.15f, 0.18f, 1.00f);
colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.10f, 0.10f, 0.12f, 1.00f);
// Scrollbars
colors[ImGuiCol_ScrollbarBg] = ImVec4(0.10f, 0.10f, 0.12f, 1.00f);
colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.30f, 0.30f, 0.35f, 1.00f);
colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.35f, 0.35f, 0.40f, 1.00f);
colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.40f, 0.40f, 0.45f, 1.00f);
// Checkboxes, sliders, etc.
colors[ImGuiCol_CheckMark] =
ImVec4(0.22f, 0.65f, 0.90f, 1.00f); // Vivid blue
colors[ImGuiCol_SliderGrab] = ImVec4(0.22f, 0.65f, 0.90f, 1.00f);
colors[ImGuiCol_SliderGrabActive] = ImVec4(0.30f, 0.70f, 0.95f, 1.00f);
// Buttons
colors[ImGuiCol_Button] = ImVec4(0.18f, 0.18f, 0.22f, 1.00f);
colors[ImGuiCol_ButtonHovered] = ImVec4(0.22f, 0.22f, 0.27f, 1.00f);
colors[ImGuiCol_ButtonActive] = ImVec4(0.25f, 0.25f, 0.30f, 1.00f);
// Headers
colors[ImGuiCol_Header] = ImVec4(0.18f, 0.18f, 0.22f, 1.00f);
colors[ImGuiCol_HeaderHovered] = ImVec4(0.22f, 0.22f, 0.27f, 1.00f);
colors[ImGuiCol_HeaderActive] = ImVec4(0.25f, 0.25f, 0.30f, 1.00f);
// Tabs
colors[ImGuiCol_Tab] = ImVec4(0.12f, 0.12f, 0.15f, 1.00f);
colors[ImGuiCol_TabHovered] = ImVec4(0.22f, 0.65f, 0.90f, 1.00f);
colors[ImGuiCol_TabActive] = ImVec4(0.18f, 0.50f, 0.75f, 1.00f);
colors[ImGuiCol_TabUnfocused] = ImVec4(0.12f, 0.12f, 0.15f, 1.00f);
colors[ImGuiCol_TabUnfocusedActive] = ImVec4(0.18f, 0.20f, 0.25f, 1.00f);
// Resize grip
colors[ImGuiCol_ResizeGrip] = ImVec4(0.22f, 0.65f, 0.90f, 0.25f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.22f, 0.65f, 0.90f, 0.67f);
colors[ImGuiCol_ResizeGripActive] = ImVec4(0.22f, 0.65f, 0.90f, 0.95f);
// Highlight
colors[ImGuiCol_TextSelectedBg] = ImVec4(0.22f, 0.65f, 0.90f, 0.35f);
colors[ImGuiCol_DragDropTarget] = ImVec4(0.22f, 0.65f, 0.90f, 0.90f);
colors[ImGuiCol_NavHighlight] = ImVec4(0.22f, 0.65f, 0.90f, 0.80f);
colors[ImGuiCol_SeparatorHovered] = ImVec4(0.22f, 0.65f, 0.90f, 0.78f);
colors[ImGuiCol_SeparatorActive] = ImVec4(0.22f, 0.65f, 0.90f, 1.00f);
} }
void geminiStyle() { void geminiStyle() {
ImGuiStyle& style = ImGui::GetStyle(); ImGuiStyle& style = ImGui::GetStyle();
style.WindowRounding = 8.0f; style.WindowRounding = 8.0f;
@ -79,9 +97,11 @@ void geminiStyle() {
ImVec4* colors = ImGui::GetStyle().Colors; ImVec4* colors = ImGui::GetStyle().Colors;
colors[ImGuiCol_Text] = ImVec4(0.95f, 0.95f, 0.95f, 1.00f); // Lighter text for better readability colors[ImGuiCol_Text] = ImVec4(
0.95f, 0.95f, 0.95f, 1.00f); // Lighter text for better readability
colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f);
colors[ImGuiCol_WindowBg] = ImVec4(0.10f, 0.10f, 0.10f, 1.00f); // Slightly darker background colors[ImGuiCol_WindowBg] =
ImVec4(0.10f, 0.10f, 0.10f, 1.00f); // Slightly darker background
colors[ImGuiCol_ChildBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); colors[ImGuiCol_ChildBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f);
colors[ImGuiCol_PopupBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f); colors[ImGuiCol_PopupBg] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f);
colors[ImGuiCol_Border] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); colors[ImGuiCol_Border] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f);

View File

@ -1,6 +1,6 @@
[Window][DockSpace Demo] [Window][DockSpace Demo]
Pos=0,0 Pos=0,0
Size=2560,1371 Size=1628,720
Collapsed=0 Collapsed=0
[Window][Debug##Default] [Window][Debug##Default]
@ -9,32 +9,32 @@ Size=400,400
Collapsed=0 Collapsed=0
[Window][Properties] [Window][Properties]
Pos=2152,24 Pos=1236,24
Size=408,1347 Size=392,696
Collapsed=0 Collapsed=0
DockId=0x00000004,1 DockId=0x00000004,0
[Window][Game Window] [Window][Game Window]
Pos=526,24 Pos=368,24
Size=1624,1347 Size=866,696
Collapsed=0 Collapsed=0
DockId=0x00000006,1 DockId=0x00000006,1
[Window][Tree Pannel] [Window][Tree Pannel]
Pos=0,24 Pos=0,24
Size=524,1347 Size=366,696
Collapsed=0 Collapsed=0
DockId=0x00000005,0 DockId=0x00000005,0
[Window][Terrain Editor] [Window][Terrain Editor]
Pos=2152,24 Pos=1236,24
Size=408,1347 Size=392,696
Collapsed=0 Collapsed=0
DockId=0x00000004,0 DockId=0x00000004,1
[Window][Viewport] [Window][Viewport]
Pos=526,24 Pos=368,24
Size=1624,1347 Size=866,696
Collapsed=0 Collapsed=0
DockId=0x00000006,0 DockId=0x00000006,0
@ -45,11 +45,11 @@ Collapsed=0
DockId=0x00000002,0 DockId=0x00000002,0
[Docking][Data] [Docking][Data]
DockSpace ID=0xA1672E74 Window=0x4647B76E Pos=0,24 Size=2560,1347 Split=Y DockSpace ID=0xA1672E74 Window=0x4647B76E Pos=0,24 Size=1628,696 Split=Y
DockNode ID=0x00000001 Parent=0xA1672E74 SizeRef=2560,903 Split=X Selected=0x13926F0B DockNode ID=0x00000001 Parent=0xA1672E74 SizeRef=2560,903 Split=X Selected=0x13926F0B
DockNode ID=0x00000003 Parent=0x00000001 SizeRef=2150,779 Split=X Selected=0x13926F0B DockNode ID=0x00000003 Parent=0x00000001 SizeRef=1234,779 Split=X Selected=0x13926F0B
DockNode ID=0x00000005 Parent=0x00000003 SizeRef=524,779 Selected=0xBD1B42A3 DockNode ID=0x00000005 Parent=0x00000003 SizeRef=366,779 Selected=0xBD1B42A3
DockNode ID=0x00000006 Parent=0x00000003 SizeRef=1624,779 CentralNode=1 Selected=0x13926F0B DockNode ID=0x00000006 Parent=0x00000003 SizeRef=866,779 CentralNode=1 Selected=0x13926F0B
DockNode ID=0x00000004 Parent=0x00000001 SizeRef=408,779 Selected=0x2A2C795E DockNode ID=0x00000004 Parent=0x00000001 SizeRef=392,779 Selected=0x199AB496
DockNode ID=0x00000002 Parent=0xA1672E74 SizeRef=2560,442 Selected=0xCF339702 DockNode ID=0x00000002 Parent=0xA1672E74 SizeRef=2560,442 Selected=0xCF339702