Exemple #1
0
        protected override void update_input(bool active)
        {
            active &= DetailedRanking == null;

            CancelButton.Update(active);
            Nodes.Update(active, new Vector2((int)Scroll.X, (int)Scroll.Y));
            Cursor.update();

            update_scroll(active);

            if (active)
            {
                var selected = Nodes.consume_triggered(
                    Inputs.A, MouseButtons.Left, TouchGestures.Tap);

                if (selected.IsSomething)
                {
                    DetailedRanking = new Window_Ranking(Rankings[selected].Value);
                }
                else if (Global.Input.triggered(Inputs.B) || cancel_button_triggered)
                {
                    Global.game_system.play_se(System_Sounds.Cancel);
                    close();
                }
            }
        }
Exemple #2
0
        protected override void UpdateMenu(bool active)
        {
            base.UpdateMenu(false);
            bool input = active && this.ready_for_inputs;

            if (DetailedRanking != null)
            {
                DetailedRanking.update();
                if (DetailedRanking.is_ready)
                {
                    DetailedRanking = null;
                }
            }

            update_input(input);

            StyleText.update();
            DifficultyText.update();
        }