Example #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.proximityManager.Delegate     = this;
            this.hostButton.ClipsToBounds      = true;
            this.hostButton.Layer.CornerRadius = 30f;

            this.joinButton.ClipsToBounds      = true;
            this.joinButton.Layer.CornerRadius = 30f;

            this.buttonBeep     = ButtonBeep.Create("button_forward.wav", 0.5f);
            this.backButtonBeep = ButtonBeep.Create("button_backward.wav", 0.5f);
        }
Example #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.playerNameTextField.Delegate = this;

            this.UpdateSelectedLevel();

            this.playerNameTextField.Text = UserDefaults.Myself.Username;
            this.spectatorSwitch.On       = UserDefaults.Spectator;
            this.musicVolume.Value        = UserDefaults.MusicVolume;
            this.effectsVolume.Value      = UserDefaults.EffectsVolume;
            this.effectsLevelReleased     = ButtonBeep.Create("catapult_highlight_on_02.wav", UserDefaults.EffectsVolume);
            this.appVersionLabel.Text     = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleShortVersionString") +
                                            $" ({NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion")})";
        }