public static void CreateWindow(vItemListData itemList, int firtItemSelected)
        {
            vItemListWindow window = (vItemListWindow)EditorWindow.GetWindow(typeof(vItemListWindow), false, "ItemList Editor");

            Instance        = window;
            window.itemList = itemList;
            LoadSkin(window);
            Instance.Init(firtItemSelected);
        }
Пример #2
0
        public static void CreateWindow(vItemListData itemList, int firtItemSelected)
        {
            vItemListWindow window = (vItemListWindow)EditorWindow.GetWindow(typeof(vItemListWindow), false, "ItemList Editor");

            Instance        = window;
            window.itemList = itemList;
            window.skin     = Resources.Load("vSkin") as GUISkin;
            Instance.Init(firtItemSelected);
        }
Пример #3
0
        public static void CreateWindow(vItemListData itemList, System.Action <int> OnSelectItem)
        {
            vItemListWindow window = (vItemListWindow)EditorWindow.CreateInstance <vItemListWindow>();

            //  Instance = window;
            window.itemList     = itemList;
            window.skin         = Resources.Load("vSkin") as GUISkin;
            window.OnSelectItem = OnSelectItem;
            window.titleContent = new GUIContent("ItemList Selector");
            window.Show();
            window.Init();
        }
 protected static void LoadSkin(vItemListWindow window)
 {
     window.skin = Resources.Load("vSkin") as GUISkin;
 }