Exemple #1
0
        internal override int OnEnter()
        {
            string s1 = "New Set Record";
            string s2 = "Set Complete";

            int id;

            int high = Progress.progress_set_high();

            if (st_done.new_name != 0)
            {
                Progress.progress_rename(1);
                st_done.new_name = 0;
            }

            if ((id = gui.gui_vstack(0)) != 0)
            {
                int gid;

                if (high != 0)
                {
                    gid = gui.gui_label(id, s1, gui.GUI_MED, gui.GUI_ALL, widget.gui_grn, widget.gui_grn);
                }
                else
                {
                    gid = gui.gui_label(id, s2, gui.GUI_MED, gui.GUI_ALL, widget.gui_blu, widget.gui_grn);
                }

                gui.gui_space(id);
                Util.gui_score_board(id, Util.GUI_MOST_COINS | Util.GUI_BEST_TIMES, 1, high);
                gui.gui_space(id);

                gui.gui_start(id, "Select Level", gui.GUI_SML, st_done.DONE_OK, 0);

                if (st_done.resume == 0)
                {
                    gui.gui_pulse(gid, 1.2f);
                }

                gui.gui_layout(id, 0, 0);
            }

            Util.set_score_board(Set.set_coin_score(Set.curr_set()), Progress.progress_score_rank(),
                                 Set.set_time_score(Set.curr_set()), Progress.progress_times_rank(),
                                 null, -1);

            /* Reset hack. */
            st_done.resume = 0;

            return(id);
        }