Esempio n. 1
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.hold(inputs);
            }

            if (playSound)
            {
                if (inputs.Intersect(directions).Count() > 0)
                {
                    roadie.playSound(Roadie.HOLD_DIRECTION_SOUND);
                }
                if (inputs.Intersect(buttons).Count() > 0)
                {
                    roadie.playSound(Roadie.HOLD_BUTTON_SOUND);
                }
            }
        }
Esempio n. 2
0
 public MainForm()
 {
     InitializeComponent();
     sf4memory = new SF4Memory(chkSteamVersion.Checked);
     sf4control = new SF4Control(sf4memory);
 }
Esempio n. 3
0
 public override void Action(SF4Control sf4control, bool sendInputs)
 {
     sf4control.waitFrames(frames);
     if (playSound) { roadie.playSound(Roadie.WAIT_SOUND); }
 }
Esempio n. 4
0
 //core method of the timeline items, gets called when timeline is played
 public abstract void Action(SF4Control sf4control, bool sendInputs);
Esempio n. 5
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.press(inputs);
            }
            else
            {
                //press event waits 1 frame, if send inputs is disabled wait frame is maintained
                sf4control.waitFrames(1);
            }

            if (playSound)
            {
                if (inputs.Intersect(directions).Count() > 0)
                {
                    roadie.playSound(Roadie.PRESS_DIRECTION_SOUND);
                }
                if (inputs.Intersect(buttons).Count() > 0)
                {
                    roadie.playSound(Roadie.PRESS_BUTTON_SOUND);
                }
            }
        }