예제 #1
0
        internal override int OnEnter()
        {
            int id, jd, kd;

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

            if ((id = gui.gui_vstack(0)) != 0)
            {
                kd = gui.gui_label(id, "Fall-out!", gui.GUI_LRG, gui.GUI_ALL, widget.gui_gry, widget.gui_red);

                gui.gui_space(id);

                if ((jd = gui.gui_harray(id)) != 0)
                {
                    if (Progress.progress_dead() != 0)
                    {
                        gui.gui_start(jd, "Exit", gui.GUI_SML, st_fall_out.FALL_OUT_OVER, 0);
                    }

                    if (Progress.progress_next_avail() != 0)
                    {
                        gui.gui_start(jd, "Next Level", gui.GUI_SML, st_fall_out.FALL_OUT_NEXT, 0);
                    }

                    if (Progress.progress_same_avail() != 0)
                    {
                        gui.gui_start(jd, "Retry Level", gui.GUI_SML, st_fall_out.FALL_OUT_SAME, 0);
                    }
                }

                gui.gui_space(id);

                gui.gui_pulse(kd, 1.2f);
                gui.gui_layout(id, 0, 0);
            }

            Audio.audio_music_fade_out(2.0f);

            Video.video_clr_grab();

            return(id);
        }