13typedef void (*BackgroundRenderCallback)(void);
18static const BackgroundRenderCallback bgCallbacks[] = {
39 s_background = BG_NONE;
41 if (
id != s_background && bgCallbacks[
id] != NULL)
50 BG_POINT top_left_panel_bottom_row_pos = TOP_LEFT_PANEL_POINT;
52 top_left_panel_bottom_row_pos.y +=
rect_height(&TOP_LEFT_ITEM_SRC_RECT) - 1;
Blind select state functions.
void game_blind_select_change_background(void)
Change to the blind select background.
Common functions to render UI elements.
void change_background(enum BackgroundId id, bool force_redraw)
BackgroundId
Enum of possible backgrounds to render with change_background.
void reset_top_left_panel_bottom_row(void)
Restores the bottom row of the top-left panel from the background map.
INLINE int rect_height(const Rect *rect)
Get the height of a rectangle.
void main_bg_se_copy_rect(Rect se_rect, BG_POINT dest_pos)
Copies a rect in the main background from se_rect to the position (x, y).
Header of shared rects and points needed for ui.
Main menu state functions.
void game_main_menu_change_background(void)
Change the main menu background.
API relative to the Rounds we play.
void game_round_change_background_playing(void)
Change to the round card playing background.
void game_round_change_background_selecting(void)
Change to the round card selection background.
Round end game state functions.
void game_round_end_change_background(void)
Change to the round end background.
Setup Run menu state functions.
void game_run_setup_change_background(void)
Change to the Run Setup menu background.
void game_shop_change_background(void)
Change to the shop background.