Esempio n. 1
0
        void Refresh()
        {
            var len = filePaths.arraySize;

            workbooks = new WorkBookData[len];

            for (int i = 0; i < len; i++)
            {
                var path = filePaths.GetArrayElementAtIndex(i).stringValue;
                workbooks[i] = new WorkBookData(path);
            }

            datachanged = false;
        }
        void DrawWorkBookSwitchUI()
        {
            var id = EditorGUILayout.Popup(bookID, workbookTabs, style_popup, GUILayout.Height(20));

            if (bookID != id)
            {
                sheetID = 0;

                bookID = id;

                book = workbooks[bookID];

                SwitchSheet();
            }
        }