private void Init(AssetGraphController c, Model.NodeData data) { _assetGraphGuiConfig = AssetGraphGuiConfig.LoadGraphicsSettings(); m_nodeWindowId = 0; m_controller = c; m_graph = m_controller.TargetGraph; m_data = data; name = m_data.Name; m_baseRect = new Rect(m_data.X, m_data.Y, _assetGraphGuiConfig.NODE_BASE_WIDTH, _assetGraphGuiConfig.NODE_BASE_HEIGHT); m_nodeSyle = data.Operation.Object.InactiveStyle; }
private void Init(Model.ConnectionData data, Model.ConnectionPointData output, Model.ConnectionPointData input) { UnityEngine.Assertions.Assert.IsTrue(output.IsOutput, "Given Output point is not output."); UnityEngine.Assertions.Assert.IsTrue(input.IsInput, "Given Input point is not input."); _assetGraphGuiConfig = AssetGraphGuiConfig.LoadGraphicsSettings(); m_data = data; m_outputPoint = output; m_inputPoint = input; this.name = m_data.Label; m_groupViewContext = new GroupViewContext(); m_connectionButtonStyle = "sv_label_0"; }
public void OnEnable(Rect pos, EditorWindow parent) { _assetGraphGuiConfig = new AssetGraphGuiConfig(); m_Parent = parent; m_Position = pos; m_HorizontalSplitterRect = new Rect( (int)(m_Position.x + m_Position.width * m_HorizontalSplitterPercent), m_Position.y, k_SplitterWidth, m_Position.height); m_GraphCollectionTreeState = new TreeViewState(); m_collectionTree = new GraphCollectionTree(m_GraphCollectionTreeState, this); m_GraphCollectionDetailTreeState = new TreeViewState(); m_detailTree = new GraphCollectionDetailTree(m_GraphCollectionDetailTreeState, this); m_collectionTree.Reload(); m_detailTree.Reload(); }
private void Init() { _assetGraphGuiConfig = AssetGraphGuiConfig.LoadGraphicsSettings(); this.titleContent = new GUIContent("Asset Log"); this.minSize = new Vector2(150f, 100f); m_errorIcon = EditorGUIUtility.Load("icons/console.erroricon.sml.png") as Texture2D; m_infoIcon = EditorGUIUtility.Load("icons/console.infoicon.sml.png") as Texture2D; m_showError = true; m_showInfo = true; m_clearOnBuild = UserPreference.Preferences._clearAssetLogOnBuild; m_logViewController = new AssetProcessEventLogViewController(); m_search = new SearchField(); AssetProcessEventRecord.GetRecord().SetFilterCondition(m_showInfo, m_showError); AssetProcessEventRecord.GetRecord().SetFilterKeyword(string.Empty); }