Beispiel #1
0
static void menu_entry_renderer_on_render(struct renderer_observer *obs)
{
	struct menu_entry_renderer *self =
		b6_cast_of(obs, struct menu_entry_renderer, renderer_observer);
	unsigned long long int now = b6_get_clock_time(self->clock);
	int selected = now & 262144;
	show_toolkit_label(&self->label[!!selected]);
	hide_toolkit_label(&self->label[!selected]);
}
Beispiel #2
0
static void on_render(struct renderer_observer *observer)
{
	struct hall_of_fame_phase *self = b6_cast_of(
		observer, struct hall_of_fame_phase, renderer_observer);
	if (!self->cursor_base)
		return;
	if (b6_get_clock_time(self->up.engine->clock) & 524288ULL)
		show_renderer_base(self->cursor_base);
	else
		hide_renderer_base(self->cursor_base);
}