Show / Hide Table of Contents

Class Game.UI

Provides methods to interact with the game UI.

Inheritance
Object
Game.UI
Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public static class UI

Methods

OpenBlockTab(Game.UI.BlockTab)

Open the specified official block tab.

Declaration
public static void OpenBlockTab(Game.UI.BlockTab tab)
Parameters
Type Name Description
Game.UI.BlockTab tab

OpenLevelCategory(StatMaster.Category)

Open the specified level editor category. No-op if not in MP.

Declaration
public static void OpenLevelCategory(StatMaster.Category cat)
Parameters
Type Name Description
StatMaster.Category cat

OpenModdedBlockTab(Int32)

Open a modded block tab. These are numbered sequentially, starting at 0.

Declaration
public static void OpenModdedBlockTab(int tab)
Parameters
Type Name Description
Int32 tab

SelectBlockPrefab(BlockType)

Select the specified official block type for building. Also opens the correct tab for the block type.

Declaration
public static void SelectBlockPrefab(BlockType type)
Parameters
Type Name Description
BlockType type

SelectBlockPrefab(BlockPrefabInfo)

Select the specified block prefab/type for building. Also opens the correct tab for the block type.

Declaration
public static void SelectBlockPrefab(BlockPrefabInfo prefab)
Parameters
Type Name Description
BlockPrefabInfo prefab

SelectBlockPrefab(Guid, Int32)

Select the specified modded block type for building. Modded block types are represented by their (modId, localId) pair. Also opens the correct tab for the block type.

Declaration
public static void SelectBlockPrefab(Guid modId, int localId)
Parameters
Type Name Description
Guid modId
Int32 localId

SelectEntityPrefab(EntityPrefabInfo)

Select the specified entity prefab/type for placing in the level editor. Also opens the correct category for the entity type. No-op if not in MP.

Declaration
public static void SelectEntityPrefab(EntityPrefabInfo prefab)
Parameters
Type Name Description
EntityPrefabInfo prefab

SelectEntityPrefab(Guid, Int32)

Select the specified modded entity type for placing in the level editor. Modded entity types are represented by their (modId, localId) pair. Also opens the correct category for the entity type. No-op if not in MP.

Declaration
public static void SelectEntityPrefab(Guid modId, int localId)
Parameters
Type Name Description
Guid modId
Int32 localId

SelectEntityPrefab(Int32)

Select the specified official entity type for placing in the level editor. Also opens the correct category for the entity type. No-op if not in MP.

Declaration
public static void SelectEntityPrefab(int id)
Parameters
Type Name Description
Int32 id
Back to top Generated by DocFX