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 SourceItemSlotButtonPressedEvent(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 SourceSlotId
The name of the slot/container from which to insert or eject an item.
Declaration
public string SlotId
Field Value
Type | Description |
---|---|
System.String |
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 |
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 |