Exemple #1
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsNip += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscNipType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_nip, ChaListDefine.KeyType.Unknown));
     this.sscNipType.SetToggleID(this.body.nipId);
     this.sscNipType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.nipId == info.id)
         {
             return;
         }
         this.body.nipId = info.id;
         this.chaCtrl.ChangeNipKind();
     });
     this.csNipColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.body.nipColor = color;
         this.chaCtrl.ChangeNipColor();
     });
     this.ssNipGloss.onChange = (Action <float>)(value =>
     {
         this.body.nipGlossPower = value;
         this.chaCtrl.ChangeNipGloss();
     });
     this.ssNipGloss.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.nipGlossPower);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #2
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsLip += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscLipType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_lip, ChaListDefine.KeyType.Unknown));
     this.sscLipType.SetToggleID(this.makeup.lipId);
     this.sscLipType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.makeup.lipId == info.id)
         {
             return;
         }
         this.makeup.lipId = info.id;
         this.chaCtrl.AddUpdateCMFaceTexFlags(false, false, false, false, false, true, false);
         this.chaCtrl.CreateFaceTexture();
     });
     this.csLipColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.makeup.lipColor = color;
         this.chaCtrl.AddUpdateCMFaceColorFlags(false, false, false, false, false, true, false);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssLipGloss.onChange = (Action <float>)(value =>
     {
         this.makeup.lipGloss = value;
         this.chaCtrl.AddUpdateCMFaceGlossFlags(false, false, false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssLipGloss.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.makeup.lipGloss);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #3
0
 private void Start()
 {
     this.sscPattern.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_pattern, ChaListDefine.KeyType.Unknown));
     if (!Object.op_Implicit((Object)this.btnClose))
     {
         return;
     }
     ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ => this.customBase.customCtrl.showPattern = false));
 }
Exemple #4
0
 public void UpdateHairList()
 {
     this.sscHairType.CreateList(CvsBase.CreateSelectList(new ChaListDefine.CategoryNo[4]
     {
         ChaListDefine.CategoryNo.so_hair_b,
         ChaListDefine.CategoryNo.so_hair_f,
         ChaListDefine.CategoryNo.so_hair_s,
         ChaListDefine.CategoryNo.so_hair_o
     }[this.SNo], ChaListDefine.KeyType.Unknown));
 }
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsEyeHL += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscEyeHLType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_eye_hl, ChaListDefine.KeyType.Unknown));
     this.sscEyeHLType.SetToggleID(this.face.hlId);
     this.sscEyeHLType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.hlId == info.id)
         {
             return;
         }
         this.face.hlId = info.id;
         this.chaCtrl.ChangeEyesHighlightKind();
     });
     this.csEyeHLColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.face.hlColor = color;
         this.chaCtrl.ChangeEyesHighlightColor();
     });
     this.ssHLW.onChange = (Action <float>)(value =>
     {
         this.face.hlLayout = new Vector4(value, (float)this.face.hlLayout.y, (float)this.face.hlLayout.z, (float)this.face.hlLayout.w);
         this.chaCtrl.ChangeEyesHighlighLayout();
     });
     this.ssHLW.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.hlLayout.x);
     this.ssHLH.onChange          = (Action <float>)(value =>
     {
         this.face.hlLayout = new Vector4((float)this.face.hlLayout.x, value, (float)this.face.hlLayout.z, (float)this.face.hlLayout.w);
         this.chaCtrl.ChangeEyesHighlighLayout();
     });
     this.ssHLH.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.hlLayout.y);
     this.ssHLX.onChange          = (Action <float>)(value =>
     {
         this.face.hlLayout = new Vector4((float)this.face.hlLayout.x, (float)this.face.hlLayout.y, value, (float)this.face.hlLayout.w);
         this.chaCtrl.ChangeEyesHighlighLayout();
     });
     this.ssHLX.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.hlLayout.z);
     this.ssHLY.onChange          = (Action <float>)(value =>
     {
         this.face.hlLayout = new Vector4((float)this.face.hlLayout.x, (float)this.face.hlLayout.y, (float)this.face.hlLayout.z, value);
         this.chaCtrl.ChangeEyesHighlighLayout();
     });
     this.ssHLY.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.hlLayout.w);
     this.ssHLTilt.onChange       = (Action <float>)(value =>
     {
         this.face.hlTilt = value;
         this.chaCtrl.ChangeEyesHighlighTilt();
     });
     this.ssHLTilt.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.hlTilt);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #6
0
 public void UpdateClothesList()
 {
     this.sscClothesType.CreateList(CvsBase.CreateSelectList(new ChaListDefine.CategoryNo[8]
     {
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_top : ChaListDefine.CategoryNo.mo_top,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_bot : ChaListDefine.CategoryNo.mo_bot,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_inner_t : ChaListDefine.CategoryNo.unknown,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_inner_b : ChaListDefine.CategoryNo.unknown,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_gloves : ChaListDefine.CategoryNo.mo_gloves,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_panst : ChaListDefine.CategoryNo.unknown,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_socks : ChaListDefine.CategoryNo.unknown,
         this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_shoes : ChaListDefine.CategoryNo.mo_shoes
     }[this.SNo], ChaListDefine.KeyType.Unknown));
 }
 public void UpdateAcsList(int ForceNo = -1)
 {
     this.sscAcs.CreateList(CvsBase.CreateSelectList(new ChaListDefine.CategoryNo[14]
     {
         ChaListDefine.CategoryNo.ao_none,
         ChaListDefine.CategoryNo.ao_head,
         ChaListDefine.CategoryNo.ao_ear,
         ChaListDefine.CategoryNo.ao_glasses,
         ChaListDefine.CategoryNo.ao_face,
         ChaListDefine.CategoryNo.ao_neck,
         ChaListDefine.CategoryNo.ao_shoulder,
         ChaListDefine.CategoryNo.ao_chest,
         ChaListDefine.CategoryNo.ao_waist,
         ChaListDefine.CategoryNo.ao_back,
         ChaListDefine.CategoryNo.ao_arm,
         ChaListDefine.CategoryNo.ao_hand,
         ChaListDefine.CategoryNo.ao_leg,
         ChaListDefine.CategoryNo.ao_kokan
     }[ForceNo != -1 ? ForceNo: this.nowAcs.parts[this.SNo].type - 350], ChaListDefine.KeyType.Unknown));
 }
Exemple #8
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsUnderhair += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscUnderhairType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_underhair, ChaListDefine.KeyType.Unknown));
     this.sscUnderhairType.SetToggleID(this.body.underhairId);
     this.sscUnderhairType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.underhairId == info.id)
         {
             return;
         }
         this.body.underhairId = info.id;
         this.chaCtrl.ChangeUnderHairKind();
     });
     this.csUnderhairColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.body.underhairColor = color;
         this.chaCtrl.ChangeUnderHairColor();
     });
     this.StartCoroutine(this.SetInputText());
 }
Exemple #9
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsBeard += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscBeardType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.mt_beard, ChaListDefine.KeyType.Unknown));
     this.sscBeardType.SetToggleID(this.face.beardId);
     this.sscBeardType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.beardId == info.id)
         {
             return;
         }
         this.face.beardId = info.id;
         this.chaCtrl.ChangeBeardKind();
     });
     this.csBeardColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.face.beardColor = color;
         this.chaCtrl.ChangeBeardColor();
     });
     this.StartCoroutine(this.SetInputText());
 }
Exemple #10
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsSunburn += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscSunburnType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.ft_sunburn : ChaListDefine.CategoryNo.mt_sunburn, ChaListDefine.KeyType.Unknown));
     this.sscSunburnType.SetToggleID(this.body.sunburnId);
     this.sscSunburnType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.sunburnId == info.id)
         {
             return;
         }
         this.body.sunburnId = info.id;
         this.chaCtrl.AddUpdateCMBodyTexFlags(false, false, false, true);
         this.chaCtrl.CreateBodyTexture();
     });
     this.csSunburnColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.body.sunburnColor = color;
         this.chaCtrl.AddUpdateCMBodyColorFlags(false, false, false, true);
         this.chaCtrl.CreateBodyTexture();
     });
     this.StartCoroutine(this.SetInputText());
 }
Exemple #11
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsMole += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscMole.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_mole, ChaListDefine.KeyType.Unknown));
     this.sscMole.SetToggleID(this.face.moleId);
     this.sscMole.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.moleId == info.id)
         {
             return;
         }
         this.face.moleId = info.id;
         this.chaCtrl.AddUpdateCMFaceTexFlags(false, false, false, false, false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.csMole.actUpdateColor = (Action <Color>)(color =>
     {
         this.face.moleColor = color;
         this.chaCtrl.AddUpdateCMFaceColorFlags(false, false, false, false, false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     // ISSUE: object of a compiler-generated type is created
     this.dictMoleLayout = this.lstCtrl.GetCategoryInfo(ChaListDefine.CategoryNo.mole_layout).Select <KeyValuePair <int, ListInfoBase>, \u003C\u003E__AnonType16 <int, float, float, float, float> >((Func <KeyValuePair <int, ListInfoBase>, int, \u003C\u003E__AnonType16 <int, float, float, float, float> >)((val, idx) => new \u003C\u003E__AnonType16 <int, float, float, float, float>(idx, val.Value.GetInfoFloat(ChaListDefine.KeyType.Scale), val.Value.GetInfoFloat(ChaListDefine.KeyType.Scale), val.Value.GetInfoFloat(ChaListDefine.KeyType.PosX), val.Value.GetInfoFloat(ChaListDefine.KeyType.PosY)))).ToDictionary <\u003C\u003E__AnonType16 <int, float, float, float, float>, int, Vector4>((Func <\u003C\u003E__AnonType16 <int, float, float, float, float>, int>)(v => v.idx), (Func <\u003C\u003E__AnonType16 <int, float, float, float, float>, Vector4>)(v =>
     {
         Vector4 vector4 = (Vector4)null;
         vector4.x       = (__Null)(double)v.x;
         vector4.y       = (__Null)(double)v.y;
         vector4.z       = (__Null)(double)v.z;
         vector4.w       = (__Null)(double)v.w;
         return(vector4);
     }));
     this.pscMoleLayout.CreateList(CvsBase.CreatePushList(ChaListDefine.CategoryNo.mole_layout));
     this.pscMoleLayout.onPush = (Action <CustomPushInfo>)(info =>
     {
         Vector4 vector4;
         if (info == null || !this.dictMoleLayout.TryGetValue(info.id, out vector4))
         {
             return;
         }
         this.face.moleLayout = vector4;
         this.chaCtrl.AddUpdateCMFaceLayoutFlags(false, false, true);
         this.chaCtrl.CreateFaceTexture();
         this.ssMoleW.SetSliderValue((float)this.face.moleLayout.x);
         this.ssMoleH.SetSliderValue((float)this.face.moleLayout.y);
         this.ssMoleX.SetSliderValue((float)this.face.moleLayout.z);
         this.ssMoleY.SetSliderValue((float)this.face.moleLayout.w);
     });
     this.ssMoleW.onChange = (Action <float>)(value =>
     {
         this.face.moleLayout = new Vector4(value, (float)this.face.moleLayout.y, (float)this.face.moleLayout.z, (float)this.face.moleLayout.w);
         this.chaCtrl.AddUpdateCMFaceLayoutFlags(false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssMoleW.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.moleLayout.x);
     this.ssMoleH.onChange          = (Action <float>)(value =>
     {
         this.face.moleLayout = new Vector4((float)this.face.moleLayout.x, value, (float)this.face.moleLayout.z, (float)this.face.moleLayout.w);
         this.chaCtrl.AddUpdateCMFaceLayoutFlags(false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssMoleH.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.moleLayout.y);
     this.ssMoleX.onChange          = (Action <float>)(value =>
     {
         this.face.moleLayout = new Vector4((float)this.face.moleLayout.x, (float)this.face.moleLayout.y, value, (float)this.face.moleLayout.w);
         this.chaCtrl.AddUpdateCMFaceLayoutFlags(false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssMoleX.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.moleLayout.z);
     this.ssMoleY.onChange          = (Action <float>)(value =>
     {
         this.face.moleLayout = new Vector4((float)this.face.moleLayout.x, (float)this.face.moleLayout.y, (float)this.face.moleLayout.z, value);
         this.chaCtrl.AddUpdateCMFaceLayoutFlags(false, false, true);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssMoleY.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.face.moleLayout.w);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #12
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsBodyPaint += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscPaintType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_paint, ChaListDefine.KeyType.Unknown));
     this.sscPaintType.SetToggleID(this.body.paintInfo[this.SNo].id);
     this.sscPaintType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.paintInfo[this.SNo].id == info.id)
         {
             return;
         }
         this.body.paintInfo[this.SNo].id = info.id;
         this.chaCtrl.AddUpdateCMBodyTexFlags(false, 0 == this.SNo, 1 == this.SNo, false);
         this.chaCtrl.CreateBodyTexture();
     });
     this.csPaintColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.body.paintInfo[this.SNo].color = color;
         this.chaCtrl.AddUpdateCMBodyColorFlags(false, 0 == this.SNo, 1 == this.SNo, false);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintGloss.onChange = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].glossPower = value;
         this.chaCtrl.AddUpdateCMBodyGlossFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintGloss.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.paintInfo[this.SNo].glossPower);
     this.ssPaintMetallic.onChange       = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].metallicPower = value;
         this.chaCtrl.AddUpdateCMBodyGlossFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintMetallic.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.paintInfo[this.SNo].metallicPower);
     this.sscPaintLayout.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.bodypaint_layout, ChaListDefine.KeyType.Unknown));
     this.sscPaintLayout.SetToggleID(this.body.paintInfo[this.SNo].layoutId);
     this.sscPaintLayout.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.paintInfo[this.SNo].layoutId == info.id)
         {
             return;
         }
         this.body.paintInfo[this.SNo].layoutId = info.id;
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintW.onChange = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].layout = new Vector4(value, (float)this.body.paintInfo[this.SNo].layout.y, (float)this.body.paintInfo[this.SNo].layout.z, (float)this.body.paintInfo[this.SNo].layout.w);
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintW.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.body.paintInfo[this.SNo].layout.x);
     this.ssPaintH.onChange          = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].layout = new Vector4((float)this.body.paintInfo[this.SNo].layout.x, value, (float)this.body.paintInfo[this.SNo].layout.z, (float)this.body.paintInfo[this.SNo].layout.w);
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintH.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.body.paintInfo[this.SNo].layout.y);
     this.ssPaintX.onChange          = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].layout = new Vector4((float)this.body.paintInfo[this.SNo].layout.x, (float)this.body.paintInfo[this.SNo].layout.y, value, (float)this.body.paintInfo[this.SNo].layout.w);
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintX.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.body.paintInfo[this.SNo].layout.z);
     this.ssPaintY.onChange          = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].layout = new Vector4((float)this.body.paintInfo[this.SNo].layout.x, (float)this.body.paintInfo[this.SNo].layout.y, (float)this.body.paintInfo[this.SNo].layout.z, value);
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintY.onSetDefaultValue = (Func <float>)(() => (float)this.defChaCtrl.custom.body.paintInfo[this.SNo].layout.w);
     this.ssPaintRot.onChange        = (Action <float>)(value =>
     {
         this.body.paintInfo[this.SNo].rotation = value;
         this.chaCtrl.AddUpdateCMBodyLayoutFlags(0 == this.SNo, 1 == this.SNo);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssPaintRot.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.paintInfo[this.SNo].rotation);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #13
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsFaceType += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscFaceType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_head : ChaListDefine.CategoryNo.mo_head, ChaListDefine.KeyType.Unknown));
     this.sscFaceType.SetToggleID(this.face.headId);
     this.sscFaceType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.headId == info.id)
         {
             return;
         }
         this.chaCtrl.ChangeHead(info.id, false);
         this.UpdateSkinList();
         this.sscSkinType.SetToggleID(this.face.skinId);
     });
     this.pscFacePreset.CreateList(this.CreateFacePresetList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.fo_head : ChaListDefine.CategoryNo.mo_head));
     this.pscFacePreset.onPush = (Action <CustomPushInfo>)(info =>
     {
         if (info == null)
         {
             return;
         }
         this.face.headId = info.id;
         this.chaCtrl.chaFile.LoadFacePreset();
         Singleton <Character> .Instance.customLoadGCClear = false;
         this.chaCtrl.Reload(true, false, true, true, true);
         Singleton <Character> .Instance.customLoadGCClear = true;
         this.customBase.updateCvsFaceType         = true;
         this.customBase.updateCvsFaceShapeWhole   = true;
         this.customBase.updateCvsFaceShapeChin    = true;
         this.customBase.updateCvsFaceShapeCheek   = true;
         this.customBase.updateCvsFaceShapeEyebrow = true;
         this.customBase.updateCvsFaceShapeEyes    = true;
         this.customBase.updateCvsFaceShapeNose    = true;
         this.customBase.updateCvsFaceShapeMouth   = true;
         this.customBase.updateCvsFaceShapeEar     = true;
         this.customBase.updateCvsMole             = true;
         this.customBase.updateCvsEyeLR            = true;
         this.customBase.updateCvsEyeEtc           = true;
         this.customBase.updateCvsEyeHL            = true;
         this.customBase.updateCvsEyebrow          = true;
         this.customBase.updateCvsEyelashes        = true;
         this.customBase.updateCvsEyeshadow        = true;
         this.customBase.updateCvsCheek            = true;
         this.customBase.updateCvsLip       = true;
         this.customBase.updateCvsFacePaint = true;
         this.customBase.SetUpdateToggleSetting();
     });
     this.UpdateSkinList();
     this.sscSkinType.SetToggleID(this.face.skinId);
     this.sscSkinType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.skinId == info.id)
         {
             return;
         }
         this.face.skinId = info.id;
         this.chaCtrl.AddUpdateCMFaceTexFlags(true, false, false, false, false, false, false);
         this.chaCtrl.CreateFaceTexture();
     });
     this.sscDetailType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.ft_detail_f : ChaListDefine.CategoryNo.mt_detail_f, ChaListDefine.KeyType.Unknown));
     this.sscDetailType.SetToggleID(this.face.detailId);
     this.sscDetailType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.detailId == info.id)
         {
             return;
         }
         this.face.detailId = info.id;
         this.chaCtrl.ChangeFaceDetailKind();
     });
     this.ssDetailPower.onChange = (Action <float>)(value =>
     {
         this.face.detailPower = value;
         this.chaCtrl.ChangeFaceDetailPower();
     });
     this.ssDetailPower.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.detailPower);
     this.StartCoroutine(this.SetInputText());
 }
Exemple #14
0
 public void UpdateSkinList()
 {
     this.sscSkinType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.ft_skin_f : ChaListDefine.CategoryNo.mt_skin_f, ChaListDefine.KeyType.HeadID).Where <CustomSelectInfo>((Func <CustomSelectInfo, bool>)(x => x.limitIndex == this.face.headId)).ToList <CustomSelectInfo>());
 }
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsBodySkinType += new Action(((CvsBase)this).UpdateCustomUI);
     this.sscSkinType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.ft_skin_b : ChaListDefine.CategoryNo.mt_skin_b, ChaListDefine.KeyType.Unknown));
     this.sscSkinType.SetToggleID(this.body.skinId);
     this.sscSkinType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.skinId == info.id)
         {
             return;
         }
         this.body.skinId = info.id;
         this.chaCtrl.AddUpdateCMBodyTexFlags(true, false, false, false);
         this.chaCtrl.CreateBodyTexture();
     });
     this.ssDetailPower.onChange = (Action <float>)(value =>
     {
         this.body.detailPower = value;
         this.chaCtrl.ChangeBodyDetailPower();
     });
     this.ssDetailPower.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.detailPower);
     this.sscDetailType.CreateList(CvsBase.CreateSelectList(this.chaCtrl.sex != (byte)0 ? ChaListDefine.CategoryNo.ft_detail_b : ChaListDefine.CategoryNo.mt_detail_b, ChaListDefine.KeyType.Unknown));
     this.sscDetailType.SetToggleID(this.body.detailId);
     this.sscDetailType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.body.detailId == info.id)
         {
             return;
         }
         this.body.detailId = info.id;
         this.chaCtrl.AddUpdateCMBodyTexFlags(true, false, false, false);
         this.chaCtrl.CreateBodyTexture();
     });
     this.csSkinColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.body.skinColor = color;
         this.chaCtrl.AddUpdateCMBodyColorFlags(true, false, false, false);
         this.chaCtrl.CreateBodyTexture();
         this.chaCtrl.AddUpdateCMFaceColorFlags(true, false, false, false, false, false, false);
         this.chaCtrl.CreateFaceTexture();
     });
     this.ssSkinGloss.onChange = (Action <float>)(value =>
     {
         this.body.skinGlossPower = value;
         this.chaCtrl.ChangeBodyGlossPower();
         this.chaCtrl.ChangeFaceGlossPower();
     });
     this.ssSkinGloss.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.skinGlossPower);
     this.ssSkinMetallic.onChange       = (Action <float>)(value =>
     {
         this.body.skinMetallicPower = value;
         this.chaCtrl.ChangeBodyMetallicPower();
         this.chaCtrl.ChangeFaceMetallicPower();
     });
     this.ssSkinMetallic.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.body.skinMetallicPower);
     this.hcPreset.onClick = (Action <Color>)(color =>
     {
         this.body.skinColor = color;
         this.chaCtrl.AddUpdateCMBodyColorFlags(true, false, false, false);
         this.chaCtrl.CreateBodyTexture();
         this.chaCtrl.AddUpdateCMFaceColorFlags(true, false, false, false, false, false, false);
         this.chaCtrl.CreateFaceTexture();
         this.csSkinColor.SetColor(color);
     });
     this.StartCoroutine(this.SetInputText());
 }
Exemple #16
0
 protected override void Start()
 {
     base.Start();
     this.customBase.actUpdateCvsEyeLR += new Action(((CvsBase)this).UpdateCustomUI);
     this.csWhiteColor.actUpdateColor   = (Action <Color>)(color =>
     {
         this.face.pupil[this.SNo].whiteColor = color;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].whiteColor = color;
         }
         this.chaCtrl.ChangeWhiteEyesColor(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.sscPupilType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_eye, ChaListDefine.KeyType.Unknown));
     this.sscPupilType.SetToggleID(this.face.pupil[this.SNo].pupilId);
     this.sscPupilType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.pupil[this.SNo].pupilId == info.id)
         {
             return;
         }
         this.face.pupil[this.SNo].pupilId = info.id;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].pupilId = info.id;
         }
         this.chaCtrl.ChangeEyesKind(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.csPupilColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.face.pupil[this.SNo].pupilColor = color;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].pupilColor = color;
         }
         this.chaCtrl.ChangeEyesColor(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssPupilEmission.onChange = (Action <float>)(value =>
     {
         this.face.pupil[this.SNo].pupilEmission = value;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].pupilEmission = value;
         }
         this.chaCtrl.ChangeEyesEmission(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssPupilEmission.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.pupil[this.SNo].pupilEmission);
     this.ssPupilW.onChange = (Action <float>)(value =>
     {
         this.face.pupil[this.SNo].pupilW = value;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].pupilW = value;
         }
         this.chaCtrl.ChangeEyesWH(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssPupilW.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.pupil[this.SNo].pupilW);
     this.ssPupilH.onChange          = (Action <float>)(value =>
     {
         this.face.pupil[this.SNo].pupilH = value;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].pupilH = value;
         }
         this.chaCtrl.ChangeEyesWH(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssPupilH.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.pupil[this.SNo].pupilH);
     this.sscBlackType.CreateList(CvsBase.CreateSelectList(ChaListDefine.CategoryNo.st_eyeblack, ChaListDefine.KeyType.Unknown));
     this.sscBlackType.SetToggleID(this.face.pupil[this.SNo].blackId);
     this.sscBlackType.onSelect = (Action <CustomSelectInfo>)(info =>
     {
         if (info == null || this.face.pupil[this.SNo].blackId == info.id)
         {
             return;
         }
         this.face.pupil[this.SNo].blackId = info.id;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].blackId = info.id;
         }
         this.chaCtrl.ChangeBlackEyesKind(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.csBlackColor.actUpdateColor = (Action <Color>)(color =>
     {
         this.face.pupil[this.SNo].blackColor = color;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].blackColor = color;
         }
         this.chaCtrl.ChangeBlackEyesColor(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssBlackW.onChange = (Action <float>)(value =>
     {
         this.face.pupil[this.SNo].blackW = value;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].blackW = value;
         }
         this.chaCtrl.ChangeBlackEyesWH(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssBlackW.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.pupil[this.SNo].blackW);
     this.ssBlackH.onChange          = (Action <float>)(value =>
     {
         this.face.pupil[this.SNo].blackH = value;
         if (this.face.pupilSameSetting)
         {
             this.face.pupil[this.SNo ^ 1].blackH = value;
         }
         this.chaCtrl.ChangeBlackEyesWH(!this.face.pupilSameSetting ? this.SNo : 2);
     });
     this.ssBlackH.onSetDefaultValue = (Func <float>)(() => this.defChaCtrl.custom.face.pupil[this.SNo].blackH);
     this.StartCoroutine(this.SetInputText());
 }