private void EventFileScanner_SaveLoaded(object sender, EventArgs e)
        {
            StringArg e2 = (StringArg)e;

            Update_Arousal(0);
            Clear_EventViewer();

            Invoke((MethodInvoker)(() => text_detected_mods.Text = e2.String));
        }
예제 #2
0
        private void MemoryScanner_AnimationEvent(object sender, StringArg e)
        {
            string animation = e.String;

            switch (animation)
            {
            case "FootRight":
            case "FootLeft":
            case "JumpUp":
            case "JumpDown":

            case "IdleChairSitting":
            case "idleChairGetUp":

            case "tailCombatIdle":
            case "tailSneakIdle":
            case "IdleStop":

            case "weaponSwing":
            case "weaponLeftSwing":

            case "tailMTLocomotion":
            case "tailSneakLocomotion":
            case "tailCombatLocomotion":

                if (last_idle == animation)
                {
                    return;                            //prevent idle spam when slowly rotating arround with weapon drawn
                }
                last_idle = animation;


                for (int i = 0; i < dd_devices.Length; i++)
                {
                    DD_Device_Type type = dd_devices[i];
                    if (type == DD_Device_Type.none)
                    {
                        continue;
                    }

                    RunningAnimationEvents[i].RemoveAll(runningEvent => runningEvent.ended);
                    // only run one event per dd device per time
                    if (RunningAnimationEvents[i].Count > 0)      // there are still some running events
                    {
                        continue;
                    }

                    string location = Enum.GetNames(typeof(DD_Device_Location))[i].ToLower();
                    RunningAnimationEvents[i].AddRange(vibrationEvents.PlayEvent("dd device footstep " + location));
                }

                //PlaySound();

                break;
            }
        }
        private void Warning_Message(object sender, EventArgs e)
        {
            if (!checkBox_ShowWarnings.Checked)
            {
                return;
            }
            if (sender.GetType().Name == "Memory_Scanner" && !checkBox_MemoryScanner.Checked)
            {
                return;
            }
            if (sender.GetType().Name == "EventFileScanner" && !checkBox_EventFileScanner.Checked)
            {
                return;
            }
            if (sender.GetType().Name == "Device" && !checkBox_DebugDevices.Checked)
            {
                return;
            }
            StringArg e2 = (StringArg)e;

            WriteTo_EventViewer(sender.GetType().Name + " - " + e2.String, Color.Orange);
        }
 private void Memory_Scanner_AnimationEvent(object sender, EventArgs e)
 {
     StringArg e2 = (StringArg)e;
     //WriteTo_EventViewer("Animation: "+e2.String);
 }
 private void Sexlab_Animation_Changed(object sender, StringArg e)
 {
     running_sexlab_animation_text = e.String;
 }