public static void CreatePanels() { var pm = PanelManager; pm["Files"].Content = Files = new(); pm["Outline"].Content = Outline = new(); pm["Cookbook"].Content = Cookbook = new(); pm["Open"].Content = Open = new(); pm["Tasks"].Content = Tasks = new(); pm["Find"].Content = Find = new(); pm["Output"].Content = Output = new(); pm["Mouse"].Content = Mouse = new(); pm["Found"].Content = Found = new(); pm["Recipe"].Content = Recipe = new(); pm["documents"].Content = Editor = new(); //DocPlaceholder_ = pm["documents"]; var ti1 = Panels.PanelManager[Panels.Files].Parent.TabItem; if (ti1 != null) { ti1.MinWidth = 56; //make Files tabitem wider } }
void Awake() { streamingAssetsPath = Application.streamingAssetsPath; panelFiles = fileModalOpen.GetComponent <PanelFiles>(); CloseFileMenu(); }