public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     ImageButton.AddTarget(ImageButtonTapped, UIControlEvent.TouchUpInside);
     ImageButton2.AddTarget(ImageButtonTapped, UIControlEvent.TouchUpInside);
     ImageButton3.AddTarget(ImageButtonTapped, UIControlEvent.TouchUpInside);
     ImageButton4.AddTarget(ImageButtonTapped, UIControlEvent.TouchUpInside);
     ImageButton5.AddTarget(ImageButtonTapped, UIControlEvent.TouchUpInside);
 }
Exemplo n.º 2
0
        public override void Load()
        {
            base.Load();
            _bg = _textureManager.Load("settings_bg");

            _soundOn  = new ImageButton2(_textureManager, "sound_on");
            _soundOff = new ImageButton2(_textureManager, "sound_off", false);
            RadioButton.create(new ImageButton2[2] {
                _soundOn, _soundOff
            });
            _bgmOn  = new ImageButton2(_textureManager, "bgm_on");
            _bgmOff = new ImageButton2(_textureManager, "bgm_off", false);
            RadioButton.create(new ImageButton2[2] {
                _bgmOn, _bgmOff
            });
        }
Exemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (ImageButton1 != null)
            {
                ImageButton1.Dispose();
                ImageButton1 = null;
            }

            if (ImageButton2 != null)
            {
                ImageButton2.Dispose();
                ImageButton2 = null;
            }

            if (ImageButton3 != null)
            {
                ImageButton3.Dispose();
                ImageButton3 = null;
            }

            if (ImageButton4 != null)
            {
                ImageButton4.Dispose();
                ImageButton4 = null;
            }

            if (ImageButton5 != null)
            {
                ImageButton5.Dispose();
                ImageButton5 = null;
            }

            if (ImageButton6 != null)
            {
                ImageButton6.Dispose();
                ImageButton6 = null;
            }

            if (ImageButton7 != null)
            {
                ImageButton7.Dispose();
                ImageButton7 = null;
            }

            if (ImageButton8 != null)
            {
                ImageButton8.Dispose();
                ImageButton8 = null;
            }

            if (ImageButton9 != null)
            {
                ImageButton9.Dispose();
                ImageButton9 = null;
            }

            if (MessageOfWinnerText != null)
            {
                MessageOfWinnerText.Dispose();
                MessageOfWinnerText = null;
            }

            if (PlayAgainButton != null)
            {
                PlayAgainButton.Dispose();
                PlayAgainButton = null;
            }

            if (PlayerTurnText != null)
            {
                PlayerTurnText.Dispose();
                PlayerTurnText = null;
            }

            if (ResetButton != null)
            {
                ResetButton.Dispose();
                ResetButton = null;
            }

            if (PlayerXLabel != null)
            {
                PlayerXLabel.Dispose();
                PlayerXLabel = null;
            }

            if (PlayerOLabel != null)
            {
                PlayerOLabel.Dispose();
                PlayerOLabel = null;
            }
        }
Exemplo n.º 4
0
 public void setPos(ImageButton2 btn, Vector2 pos)
 {
     btn.Pos = Layout.TransformPos(_context.ActualResolution, pos);
 }