Table of Contents

Class EventsUI

Namespace
Squiggles.Core.Events
Assembly
SquigglesCommon4X.dll
public class EventsUI
Inheritance
EventsUI
Inherited Members

Methods

TriggerAbleToInteract(string)

public void TriggerAbleToInteract(string text)

Parameters

text string

TriggerInventoryResized(int)

public void TriggerInventoryResized(int slots)

Parameters

slots int

TriggerPlayerInventorySelect(int)

public void TriggerPlayerInventorySelect(int index)

Parameters

index int

TriggerRequestAlert(string)

Triggers RequestAlert

public void TriggerRequestAlert(string text)

Parameters

text string

TriggerRequestCloseGUI()

Triggers RequestCloseGUI

public void TriggerRequestCloseGUI()

TriggerRequestGUI(Control)

Triggers RequestGUI

public void TriggerRequestGUI(Control gui_node)

Parameters

gui_node Control

TriggerRequestInventory(object, object)

public void TriggerRequestInventory(object playerContainer, object secondaryContainer = null)

Parameters

playerContainer object
secondaryContainer object

TriggerRequestSubtitle(string)

Triggers RequestSubtitle

public void TriggerRequestSubtitle(string text)

Parameters

text string

TriggerUnableToInteract()

public void TriggerUnableToInteract()

TriggerUpdatePlayeInventoryDisplay(int, string, int)

public void TriggerUpdatePlayeInventoryDisplay(int index, string item, int qty)

Parameters

index int
item string
qty int

Events

MarkAbleToInteract

Called to signal that the player is currently able to interact with something. Handled by DefaultHUD

public event Action<string> MarkAbleToInteract

Event Type

Action<string>

MarkUnableToInteract

Called to signal that the player is no-longer able to interact with something. Handled by DefaultHUD

public event Action MarkUnableToInteract

Event Type

Action

PlayerInventorySelectIndex

Call to force selection of a specific index in the player inventory

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<int> PlayerInventorySelectIndex

Event Type

Action<int>

PlayerInventorySizeChange

Called when the player's inventory size changes. (number of slots total)

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<int> PlayerInventorySizeChange

Event Type

Action<int>

RequestAlert

Called to request an alert pop-up. Handled by DefaultHUD

public event Action<string> RequestAlert

Event Type

Action<string>

RequestCloseGUI

Called to request a GUI close. This includes custom GUIs from RequestGUI. Handled by DefaultHUD

public event Action RequestCloseGUI

Event Type

Action

RequestGUI

Called when a generic GUI element is requested. DefaultHUD handles this event to display any generic GUI component requested.

public event Action<Control> RequestGUI

Event Type

Action<Control>

RequestInventory

Called to request display of one or two inventories. The players and a secondary inventory respectively. Not currently used internally. Will be removed in future

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<object, object> RequestInventory

Event Type

Action<object, object>

RequestSubtitle

Called to request a subtitle. Handled by DefaultHUD

public event Action<string> RequestSubtitle

Event Type

Action<string>

UpdatePlayerInventoryDisplay

Called to update the player inventory display. (item index, item id, item quantity)

[MarkForRefactor("Obselete", "Will be removed in future refactor. No current workaround")]
public event Action<int, string, int> UpdatePlayerInventoryDisplay

Event Type

Action<int, string, int>