public void RefreshData(bool hardRefresh = true) { ClearEditor(); EditMode = false; dataReader = new ViewSystemDataReaderV2(this); isInit = dataReader.Init(); saveData = ((ViewSystemDataReaderV2)dataReader).GetSaveData(); inspector = new ViewSystemNodeInspector(this); //ViewControllerRoot = ((ViewSystemDataReaderV2)dataReader).GetViewControllerRoot(); globalSettingWindow = new ViewSystemGlobalSettingWindow("Global Setting", this, (ViewSystemDataReaderV2)dataReader); viewPageOrderWindow = new ViewPageOrderWindow("Overlay Order", this, (ViewSystemDataReaderV2)dataReader); overridePopupWindow = new OverridePopupWindow("Override", this, inspector); navigationWindow = new ViewPageNavigationWindow("Navigation Setting", this); viewSystemVerifier = new ViewSystemVerifier(this, saveData); breakpointWindow = new ViewBreakpointWindow("Break Point Setting", this); viewStatesPopup.Add("All"); viewStatesPopup.Add("Overlay Only"); viewStatesPopup.AddRange(viewStateList.Select(m => m.viewState.name)); if (hardRefresh == false && lastSelectNode != null) { inspector.SetCurrentSelectItem(lastSelectNode); } dataReader.EditEnd(); CanEnterEditMode = true; }
public ViewSystemGlobalSettingWindow(string name, ViewSystemVisualEditor editor, ViewSystemDataReaderV2 dataReader) : base(name, editor) { this.dataReader = dataReader; m_ShowEventScript = new AnimBool(true); m_ShowUserBreakPoints = new AnimBool(true); m_ShowEventScript.valueChanged.AddListener(editor.Repaint); m_ShowUserBreakPoints.valueChanged.AddListener(editor.Repaint); }
public ViewPageOrderWindow(string name, ViewSystemVisualEditor editor, ViewSystemDataReaderV2 dataReader) : base(name, editor) { this.dataReader = dataReader; RebuildList(); }