public static void NotifyHeelInfoUpdate(HeelInfo heelInfo) { if (heelInfo != null) { OnHeelInfoUpdate(null, new HeelInfoEventArgs(heelInfo)); } }
private static void SaveHeelFile(HeelInfo hi) { var configFile = Path.Combine(CONFIG_PATH, $"{hi.heelName}.xml"); var shoeConfig = new XMLContainer(hi.id, hi.angleA.eulerAngles.x, hi.angleLeg.eulerAngles.x, hi.height.y); using (var stream = new StreamWriter(configFile)) using (var writer = XmlWriter.Create(stream, xmlWriterSettings)) xmlSerializer.Serialize(writer, shoeConfig, xmlSerializerNamespaces); }
internal static void UpdateMakerValues(HeelInfo heelInfo) { if (slider_AngleAnkle != null) { slider_AngleAnkle.Value = heelInfo.AnkleAnglef; slider_AngleLeg.Value = heelInfo.LegAnglef; slider_Height.Value = heelInfo.Heightf; } }
public HeelInfoEventArgs(HeelInfo heelInfo) { AnimationPath = heelInfo.animationPath; AnimationName = heelInfo.animationName; AnimationFlags = heelInfo.flags; CustomPose = heelInfo.CustomPose; CustomHeel = new CustomHeel(heelInfo); HeelName = heelInfo.heelName; ChaControl = heelInfo.chaControl; }
public static void UnregisterHeelInfo(HeelInfo heelInfo) { HeelInfos.Remove(heelInfo); }
public static void RegisterHeelInfo(HeelInfo heelInfo) { HeelInfos.Add(heelInfo); }
internal static void UnregisterHeelInfo(HeelInfo hi) { heelInfos.Remove(hi); }
internal static void RegisterHeelInfo(HeelInfo hi) { heelInfos.Add(hi); }