//GUIStyle curLabelStyle, curbuttonStyle; void StartLoadDialog(ParentWin pWin, Rect r) { fsDialog = gameObject.AddComponent <FileSelection>(); fsDialog.SetExtensions(FileIO.SUFFIX); fsDialog.parentRect = r; fsDialog.pWin = pWin; dialogEntry = null; Log.Info("KeoScenario.Instance.lastDirectory: " + KeoScenario.Instance.lastDirectory); fsDialog.SetSelectedDirectory(KeoScenario.Instance.lastDirectory, false); fsDialog.startDialog(); }
internal Rect GetParentRect(ParentWin pWin) { switch (pWin) { case ParentWin.import: return(importwinRect); case ParentWin.collection: return(collectionWinRect); } return(new Rect()); }
internal void UpdateParentWin(ParentWin pWin, Rect r) { switch (pWin) { case ParentWin.import: importwinRect = r; break; case ParentWin.collection: collectionWinRect = r; break; } }