Show / Hide Table of Contents

Class ItemSlotButtonPressedEvent

Used for various "eject this item" buttons.

Inheritance
System.Object
ItemSlotButtonPressedEvent
Namespace: Content.Shared.Containers.ItemSlots
Assembly: Content.Shared.dll
Syntax
public sealed class ItemSlotButtonPressedEvent : BoundUserInterfaceMessage

Constructors

| Improve this Doc View Source

ItemSlotButtonPressedEvent(String, Boolean, Boolean)

Declaration
public ItemSlotButtonPressedEvent(string slotId, bool tryEject = true, bool tryInsert = true)
Parameters
Type Name Description
System.String slotId
System.Boolean tryEject
System.Boolean tryInsert

Fields

| Improve this Doc View Source

SlotId

The name of the slot/container from which to insert or eject an item.

Declaration
public string SlotId
Field Value
Type Description
System.String
| Improve this Doc View Source

TryEject

Whether to attempt to eject the item from the slot, if it has one.

Declaration
public bool TryEject
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

TryInsert

Whether to attempt to insert an item into the slot, if there is not already one inside.

Declaration
public bool TryInsert
Field Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾