Пример #1
0
        protected override void DrawNodeWindow(int id)
        {
            base.DrawNodeWindow(id);
            SelectTexture();


            Rect rL = new Rect(gap, NodeHeight - 1.84f * (gap + buttonHeight), contentWidth * 0.5f, buttonHeight);
            Rect rR = new Rect(gap + contentWidth * 0.5f, NodeHeight - 1.84f * (gap + buttonHeight), contentWidth * 0.5f, 0.8f * buttonHeight);

            GUI.Label(rL, "Depth", SWEditorUI.Style_Get(SWCustomStyle.eTxtSmallLight));
            var dep = EditorGUI.IntField(rR, "", data.depth);

            if (dep != 0 && dep != data.depth)
            {
                SWUndo.Record(this);
                data.depth = dep;
            }

            if (texture != null)
            {
                if (GUI.Button(rectBotButton, "Edit", SWEditorUI.MainSkin.button))
                {
                    SWWindowEffectImage.ShowEditor(this);
                }
            }
            DrawNodeWindowEnd();
        }
Пример #2
0
 public override void Update()
 {
     Instance = this;
     base.Update();
 }