GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
common_ui.h
Go to the documentation of this file.
1
6#ifndef COMMON_UI_H
7#define COMMON_UI_H
8
9#include <stdbool.h>
10#include <tonc.h>
11
16{
17 CARD_PB,
18 DECK_PB,
19 SKIP_TAGS_PB,
20 NORMAL_BLIND_PB,
21 BOSS_BLIND_PB,
22 JOKER_BASE_PB,
23 JOKER_LAST_PB = 15,
24 NUM_PALETTES
25};
26
27// This won't be more than the number of jokers in your current deck
28// plus the amount that can fit in the shop, 8 should be fine. For now...
29#define MAX_ACTIVE_JOKERS 8
30#define MAX_HAND_SIZE 16
31#define MAX_SELECTION_SIZE 5
32#define MAX_BLIND_TOKEN 5
33#define MAX_SKIP_TAGS 16
34
39{
40 BG_NONE,
41 BG_CARD_SELECTING,
42 BG_CARD_PLAYING,
43 BG_ROUND_END,
44 BG_SHOP,
45 BG_BLIND_SELECT,
46 BG_RUN_SETUP,
47 BG_OPTIONS_MENU,
48 BG_MAIN_MENU
49};
50
51enum BackgroundId get_current_background(void);
52
58void change_background(enum BackgroundId id, bool force_redraw);
59
64
65#endif // COMMON_UI_H
SpritePaletteBanks
Indices of the palettes for the different type of sprites.
Definition common_ui.h:16
void change_background(enum BackgroundId id, bool force_redraw)
Definition common_ui.c:35
BackgroundId
Enum of possible backgrounds to render with change_background.
Definition common_ui.h:39
void reset_top_left_panel_bottom_row(void)
Restores the bottom row of the top-left panel from the background map.
Definition common_ui.c:48