private void OnEnable() { // catch refrences appliedSeachFilters = new EditorFilters(); MyData = new SessionData(); // Reload Profiles capturedControllerObj = RuleSystemUtil.CollectRuleSytemObjects(); }
private void OnGUI() { // Update Profiles UpdateCapturedObjs(); // DrawOBJ w/ controllers var potentialOpenedProfile = LibraryLayoutUtil.DrawControllerLayout(capturedControllerObj, WindowUtils.ControlLayout, ref MyData, ref appliedSeachFilters, AdelicSkin); if (potentialOpenedProfile != null) { selectedControllerObj = potentialOpenedProfile; MyData.selectedController = selectedControllerObj; } // If open Profile > DrawOpenProfile if (selectedControllerObj != null) { var potentialOpenedRule = LibraryLayoutUtil.DrawProfileLayout(selectedControllerObj, WindowUtils.ProfileLayout, ref MyData, AdelicSkin); if (potentialOpenedRule != null) { selectedRuleObj = potentialOpenedRule; MyData.selectedRule = selectedRuleObj; } selectedRuleObj = LibraryLayoutUtil.DrawPropertyInfoLayout(selectedControllerObj, selectedRuleObj, WindowUtils.PropertyLayout, RuleWindow2.RequestRuleWindow, ref MyData, AdelicSkin); } else { GUILayout.BeginArea(WindowUtils.ProfileLayout); GUILayout.Label("No Profile Selected..."); GUILayout.EndArea(); } // Handle Events > open profile, Copy profile if (GUI.changed) { // Reload Profiles. capturedControllerObj = RuleSystemUtil.CollectRuleSytemObjects(); // save Apply moddified Changes ApplyModificationCapturedObjs(); } }