コード例 #1
0
ファイル: amode.c プロジェクト: CardonaPinball/freewpc
void amode_freeplay_page (void)
{
    if (system_config.replay_award != FREE_AWARD_OFF)
    {
        replay_draw ();
        amode_sleep_sec (3);
    }
    amode_page_end (0);
}
コード例 #2
0
ファイル: effect.c プロジェクト: Dmilo/freewpc
/** The display effect for the final ball goal */
void score_goal_deff (void)
{
	/* Show the replay if it is enabled and hasn't been awarded yet. */
	if (replay_can_be_awarded ())
	{
		replay_draw ();
	}
	else
	{
		grand_champion_draw ();
	}
	task_sleep_sec (2);
	deff_exit ();
}
コード例 #3
0
ファイル: status.c プロジェクト: hydra/freewpc
void status_report_deff (void)
{
	status_page_init ();
	font_render_string_center (&font_fixed6, 64, 16, "STATUS REPORT");
	status_page_complete ();

	status_page_init ();
	sprintf ("BALL %d", ball_up);
	font_render_string_center (&font_mono5, 64, 11, sprintf_buffer);
	credits_render ();
	font_render_string_center (&font_mono5, 64, 21, sprintf_buffer);
	status_page_complete ();

	status_page_init ();
	replay_draw ();
	status_page_complete ();

#ifdef CONFIG_RTC
	rtc_show_date_time ();
	dmd_draw_border (dmd_low_buffer);
	status_page_complete ();
#endif

#ifdef DEBUGGER
	status_page_init ();
	sprintf ("CNT %1d MIS %1d", counted_balls, missing_balls);
	font_render_string_center (&font_mono5, 64, 11, sprintf_buffer);
	sprintf ("LIVE %1d KLOCKS %1d", live_balls, kickout_locks);
	font_render_string_center (&font_mono5, 64, 22, sprintf_buffer);
	status_page_complete ();
#endif

	/* Allow other modules to report status as well.
	 * The order is unspecified. */
	callset_invoke (status_report);

	deff_exit ();
}