#include "gui.h"
#include "set.h"
#include "progress.h"
-#include "game.h"
#include "audio.h"
#include "config.h"
#include "util.h"
-#include "st_shared.h"
+#include "common.h"
+
+#include "game_common.h"
#include "st_set.h"
#include "st_title.h"
#include "st_start.h"
+#include "st_shared.h"
/*---------------------------------------------------------------------------*/
-#define SET_STEP 5
+#define SET_STEP 6
static int total = 0;
static int first = 0;
switch (i)
{
case GUI_BACK:
- set_free();
+ set_quit();
return goto_state(&st_title);
break;
if (do_init)
{
total = set_init();
+ first = MIN(first, (total - 1) - ((total - 1) % SET_STEP));
+
audio_music_fade_to(0.5f, "bgm/inter.ogg");
audio_play(AUD_START, 1.f);
}
gui_navig(jd, first > 0, first + SET_STEP < total);
}
+ gui_space(id);
+
if ((jd = gui_harray(id)))
{
shot_id = gui_image(jd, set_shot(first), 7 * w / 16, 7 * h / 16);