Skip to main content

InventoryThemeUI.OpenTransferWindow

Declaration#

public ThemeWindowUI OpenTransferWindow(Inventory other, ItemContainer otherContainer, Action onClosedCallback, string id)

Parameters#

NameDescription
otherInventory of other object (not player)
otherContainerItem Container of other object (not player)
onClosedCallbackAction to invoke when window is closed
idId of a specific window to use (first found if Id is null)

Description#

Opens a Transfer window

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InventoryThemeUI target, ItemContainer other)    {        target.OpenTransferWindow(target.inventory, other, WindowWasClosed, "optionalId");    }
    private void WindowWasClosed() { }}