InventoryThemeUI.OpenWindow
Declaration#
public ThemeWindowUI OpenWindow(string id, Object[] args)Parameters#
| Name | Description |
|---|---|
| id | Id of window to open |
| args | Parameters 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#
| Name | Description |
|---|---|
| windowType | Type of window to open |
| id | Id to use (if found) |
| args | Parameters 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#
| Name | Description |
|---|---|
| window | Window to open |
| args | Parameters 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#
| Name | Description |
|---|---|
| windowType | Type of window to open |
| args | Parameters 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); }
}