InventoryThemeUI.OpenTransferWindow
Declaration#
public ThemeWindowUI OpenTransferWindow(Inventory other, ItemContainer otherContainer, Action onClosedCallback, string id)Parameters#
| Name | 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) |
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() { }}