Add basic common_ui background gfx functions (#415)

* Add basic common_ui background gfx functions

* clang format

* document common_ui.h

* Remove unused tonc header

* Fix header guard name convention

* more header cleanup

* claaaaanggggg format
This commit is contained in:
Rickey
2026-03-31 21:04:47 -07:00
committed by GitHub
parent 91bc9b949e
commit f46395b9d0
5 changed files with 62 additions and 15 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "game/common_ui.h"
#include "game.h"
typedef void (*BackgroundRenderCallback)(void);
// Map to fill in for refactor
BackgroundRenderCallback bgCallbacks[] =
{
[BG_NONE] = NULL,
[BG_CARD_SELECTING] = NULL,
[BG_CARD_PLAYING] = NULL,
[BG_ROUND_END] = NULL,
[BG_SHOP] = NULL,
[BG_BLIND_SELECT] = NULL,
[BG_MAIN_MENU] = NULL,
};
void change_background(enum BackgroundId id)
{
change_background_legacy(id);
}