Developer overlay from isaac-classic (ISAAC_OVERLAY, on by default): Dear ImGui docking (external/imgui), Unifont and Font Awesome in assets/fonts through git-lfs; Console, Game Options, Mods and Debug windows replace the drop-down console, always available, with no effect on EnableDebugConsole or achievements, and off under the harness. Resource paths: the game folder's own resources/ prefix and an absolute --resources directory resolve (the Fart animation failed to load with --resources)
This commit is contained in:
1 parent
2e30446824
commit
78cb0775b0
28 files changed
+1563
-100
No files matched your search
@@ -65,13 +65,34 @@ target_include_directories(theora SYSTEM PUBLIC external/theora/include)
|
||||
target_link_libraries(theora PUBLIC ogg)
|
||||
target_compile_options(theora PRIVATE -w)
|
||||
|
||||
# The developer overlay (src/ui/overlay/) in place of the drop-down console, on Dear ImGui's docking branch: its core,
|
||||
# the std::string widgets and the SDL3 and OpenGL 3 backends, static. OFF builds the game without either.
|
||||
option(ISAAC_OVERLAY "Build the developer overlay in place of the drop-down console" ON)
|
||||
if(ISAAC_OVERLAY)
|
||||
set(IMGUI_SOURCES imgui imgui_draw imgui_tables imgui_widgets misc/cpp/imgui_stdlib backends/imgui_impl_sdl3
|
||||
backends/imgui_impl_opengl3)
|
||||
list(TRANSFORM IMGUI_SOURCES PREPEND external/imgui/)
|
||||
list(TRANSFORM IMGUI_SOURCES APPEND .cpp)
|
||||
add_library(imgui STATIC ${IMGUI_SOURCES})
|
||||
target_include_directories(imgui SYSTEM PUBLIC external/imgui external/imgui/backends external/imgui/misc/cpp)
|
||||
target_link_libraries(imgui PRIVATE SDL3::SDL3-static ${CMAKE_DL_LIBS})
|
||||
target_compile_options(imgui PRIVATE -w)
|
||||
endif()
|
||||
|
||||
# The curated game: every .cpp under src/, sorted into subsystem folders and including each other by path from src/,
|
||||
# written on top of the declarations generated-src/classes.h holds for every class.
|
||||
# generated-src/'s own bodies stay out until they compile (scripts/source_tree.py --check reports how many do).
|
||||
# generated-src/stubs.cpp defines everything not curated yet as a stub that stops the game where it is reached, so the
|
||||
# executable always links and runs exactly as far as src/ goes.
|
||||
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp)
|
||||
if(NOT ISAAC_OVERLAY)
|
||||
list(FILTER SOURCES EXCLUDE REGEX "/src/ui/overlay/")
|
||||
endif()
|
||||
add_executable(isaac ${SOURCES} generated-src/stubs.cpp)
|
||||
target_include_directories(isaac PRIVATE src)
|
||||
target_include_directories(isaac SYSTEM PRIVATE generated-src external/stb)
|
||||
target_link_libraries(isaac PRIVATE SDL3::SDL3-static lua simdjson theora vorbis ogg)
|
||||
if(ISAAC_OVERLAY)
|
||||
target_compile_definitions(isaac PRIVATE ISAAC_OVERLAY)
|
||||
target_link_libraries(isaac PRIVATE imgui)
|
||||
endif()
|
||||
Reference in new issue
Block a user