Example #1
0
        protected void InitRightUp()
        {
            ePopup_blendMode = new SWEnumPopup(new string[] { "Off", "Blend", "Add", "Mul" }, (int)(data.shaderBlend + 1), null,
                                               delegate(int index)
            {
                SWUndo.Record(this);
                data.shaderBlend = (SWShaderBlend)(index - 1);
            }
                                               );
            ePopup_renderOrder = new SWEnumPopup(typeof(SWShaderQueue), (int)data.shaderQueue, true, null,
                                                 delegate(int index)
            {
                SWUndo.Record(this);
                data.shaderQueue = (SWShaderQueue)index;
            }
                                                 );

            ePopup_renderType = new SWEnumPopup(typeof(SWRenderType), (int)data.rt, false, null,
                                                delegate(int index)
            {
                SWUndo.Record(this);
                data.rt = (SWRenderType)index;
            }
                                                );
        }
 public override void InitOnce()
 {
     base.InitOnce();
     ePopup_Chn = new SWEnumPopup(new string[] { "R", "G", "B", "A" }, (int)data.effectData.pop_channel, null,
                                  delegate(int index){
         data.effectData.pop_channel = (SWChannel)index;
     });
 }
 public void Init(SWNodeRemap _node)
 {
     hasRightup    = false;
     node          = _node;
     ePopup_texRes = new SWEnumPopup(new string[] { "128x128", "256x256", "512x512", "1024x1024" }, (int)node.data.reso, SWEditorUI.MainSkin.button,
                                     delegate(int index){
         node.data.reso = (SWTexResolution)index;
         pause          = true;
         EditorCoroutineRunner.StartEditorCoroutine(ResizeTex(node.data.reso));
     });
 }
Example #4
0
        public override void Init(SWDataNode _data, SWWindowMain _window)
        {
            nodeHeight = 80;
            styleID    = 2;
            base.Init(_data, _window);
            data.outputType.Add(SWDataType._UV);
            data.childPortNumber = 0;

            ePopup_coordMode = new SWEnumPopup(typeof(SWCoordMode), (int)data.coordMode, false, null,
                                               delegate(int index) {
                data.coordMode = (SWCoordMode)index;
            }
                                               );
        }
Example #5
0
        public override void Init(SWDataNode _data, SWWindowMain _window)
        {
            styleID    = 0;
            nodeWidth  = 144;
            nodeHeight = NodeBigHeight;
            base.Init(_data, _window);
            data.outputType.Add(SWDataType._Color);
            data.inputType.Add(SWDataType._Alpha);

            ePopup_op = new SWEnumPopup(typeof(SWOutputOP), (int)data.effectDataColor.op, false, null,
                                        delegate(int index){
                data.effectDataColor.op = (SWOutputOP)index;
            });
        }
Example #6
0
        public void Init(SWNodeEffector e)
        {
            info          = ScriptableObject.CreateInstance <SWBaseInfo> ();
            info.effector = e;
            info.window   = this;
            SetLayerMask(info.effector);

            ePopup_texShowChn = new SWEnumPopup(new string[] { "All", "R", "G", "B", "A" }, (int)texShowChannel, null,
                                                delegate(int index)
            {
                SWUndo.Record(this);
                texShowChannel = (SWTexShowChannel)index;
                TexShowChnEnumSet();
            }
                                                );
        }