Rework how replicators are spawned to simplify Cog integration

- Replicators are now automatically spawned
- Rework input management.
- Add input shortcuts in the TimeScale window to change the time scale.
This commit is contained in:
Arnaud Jamin
2025-03-19 12:59:37 -04:00
parent 3c2428ca8f
commit 810c51ac13
31 changed files with 880 additions and 436 deletions
@@ -372,7 +372,7 @@ void FCogInputWindow_Gamepad::RenderContent()
const ImVec2 ContentMin = ImGui::GetCursorScreenPos();
const ImVec2 ContentSize = ImGui::GetContentRegionAvail();
const ImVec2 ContentMax = ContentMin + ContentSize;
const ImVec2 OverlayOffset = ImVec2(0.0f, Config->bShowAsOverlay ? ImGui::GetFrameHeight() : 0.0f);
const ImVec2 OverlayOffset = ImVec2(0.0f, Config->bShowAsOverlay && IsWindowRenderedInMainMenu() == false ? ImGui::GetFrameHeight() : 0.0f);
const ImVec2 Padding = ImVec2(Config->Border * 0.5f * ContentSize.x, Config->Border * 0.5f * ContentSize.x);
CanvasMin = ContentMin + OverlayOffset + Padding;