Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor Binary and Prerequisites #5611

Merged
merged 14 commits into from
Aug 26, 2023

Conversation

sturnclaw
Copy link
Member

@sturnclaw sturnclaw commented Aug 26, 2023

This pull request adds the basic foundations to support an editor / mod tools pipeline for Pioneer. A new editor binary contains the modelviewer, and provides a framework for common editor paradigms. A fully-functional undo system is provided, as well as various helpers for rendering edit interfaces for various property types.

On its own, this PR does little but change the invocation of the modelviewer from pioneer -mv to editor -mv, but sets the foundation for several branches that will be landing soon which improve the content creation experience for Pioneer, the most notable of which is the new System Editor tool.

TODO:

  • Ensure editor binary is installed via CMake / distributed in release builds
  • Update in-tree documentation to mention new modelviewer invocation

Allows for finer-grained initialization and more control over the startup process.

Also move profiler setup handling to GuiApplication.
Adds a standalone editor binary for tools that shouldn't live inside of the game application.
UndoSystem keeps a consistent view of an application's state by a series of UndoEntries representing user modifications of application state.

UndoSteps represent individual data changes and allow the system to be very flexible in how undo entries are composed.

UndoStepType.h provides some common helper UndoStep implementations for managing variable state.
Minimal "editor app" framework for window control + dependency injection.

ViewportWindow handles the dirty work of embedding a rendering context inside a resizeable ImGui window and managing input.
@sturnclaw sturnclaw merged commit 1430cfc into pioneerspacesim:master Aug 26, 2023
4 of 5 checks passed
@sturnclaw sturnclaw deleted the editor-prerequisite branch August 26, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant