Fixes compile errors

This commit is contained in:
2025-12-16 20:08:24 -05:00
parent 66e4d6d05a
commit 1270282db0
37 changed files with 40 additions and 47 deletions

View File

@@ -38,10 +38,7 @@ namespace fgl::engine::gui
void drawComponentsList( GameObject& game_object )
{
ImGui::PushStyleVar( ImGuiStyleVar_ChildRounding, 5.0f );
ImGui::BeginChild(
"ComponentsList",
ImVec2( 0, 0 ),
ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_Border | ImGuiChildFlags_ResizeY );
ImGui::BeginChild( "ComponentsList", ImVec2( 0, 0 ), ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_ResizeY );
ImGui::SeparatorText( "Components" );
@@ -55,7 +52,7 @@ namespace fgl::engine::gui
ImGui::EndChild();
ImGui::PopStyleVar();
ImGui::BeginChild( "Selected", ImVec2( 0, 0 ), ImGuiChildFlags_Border );
ImGui::BeginChild( "Selected", ImVec2( 0, 0 ) );
if ( SELECTED_COMPONENT != nullptr && std::ranges::find( components, SELECTED_COMPONENT ) != components.end() )
{

View File

@@ -2,7 +2,6 @@
// Created by kj16609 on 6/5/24.
//
// ReSharper disable CppDFAInfiniteRecursion
// ReSharper disable CppInconsistentNaming
// ReSharper disable CppZeroConstantCanBeReplacedWithNullptr
@@ -18,7 +17,8 @@
#include <string_view>
#include "engine/FGL_DEFINES.hpp"
#include "imgui.h"
#include "libFGL/include/fgl/defines.hpp"
namespace ImGui
{