mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-05 15:18:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user