GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
common_ui.h File Reference

Common functions to render UI elements. More...

#include <stdbool.h>

Go to the source code of this file.

Enumerations

enum  BackgroundId {
  BG_NONE , BG_CARD_SELECTING , BG_CARD_PLAYING , BG_ROUND_END ,
  BG_SHOP , BG_BLIND_SELECT , BG_RUN_SETUP , BG_OPTIONS_MENU ,
  BG_MAIN_MENU
}
 Enum of possible backgrounds to render with change_background. More...
 

Functions

enum BackgroundId get_current_background (void)
 
void change_background (enum BackgroundId id, bool force_redraw)
 
void reset_top_left_panel_bottom_row (void)
 Restores the bottom row of the top-left panel from the background map.
 

Detailed Description

Common functions to render UI elements.

Definition in file common_ui.h.

Enumeration Type Documentation

◆ BackgroundId

Enum of possible backgrounds to render with change_background.

Definition at line 14 of file common_ui.h.

Function Documentation

◆ change_background()

void change_background ( enum BackgroundId  id,
bool  force_redraw 
)

Change the background

Parameters
idBackgroundId to render to screen

Definition at line 35 of file common_ui.c.

◆ get_current_background()

enum BackgroundId get_current_background ( void  )

Definition at line 30 of file common_ui.c.

◆ reset_top_left_panel_bottom_row()

void reset_top_left_panel_bottom_row ( void  )

Restores the bottom row of the top-left panel from the background map.

Definition at line 48 of file common_ui.c.