Skip to main content

WindowsManager.cs

class SoftKitty.InventoryEngine.WindowsManager

This script manages all UI windows.

Properties

public static bool anyWindowExists

Returns true if there is any UI window exists.


public static UiWindow ActiveWindow

Returns the UI window in front of all other windows.


Methods:

public static void CloseAllWindows()

Close all opened windows.


public static UiWindow GetWindow(string _prefabName,InventoryData _inventory_, bool _bringToTop=true)

Open an window by the UI prefab name and the InventoryData, you can find the prefabs in SoftKitty/InventoryEngine/Resources/InventoryEngine/UiWindows/


public static bool isWindowOpen(InventoryData _key)

Check if the window of an InventoryData is opened.


public static UiWindow getOpenedWindow(InventoryData _key)

Returns the window class by an InventoryData as the key.