Beispiel #1
0
        protected override void ExitFromBack()
        {
            if (modSelect.State == Visibility.Visible)
            {
                modSelect.Hide();
                return;
            }

            base.ExitFromBack();
        }
Beispiel #2
0
        protected override bool OnExiting(Screen next)
        {
            if (modSelect.State == Visibility.Visible)
            {
                modSelect.Hide();
                return(true);
            }

            return(base.OnExiting(next));
        }
Beispiel #3
0
        public override bool OnBackButton()
        {
            if (Room.RoomID.Value == null)
            {
                // room has not been created yet; exit immediately.
                settingsOverlay.Hide();
                return(base.OnBackButton());
            }

            if (userModsSelectOverlay.State.Value == Visibility.Visible)
            {
                userModsSelectOverlay.Hide();
                return(true);
            }

            if (settingsOverlay.State.Value == Visibility.Visible)
            {
                settingsOverlay.Hide();
                return(true);
            }

            return(base.OnBackButton());
        }
Beispiel #4
0
        protected override void OnSuspending(Screen next)
        {
            modSelect.Hide();

            base.OnSuspending(next);
        }