Skip to content
Version 2.11.0
↓ Get the launcher

IRenderGated interface

The single source of truth for whether a window should draw. The framework enacts hide = !ShouldRender() each apply (~10 Hz) — a pull, not a stored flag — so the plugin owns the decision and the framework only flips SetActive. Implemented by WindowSpec, carrying a compiler-requiredShouldRender so omitting it fails the build (the interface just declares the getter; required lives on the record).

public interface IRenderGated
name description
ShouldRender { get; } Returns true to draw, false to hide. Reads whatever it wants — GamePhase, GameUIState, the plugin’s own state — via the plugin’s captured services.