Пример #1
0
        public void UpdateForm(string inputName, Hand hand, bool main, int playerId, int dataCursor)
        {
            PlayerFormControls controls = playerId == 1 ? player1Controls : player2Controls;
            Label   label   = controls.GetInputLabel(hand);
            ListBox history = controls.HistoryListBox;

            // Common Data
            int multiplier = Utils.IntFromTextBox(SpeedMultiplierTextBox, 1);

            Action action = new Action(() =>
            {
                label.Text = inputName;

                if (!string.IsNullOrEmpty(inputName))
                {
                    history.Items.Add(hand + " " + inputName);
                    int visibleItems = history.ClientSize.Height / history.ItemHeight;
                    history.TopIndex = Math.Max(history.Items.Count - visibleItems + 1, 0);
                }

                SetCursor(dataCursor, playerId, hand);

                if (main)
                {
                    long secondsElapsed = Utils.millisecondsSinceEpoch() - startWorldMS;
                    Utils.fillWithDate(NormalClockTextBox, secondsElapsed + startRealMS);
                    Utils.fillWithDate(FastClockTextBox, secondsElapsed * multiplier + startGameMS);
                }
            });

            Invoke(action);
        }
Пример #2
0
        public BulletHellFishForm()
        {
            InitializeComponent();

            // Standard Window
            WindowNameDropDown.Text = "pcsx2-r4600";

            player1Controls = new PlayerFormControls(this, Player1FormControls, openFileDialog1);
            player2Controls = new PlayerFormControls(this, Player2FormControls, openFileDialog1);

            // Game Window List
            RefreshWindowNamesCombo();

            player1Controls.InitPlayer(player1);
            player2Controls.InitPlayer(player2);

            LoadChart();
        }