Beispiel #1
0
        private void showBindSegmentScreen(IntPair segment, bool bindingAll)
        {
            var prefix = "Single";

            if (segment.Y == 2)
            {
                prefix = "Double";
            }
            else if (segment.Y == 3)
            {
                prefix = "Triple";
            }

            var text = "Press " + prefix + " " + segment.X;

            _bindScreen            = new BindSegmentScreen(text, segment);
            _bindScreen.OnDartHit += bindScreen_OnDartHit;
            _bindScreen.OnClear   += bindScreen_OnClear;

            if (bindingAll)
            {
                _bindScreen.OnDartHit += bindScreen_BindNext;
                _bindScreen.OnClear   += bindScreen_BindNext;
                _bindScreen.OnCancel  += bindScreen_BindNext;
            }

            XnaDartsGame.ScreenManager.AddScreen(_bindScreen);
        }
Beispiel #2
0
        private void showBindSegmentScreen(IntPair segment, bool bindingAll)
        {
            var prefix = "Single";

            if (segment.Y == 2)
            {
                prefix = "Double";
            }
            else if (segment.Y == 3)
            {
                prefix = "Triple";
            }

            var text = "Press " + prefix + " " + segment.X;

            _bindScreen = new BindSegmentScreen(text, segment);
            _bindScreen.OnDartHit += bindScreen_OnDartHit;
            _bindScreen.OnClear += bindScreen_OnClear;

            if (bindingAll)
            {
                _bindScreen.OnDartHit += bindScreen_BindNext;
                _bindScreen.OnClear += bindScreen_BindNext;
                _bindScreen.OnCancel += bindScreen_BindNext;
            }

            XnaDartsGame.ScreenManager.AddScreen(_bindScreen);
        }