コード例 #1
0
ファイル: MessageConfig.cs プロジェクト: m35/BizHawk
        private void SetPositionInfo()
        {
            if (FPSRadio.Checked)
            {
                SetFromOption(_fps);
            }
            else if (FrameCounterRadio.Checked)
            {
                SetFromOption(_frameCounter);
            }
            else if (LagCounterRadio.Checked)
            {
                SetFromOption(_lagCounter);
            }
            else if (InputDisplayRadio.Checked)
            {
                SetFromOption(_inputDisplay);
            }
            else if (WatchesRadio.Checked)
            {
                SetFromOption(_ramWatches);
            }
            else if (MessagesRadio.Checked)
            {
                SetFromOption(_messages);
            }
            else if (RerecordsRadio.Checked)
            {
                SetFromOption(_reRecordCounter);
            }
            else if (MultitrackRadio.Checked)
            {
                SetFromOption(_multitrackRecorder);
            }
            else if (AutoholdRadio.Checked)
            {
                SetFromOption(_autohold);
            }

            PositionPanel.Refresh();
            XNumeric.Refresh();
            YNumeric.Refresh();
            SetPositionLabels();
        }
コード例 #2
0
        private void SetPositionInfo()
        {
            if (FPSRadio.Checked)
            {
                XNumeric.Value = _dispFpSx;
                YNumeric.Value = _dispFpSy;
                _px            = _dispFpSx;
                _py            = _dispFpSy;
                SetAnchorRadio(_dispFpSanchor);
            }
            else if (FrameCounterRadio.Checked)
            {
                XNumeric.Value = _dispFrameCx;
                YNumeric.Value = _dispFrameCy;
                _px            = _dispFrameCx;
                _py            = _dispFrameCy;
                SetAnchorRadio(_dispFrameanchor);
            }
            else if (LagCounterRadio.Checked)
            {
                XNumeric.Value = _dispLagx;
                YNumeric.Value = _dispLagy;
                _px            = _dispLagx;
                _py            = _dispLagy;
                SetAnchorRadio(_dispLaganchor);
            }
            else if (InputDisplayRadio.Checked)
            {
                XNumeric.Value = _dispInpx;
                XNumeric.Value = _dispInpy;
                _px            = _dispInpx;
                _py            = _dispInpy;
                SetAnchorRadio(_dispInputanchor);
            }
            else if (WatchesRadio.Checked)
            {
                XNumeric.Value = _dispWatchesx;
                XNumeric.Value = _dispWatchesy;
                _px            = _dispWatchesx;
                _py            = _dispWatchesy;
                SetAnchorRadio(_dispWatchesanchor);
            }
            else if (MessagesRadio.Checked)
            {
                XNumeric.Value = _dispMessagex;
                YNumeric.Value = _dispMessagey;
                _px            = _dispMessagex;
                _py            = _dispMessagey;
                SetAnchorRadio(_dispMessageAnchor);
            }
            else if (RerecordsRadio.Checked)
            {
                XNumeric.Value = _dispRecx;
                YNumeric.Value = _dispRecy;
                _px            = _dispRecx;
                _py            = _dispRecy;
                SetAnchorRadio(_dispRecanchor);
            }
            else if (MultitrackRadio.Checked)
            {
                XNumeric.Value = _dispMultix;
                YNumeric.Value = _dispMultiy;
                _px            = _dispMultix;
                _py            = _dispMultiy;
                SetAnchorRadio(_dispMultiAnchor);
            }
            else if (AutoholdRadio.Checked)
            {
                XNumeric.Value = _dispAutoholdx;
                YNumeric.Value = _dispAutoholdy;
                _px            = _dispAutoholdx;
                _py            = _dispAutoholdy;
                SetAnchorRadio(_dispAutoholdAnchor);
            }

            PositionPanel.Refresh();
            XNumeric.Refresh();
            YNumeric.Refresh();
            SetPositionLabels();
        }