Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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";
        }
Exemplo n.º 3
0
        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);
        }