InventoryThemeUI.OpenTransferWindow
#
Declarationpublic ThemeWindowUI OpenTransferWindow(Inventory other, ItemContainer otherContainer, Action onClosedCallback, string id)
#
ParametersName | Description |
---|---|
other | Inventory of other object (not player) |
otherContainer | Item Container of other object (not player) |
onClosedCallback | Action to invoke when window is closed |
id | Id of a specific window to use (first found if Id is null) |
#
DescriptionOpens a Transfer window
#
Usageusing 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() { }}