Skip to main content

InventoryThemeUI.OpenWindow

Declaration#

public ThemeWindowUI OpenWindow(string id, Object[] args)

Parameters#

NameDescription
idId of window to open
argsParameters to pass to window

Description#

Opens a Window (of any type)

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InventoryThemeUI target, string id, object[] args)    {        target.OpenWindow(id, args);    }
}

Declaration#

public ThemeWindowUI OpenWindow(Type windowType, string id, Object[] args)

Parameters#

NameDescription
windowTypeType of window to open
idId to use (if found)
argsParameters to pass to window

Description#

Opens a Window (of specified type)

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InventoryThemeUI target, string id, object[] args)    {        target.OpenWindow(typeof(CraftinWindowUI), id, args);    }
}

Declaration#

public ThemeWindowUI OpenWindow(ThemeWindowUI window, Object[] args)

Parameters#

NameDescription
windowWindow to open
argsParameters to pass to window

Description#

Opens a supplied Window

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InventoryThemeUI target, ThemeWindowUI other, object[] args)    {        target.OpenWindow(other, args);    }

}

Declaration#

public ThemeWindowUI OpenWindow(Type windowType, Object[] args)

Parameters#

NameDescription
windowTypeType of window to open
argsParameters to pass to window

Description#

Opens a Window (of specified type)

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(InventoryThemeUI target, object[] args)    {        target.OpenWindow(typeof(TransferWindowUI), args);    }
}