public void UpdateCustomUI() { if (this.parts == -1 || this.idx == -1) { return; } ChaFileClothes.PartsInfo.ColorInfo colorInfo = this.nowClothes.parts[this.parts].colorInfo[this.idx]; this.csMainColor.SetColor(colorInfo.baseColor); this.ssGloss.SetSliderValue(colorInfo.glossPower); this.ssMetallic.SetSliderValue(colorInfo.metallicPower); this.ChangePatternImage(); if (Object.op_Implicit((Object)this.objPatternSet)) { this.objPatternSet.SetActiveIfDifferent(0 != colorInfo.pattern); } this.csPatternColor.SetColor(colorInfo.patternColor); this.ssPatternW.SetSliderValue((float)colorInfo.layout.x); this.ssPatternH.SetSliderValue((float)colorInfo.layout.y); this.ssPatternX.SetSliderValue((float)colorInfo.layout.z); this.ssPatternY.SetSliderValue((float)colorInfo.layout.w); this.ssPatternRot.SetSliderValue(colorInfo.rotation); }
public static void SetExtendedDataById(this ChaFileClothes.PartsInfo.ColorInfo messagePackObject, string id, PluginData data) => SetExtendedData(messagePackObject, id, data);
public static bool TryGetExtendedDataById(this ChaFileClothes.PartsInfo.ColorInfo messagePackObject, string id, out PluginData data) => GetExtendedData(messagePackObject, id, out data);
private static void MemberInit(ChaFileClothes.PartsInfo.ColorInfo __instance) => Traverse.Create(__instance).Property(ExtendedSaveDataPropertyName).SetValue(null);