static void HandleSetupScreen_Input(int, int, int, int, int);
static void CustomizeKeyboard(int);
static void ConfigureJoystick(int);
static void HandleSetupScreen_Input(int, int, int, int, int);
static void CustomizeKeyboard(int);
static void ConfigureJoystick(int);
static void execSetupGame(void);
static void execSetupGraphics(void);
static void execSetupSound(void);
static void execSetupGame(void);
static void execSetupGraphics(void);
static void execSetupSound(void);
drawCursorExt(0, ypos, active, -1);
}
drawCursorExt(0, ypos, active, -1);
}
{
DrawTextSCentered(MENU_TITLE1_YPOS, FONT_TITLE_1, main_text_title_1);
DrawTextSCentered(MENU_TITLE2_YPOS, FONT_TITLE_2, main_text_title_2);
{
DrawTextSCentered(MENU_TITLE1_YPOS, FONT_TITLE_1, main_text_title_1);
DrawTextSCentered(MENU_TITLE2_YPOS, FONT_TITLE_2, main_text_title_2);
DrawCursorAndText_Main(-1, FALSE, FALSE);
DrawPreviewLevelInitial();
DrawCursorAndText_Main(-1, FALSE, FALSE);
DrawPreviewLevelInitial();
HandleMainMenu(0, 0, 0, 0, MB_MENU_INITIALIZE);
HandleMainMenu(0, 0, 0, 0, MB_MENU_INITIALIZE);
{
/* move upwards until inside (but not above) top level directory */
while (leveldir_current->node_parent &&
{
/* move upwards until inside (but not above) top level directory */
while (leveldir_current->node_parent &&
static int num_info_info; /* number of info entries shown on screen */
static int max_info_info; /* total number of info entries in list */
static int num_info_info; /* number of info entries shown on screen */
static int max_info_info; /* total number of info entries in list */
HandleTitleScreen(0, 0, 0, 0, button);
}
HandleTitleScreen(0, 0, 0, 0, button);
}
HandleChooseTree(mx, my, dx, dy, button, &leveldir_current);
}
HandleChooseTree(mx, my, dx, dy, button, &leveldir_current);
}
- HandleHallOfFame(highlight_position, 0, 0, 0, MB_MENU_INITIALIZE);
+ HandleHallOfFame(level_nr, highlight_position, 0, 0, MB_MENU_INITIALIZE);
-static void drawHallOfFameList(int first_entry, int highlight_position)
+static void drawHallOfFameList(int level_nr, int first_entry,
+ int highlight_position)
void HandleHallOfFame(int mx, int my, int dx, int dy, int button)
{
void HandleHallOfFame(int mx, int my, int dx, int dy, int button)
{
static int first_entry = 0;
static int highlight_position = 0;
int step = (button == 1 ? 1 : button == 2 ? 5 : 10);
if (button == MB_MENU_INITIALIZE)
{
static int first_entry = 0;
static int highlight_position = 0;
int step = (button == 1 ? 1 : button == 2 ? 5 : 10);
if (button == MB_MENU_INITIALIZE)
{
- highlight_position = mx;
- drawHallOfFameList(first_entry, highlight_position);
+ highlight_position = my;
+
+ drawHallOfFameList(level_nr, first_entry, highlight_position);
if (first_entry + NUM_MENU_ENTRIES_ON_SCREEN > MAX_SCORE_ENTRIES)
first_entry = MAX(0, MAX_SCORE_ENTRIES - NUM_MENU_ENTRIES_ON_SCREEN);
if (first_entry + NUM_MENU_ENTRIES_ON_SCREEN > MAX_SCORE_ENTRIES)
first_entry = MAX(0, MAX_SCORE_ENTRIES - NUM_MENU_ENTRIES_ON_SCREEN);
- if (game_status_last_screen != GAME_MODE_PLAYING ||
- !setup.auto_play_next_level || !setup.increment_levels)
+ if (game_status_last_screen == GAME_MODE_PLAYING &&
+ setup.auto_play_next_level && setup.increment_levels &&
+ !network_playing)
{
// update "setup.window_scaling_percent" from list selection
// (in this case, window scaling was changed on setup screen)
{
// update "setup.window_scaling_percent" from list selection
// (in this case, window scaling was changed on setup screen)
{
#if 0
printf("::: '%s', '%s', '%s'\n",
{
#if 0
printf("::: '%s', '%s', '%s'\n",
HandleSetupScreen_Generic(mx, my, dx, dy, button);
}
HandleSetupScreen_Generic(mx, my, dx, dy, button);
}