Show / Hide Table of Contents

Interface IMyGui

ModAPI interface giving access to GUI

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyGui

Properties

ActiveGamePlayScreen

Gets the name of the currently open GUI screen.

Declaration
string ActiveGamePlayScreen { get; }
Property Value
Type Description
System.String

ChatEntryVisible

Checks if the chat entry box is visible.

Declaration
bool ChatEntryVisible { get; }
Property Value
Type Description
System.Boolean

GetCurrentScreen

Gets an enum describing the currently open GUI screen.

Declaration
MyTerminalPageEnum GetCurrentScreen { get; }
Property Value
Type Description
MyTerminalPageEnum

InteractedEntity

Gets the entity the player is currently interacting with.

Declaration
IMyEntity InteractedEntity { get; }
Property Value
Type Description
IMyEntity

IsCursorVisible

Checks if the cursor is visible.

Declaration
bool IsCursorVisible { get; }
Property Value
Type Description
System.Boolean

Methods

ChangeInteractedEntity(IMyEntity, Boolean)

Switches the entity the terminal is activated for.

Declaration
void ChangeInteractedEntity(IMyEntity interactedEntity, bool isRemote)
Parameters
Type Name Description
IMyEntity interactedEntity

The entity the terminal page will be shown for. null for player.

System.Boolean isRemote

If terminal refers to a remote entity (over antenna).

ShowTerminalPage(MyTerminalPageEnum, IMyCharacter, IMyEntity, Boolean)

Shows the terminal and opens a specific tab.

Declaration
void ShowTerminalPage(MyTerminalPageEnum page, IMyCharacter user, IMyEntity interactedEntity = null, bool isRemote = false)
Parameters
Type Name Description
MyTerminalPageEnum page

Tab to open.

IMyCharacter user

The user that will interact with the terminal.

IMyEntity interactedEntity

The entity the terminal page will be shown for. null for player.

System.Boolean isRemote

If terminal refers to a remote entity (over antenna).

Events

GuiControlCreated

Event triggered on gui control created.

Declaration
event Action<object> GuiControlCreated
Event Type
Type Description
System.Action<System.Object>

GuiControlRemoved

Event triggered on gui control removed.

Declaration
event Action<object> GuiControlRemoved
Event Type
Type Description
System.Action<System.Object>
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾