ItemManager
The base class for all ItemManagers.
Properties
Visible
This item is read only and cannot be modified. Read OnlyItemManager.Visible:
boolean
If the ItemManager is visible or not, disables all interactions with Items. Should not be edited, use ItemManager:SetVisibility()
to change it.
VisibilityChanged
This item is read only and cannot be modified. Read OnlySignalItemManager.VisibilityChanged:
RBXScriptSignal
An event signal that fires every time the ItemManager's visibility changes.
Highlights
This item is read only and cannot be modified. Read OnlyItemManager.Highlights:
{
HighlightObject
}
All of the Highlights that are currently on the ItemManager. Use ItemManager:CreateHighlight()
, ItemManager:AddHighlight()
or ItemManager:RemoveHighlight()
to edit.
ConnectedTransferLinks
This item is read only and cannot be modified. Read OnlyItemManager.ConnectedTransferLinks:
{
TransferLinkObject
}
All of the TransferLinks that are currently connected to the ItemManager.
TransferLinkConnected
This item is read only and cannot be modified. Read OnlySignalItemManager.TransferLinkConnected:
RBXScriptSignal
An event signal that fires every time a new TransferLink is connected to the ItemManager.
TransferLinkDisconnected
This item is read only and cannot be modified. Read OnlySignalItemManager.TransferLinkDisconnected:
RBXScriptSignal
An event signal that fires every time a new TransferLink is disconnected from the ItemManager.
Metadata
ItemManager.Metadata:
{
any
}
Any custom data that you would want to store.
Functions
GetOffset
Gets the AbsolutePosition property from the ItemManager's GUI element.
GetSizeScale
Gets the AbsoluteSize of one slot.
GetAbsoluteSizeFromItemSize
Gets the AbsoluteSize of an Item with the ItemManager's size scale.
GetItemManagerPositionFromAbsolutePosition
Converts an AbsolutePosition to a ItemManager position.
IsColliding
ItemManager:
IsColliding
(
) →
boolean
Checks if an Item is colliding. Use the at
parameter to override the collision check position, else it will use the Item's position.
RemoveItem
ItemManager:
RemoveItem
(
item:
Types.ItemObject
) →
(
)
Removes an item from the ItemManager.
SetVisibility
ItemManager:
SetVisibility
(
isVisible:
boolean
) →
(
)
Sets the visibility property on all GUI elements and disables interactivity on all Items in the ItemManager.
ConnectTransferLink
ItemManager:
ConnectTransferLink
(
transferLink:
Types.TransferLinkObject
) →
(
)
Connect a TranferLink. Allows tranferring Items between all of the ItemManagers that the TransferLink is connected to.
DisconnectTransferLink
ItemManager:
DisconnectTransferLink
(
transferLink:
Types.TransferLinkObject
) →
(
)
Disconnect a TransferLink.
CreateHighlight
ItemManager:
CreateHighlight
(
) →
Types.HighlightObject
Creates a new Highlight, used for highlighting where an Item will be dropped. Highlights are not only limited to Item dropping and can be used to highlight anything!
Use ItemManager:AddHighlight()
to add an already existing highlight.
AddHighlight
ItemManager:
AddHighlight
(
priority:
number
,
highlight:
Types.HighlightObject
) →
(
)
Adds an already existing highlight, use ItemManager:CreateHighlight()
to create a new Highlight.
RemoveHighlight
ItemManager:
RemoveHighlight
(
highlight:
Types.HighlightObject
) →
(
)
Removes a Highlight from the ItemManager.
Destroy
ItemManager:
Destroy
(
) →
(
)
Destroys the ItemManager.