/**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(InventoryManager _inventoryManager)
        {
            if (_inventoryManager == null)
            {
                return;
            }

            InvItemExportWizardWindow window = EditorWindow.GetWindowWithRect <InvItemExportWizardWindow> (new Rect(0, 0, 350, 500), true, "Inventory item exporter", true);

            UnityVersionHandler.SetWindowTitle(window, "Inventory item exporter");
            window.position = new Rect(300, 200, 350, 500);
            window._Init(_inventoryManager);
        }
示例#2
0
        /**
         * <summary>Initialises the window.</summary>
         */
        public static void Init(InventoryManager _inventoryManager)
        {
            if (_inventoryManager == null)
            {
                return;
            }

            InvItemExportWizardWindow window = EditorWindow.GetWindowWithRect <InvItemExportWizardWindow> (new Rect(0, 0, 350, 500), true, "Inventory item exporter", true);

            window.titleContent.text = "Inventory item exporter";
            window.position          = new Rect(300, 200, 350, 500);
            window._Init(_inventoryManager);
        }