예제 #1
0
            // Token: 0x0600034E RID: 846 RVA: 0x0001BB78 File Offset: 0x00019D78
            public EditParts(ref MaidParts.PartsColor pc, ColorPresetManager presetMgr)
            {
                this.mainPicker = new ColorPicker(presetMgr)
                {
                    ColorTex    = new Texture2D(32, 20, TextureFormat.RGB24, false),
                    texEdgeSize = 2
                };
                this.shadowPicker = new ColorPicker(presetMgr)
                {
                    ColorTex    = new Texture2D(32, 20, TextureFormat.RGB24, false),
                    texEdgeSize = 2
                };
                Color white = Color.white;

                this.mainPicker.SetTexColor(ref white, 0);
                this.shadowPicker.SetTexColor(ref white, 0);
                this.c.Set(pc.m_nMainContrast);
                this.shadowC.Set(pc.m_nShadowContrast);
                this.shadowRate.Set(pc.m_nShadowRate);
                this.parts = pc;
                this.SetMain(pc);
                this.SetShadow(pc);
            }
            public EditParts(ref MaidParts.PartsColor pc, ColorPresetManager presetMgr)
            {
                mainPicker = new ColorPicker(presetMgr)
                {
                    ColorTex    = new Texture2D(32, 20, TextureFormat.RGB24, false),
                    texEdgeSize = 2
                };
                shadowPicker = new ColorPicker(presetMgr)
                {
                    ColorTex    = new Texture2D(32, 20, TextureFormat.RGB24, false),
                    texEdgeSize = 2
                };
                var frameCol = Color.white;

                mainPicker.SetTexColor(ref frameCol, 0);
                shadowPicker.SetTexColor(ref frameCol, 0);

                c.Set(pc.m_nMainContrast);
                shadowC.Set(pc.m_nShadowContrast);
                shadowRate.Set(pc.m_nShadowRate);
                parts = pc;
                SetMain(pc);
                SetShadow(pc);
            }
예제 #3
0
 public ColorPicker(ColorPresetManager presetMgr = null)
 {
     ColorCode       = string.Empty;
     this._presetMgr = presetMgr;
 }