Beispiel #1
0
 public static void NotifyHeelInfoUpdate(HeelInfo heelInfo)
 {
     if (heelInfo != null)
     {
         OnHeelInfoUpdate(null, new HeelInfoEventArgs(heelInfo));
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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;
     }
 }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 public static void UnregisterHeelInfo(HeelInfo heelInfo)
 {
     HeelInfos.Remove(heelInfo);
 }
Beispiel #6
0
 public static void RegisterHeelInfo(HeelInfo heelInfo)
 {
     HeelInfos.Add(heelInfo);
 }
Beispiel #7
0
 internal static void UnregisterHeelInfo(HeelInfo hi)
 {
     heelInfos.Remove(hi);
 }
Beispiel #8
0
 internal static void RegisterHeelInfo(HeelInfo hi)
 {
     heelInfos.Add(hi);
 }