API reference Obsidian.API.Client.Screens
IClientScreens interface
Opens a mod's screens: IClientRegistry.Screens.
public interface IClientScreens
In Obsidian.API.Client.
Methods
Open(ModScreen)
void Open(ModScreen screen);Opens a screen of the mod's over the game, or over the screen shown, which Escape goes back to. It opens on the game's thread, so from another (like a payload handler's) it opens shortly after.
Open<TComponent>(IReadOnlyDictionary<string, object>)
void Open<TComponent>(IReadOnlyDictionary<string, object> parameters = null) where TComponent : ModComponent;Opens a screen of the mod's built in Razor, like IClientScreens.Open: a new TComponent, given parameters and the screen's ScreenContext.
Parameters
parameters- The component's parameters by name, copied as it opens; null for none.