Exemplo n.º 1
0
 // Token: 0x06000328 RID: 808 RVA: 0x00019BBC File Offset: 0x00017DBC
 public bool DrawValueSlider(string label, EditIntValue edit)
 {
     return(this.DrawValueSlider <int>(label, edit, delegate()
     {
         int val = edit.val;
         if (this.DrawSlider(ref val, edit.range.editMin, edit.range.editMax))
         {
             edit.Set(val);
             return true;
         }
         return false;
     }));
 }
 public bool DrawValueSlider(string label, EditIntValue edit)
 {
     return(DrawValueSlider(label, edit,
                            () => {
         var sliderVal = edit.val;
         if (DrawSlider(ref sliderVal, edit.range.editMin, edit.range.editMax))
         {
             edit.Set(sliderVal);
             return true;
         }
         return false;
     }));
 }
            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);
            }