public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
            m_Angle.SliderLabel(this, "Angle");//,m_Value1, -180.0f, 180.0f) ;//,new GUIContent("Red", "Float"), m_R);

            m_Uniform = GUILayout.Toggle(m_Uniform, "Uniform Scale:");

            EditorGUI.indentLevel++;
            m_ScaleX.SliderLabel(this, m_Uniform ? "Scale": "ScaleX");//, m_Value2);//, -10.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
            //        m_NonUniform = EditorGUILayout.BeginToggle("NonUniform Scale:", m_NonUniform);
            GUI.enabled = !m_Uniform;
            m_ScaleY.SliderLabel(this, "ScaleY");//, -10, 10.0f);

            GUI.enabled = true;
            EditorGUI.indentLevel--;
            //        EditorGUILayout.EndToggleGroup();
            if (m_Uniform)
            {
                m_ScaleY.Set(m_ScaleX);
            }


            m_OffsetX.SliderLabel(this, "OffsetX"); //, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
            m_OffsetY.SliderLabel(this, "OffsetY"); //, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
        }
Esempio n. 2
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
            m_Mesh = (Mesh)EditorGUILayout.ObjectField(m_Mesh, typeof(Mesh), false, GUILayout.MinWidth(200), GUILayout.MinHeight(50));

            m_MaterialIndex.SliderLabelInt(this, "Seed");
            m_EdgeAngleDif.SliderLabel(this, "Edge Angle Limit");
        }
Esempio n. 3
0
 public override void DrawNodePropertyEditor()
 {
     base.DrawNodePropertyEditor();
     m_Radius.SliderLabel(this, "Radius");
     m_Length.SliderLabel(this, "Height");
     m_Sides.SliderLabelInt(this, "Sides");
     m_SubDivide.SliderLabelInt(this, "vertical SubDivide");
 }
 public override void DrawNodePropertyEditor()
 {
     base.DrawNodePropertyEditor();
     m_Value1.SliderLabel(this, "Dist");                       //, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_Value2.SliderLabel(this, "Min Edge Val to Find");       //, -1.0f, 1.0f); //,new GUIContent("Red", "Float"), m_R);
     m_Value3.SliderLabel(this, "Prob To add adjacent pixel"); //, -1.0f, 1.0f); //,new GUIContent("Red", "Float"), m_R);
     m_DestMin.SliderLabel(this, "Dest Min Add Mask");
 }
Esempio n. 5
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();

            m_Scale.SliderLabel(this, "Scale");
            m_ScaleFromX.SliderLabel(this, "ScaleFromX");
            m_ScaleFromY.SliderLabel(this, "ScaleFromY");
            m_ScaleFromZ.SliderLabel(this, "ScaleFromZ");
        }
Esempio n. 6
0
 public override void DrawNodePropertyEditor()
 {
     base.DrawNodePropertyEditor();
     m_OpType = (MathOp)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Type", "The type of calculation performed on Input 1"), m_OpType, GUILayout.MaxWidth(200));
     //TODO implement local function, get rid of enum
     if (m_OpType == MathOp.SmoothMasked)
     {
         m_Value.SliderLabel(this, "Smooth Dist:");//, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     }
     if (m_OpType == MathOp.Blend)
     {
         m_Value.SliderLabel(this, "Blend:");//, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     }
     if (m_OpType == MathOp.SrcBlend)
     {
         m_Value.SliderLabel(this, "AlphaMult:");//, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     }
     PostDrawNodePropertyEditor();
 }
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
            m_Value1.SliderLabel(this, "Dist");
            m_Value2.SliderLabel(this, "Steps");

            m_Value.SliderLabel(this, "GradientMult");
            m_Value3.SliderLabel(this, "normal Average Area");

            PostDrawNodePropertyEditor();
        }
Esempio n. 8
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
            //m_TexMode = (TexMode)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Colors", "3 components per texture or one"), m_TexMode, GUILayout.MaxWidth(200));

//        m_Value1 = RTEditorGUI.Slider(m_Value1, -100.0f, 100.0f);//,new GUIContent("Red", "Float"), m_R);
            m_RemapCurve  = EditorGUILayout.CurveField(m_RemapCurve);
            m_RemapCurveY = EditorGUILayout.CurveField(m_RemapCurveY);
            m_RepeatX.SliderLabel(this, "RepeatX"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
            m_RepeatY.SliderLabel(this, "RepeatY"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
        }
 public override void DrawNodePropertyEditor()
 {
     base.DrawNodePropertyEditor();
     m_Value1.SliderLabel(this, "Seed");                   //, -10000.0f, 10000.0f) ;//,new GUIContent("Red", "Float"), m_R);
     //m_Value2.SliderLabel(this,"Randomize");//, 0.001f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_Value3.SliderLabelInt(this, "Repeat");              //, 1, 100);//,new GUIContent("Red", "Float"), m_R);
     m_Probability.SliderLabel(this, "Probability Black"); //, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_OffsetX.SliderLabel(this, "Random OffsetX");        //, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_OffsetY.SliderLabel(this, "Random OffsetY");        //, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_OffsetRow.SliderLabel(this, "Random OffsetRow");    //, -1.0f, 1.0f);//,new GUIContent("Red", "Float"), m_R);
     m_Angle.SliderLabel(this, "RandomAngleScale");
     m_ScaleMin.SliderLabel(this, "RandomZoomScaleMin");
     m_ScaleMax.SliderLabel(this, "RandomZoomScaleMax");
     m_Brightness.SliderLabel(this, "Brightness Randomness");
 }
Esempio n. 10
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
            m_Value1.SliderLabel(this, "Seed");              //, -10000.0f, 10000.0f) ;//,new GUIContent("Red", "Float"), m_R);
//        m_Value2.SliderLabel(this,"Scale Out");//, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
            m_Value3.SliderLabelInt(this, "Count");          //, 0, 100);//,new GUIContent("Red", "Float"), m_R);
            m_BrightnessMin.SliderLabel(this, "Bright Min"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
            m_BrightnessMax.SliderLabel(this, "Bright Max"); //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);

            m_ScaleMin.SliderLabel(this, "Scale Min");       //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
            m_ScaleMax.SliderLabel(this, "Scale Max");       //, 0.0f, 50.0f);//,new GUIContent("Red", "Float"), m_R);
            m_Value2.m_Value = m_ScaleMin.m_Value;
            m_SumMode        = (SumMode)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Sum Type", "blending the overlays"), m_SumMode, GUILayout.MaxWidth(200));


            //        m_OffsetX.SliderLabel(this,"OffsetX", m_OffsetX, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
            //        m_OffsetY.SliderLabel(this,"OffsetY", m_OffsetY, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
        }
Esempio n. 11
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();

            m_Seed.SliderLabelInt(this, "Seed");
            m_Sides.SliderLabelInt(this, "SideCount");
            m_Radius.SliderLabel(this, "Radius");
            m_X.SliderLabel(this, "Mid X");
            m_Y.SliderLabel(this, "Mid Y");

            m_RandomizeVertPos.SliderLabel(this, "Randomize vert Positions");
            m_RandomizeRadius.SliderLabel(this, "Randomize radius per vert");

            m_OuterBrightness.SliderLabel(this, "Outer Brightness");
            m_InnerBrightness.SliderLabel(this, "Inner Brightness");


            m_RandomizeOuterBrightness.SliderLabel(this, "Randomize Outer Brightness (add)");
            m_RandomizeInnerBrightness.SliderLabel(this, "Randomize Inner Brightness (add)");

            m_IncrementBrightnessPerVert.SliderLabel(this, "Increment Brightness Per Vert)");
        }
Esempio n. 12
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();
//            m_Angle.SliderLabel(this,"Angle");//,m_Value1, -180.0f, 180.0f) ;//,new GUIContent("Red", "Float"), m_R);



            EditorGUI.indentLevel++;
            m_TopX.SliderLabel(this, "BottomWidth"); //, m_Value2);//, -10.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
            //        m_NonUniform = EditorGUILayout.BeginToggle("NonUniform Scale:", m_NonUniform);

            m_BottomX.SliderLabel(this, "TopWidth");   //, -10, 10.0f);
            m_LeftY.SliderLabel(this, "LeftHeight");   //, -10, 10.0f);
            m_RightY.SliderLabel(this, "RightHeight"); //, -10, 10.0f);


            GUI.enabled = true;
            EditorGUI.indentLevel--;
            //        EditorGUILayout.EndToggleGroup();


            m_OffsetX.SliderLabel(this, "OffsetX"); //, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
            m_OffsetY.SliderLabel(this, "OffsetY"); //, 0.0f, 10.0f);//,new GUIContent("Red", "Float"), m_R);
        }
Esempio n. 13
0
 public override void DrawNodePropertyEditor()
 {
     base.DrawNodePropertyEditor();
     m_Value1.SliderLabel(this, "strength");//, -100.0f, 100.0f);
 }
Esempio n. 14
0
        public override void DrawNodePropertyEditor()
        {
            base.DrawNodePropertyEditor();

            m_ScaleTwist.SliderLabel(this, "ScaleTwist");
        }
Esempio n. 15
0
        public override void DrawNodePropertyEditor()
        {
            //GUI.changed = false;
            if (GUILayout.Button("save png"))
            {
                ms_PathName = EditorUtility.SaveFilePanel("SavePNG", "Assets/", ms_PathName, "png");

                m_Param.SavePNG(ms_PathName, m_Param.m_Width, m_Param.m_Height);
            }
            m_TexMode    = (TexMode)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Colors", "3 components per texture or one"), m_TexMode, GUILayout.MaxWidth(300));
            m_PixelDepth = (ChannelType)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Pixel Depth", "Bytes Per pixel/accuracy"), m_PixelDepth, GUILayout.MaxWidth(300));
            m_ShowNames  = EditorGUILayout.Foldout(m_ShowNames, "Input Rename:");
            if (m_ShowNames)
            {
                foreach (var x in Inputs)
                {
                    if (x == null)
                    {
                        continue;
                    }
                    GUILayout.BeginHorizontal();
                    x.name = (string)GUILayout.TextField(x.name);
                    GUILayout.EndHorizontal();
                }
            }

            EditorGUILayout.LabelField("TexWidth");
            m_TexWidth = (int)EditorGUILayout.Slider(m_TexWidth, 1.0f, 2048.0f);
            EditorGUILayout.LabelField("TexHeight");
            m_TexHeight = (int)EditorGUILayout.Slider(m_TexHeight, 1.0f, 2048.0f);
            GUI.skin.button.wordWrap = true;
            //EditorGUI.TextArea(new Rect(10, 10, 200, 100),"Info: " +GetHelp());
//        Rect r=EditorGUILayout.BeginVertical(GUILayout.Height(100), GUILayout.Width(100));
            GUILayout.TextArea("Info: " + GetHelp(), GUILayout.Height(100), GUILayout.Width(300));
//        EditorGUILayout.EndVertical();

/*
 *      if (m_Param!=null)
 *          GUILayout.Label("outParam: Width: " + m_Param.m_Width + "outParam: Height: " + m_Param.m_Height);
 *
 *      if (m_Param != null && m_Param.m_Destination!=null)
 *          GUILayout.Label("HWDest: Width: " + m_Param.m_Destination.width + "HWDest: Height: " + m_Param.m_Destination.height+" fmt:"+ m_Param.m_Destination.format, EditorStyles.wordWrappedLabel);
 */
            m_Saturate     = GUILayout.Toggle(m_Saturate, "Clip result to 0..1");
            m_Abs          = GUILayout.Toggle(m_Abs, "Flip negative to positive (Abs)");
            m_Filter       = GUILayout.Toggle(m_Filter, "Apply Filtering when reading this nodes texture");
            m_ClampInputUV = GUILayout.Toggle(m_ClampInputUV, "Clamp Input UV");
            m_InvertInput  = GUILayout.Toggle(m_InvertInput, "Invert Input");
            m_InvertOutput = GUILayout.Toggle(m_InvertOutput, "Invert Output");


            m_ShowLevels = EditorGUILayout.Foldout(m_ShowLevels, "Levels:");
            if (m_ShowLevels)
            {
                m_InputMin.SliderLabel(this, "Scale Output In Min");
                m_InputMax.SliderLabel(this, "Scale Output In Max");
                m_OutputMin.SliderLabel(this, "Scale Output Out Min");
                m_OutputGamma.SliderLabel(this, "Scale Output Gamma");
                m_OutputMax.SliderLabel(this, "Scale Output Out Max");
            }


            EditorGUILayout.Space();
            RTEditorGUI.Seperator();
        }