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
+30
View File
@@ -0,0 +1,30 @@
/**
* @file common_ui.h
*
* @brief Common functions to render UI elements.
*/
#ifndef COMMON_UI_H
#define COMMON_UI_H
/**
* @brief Enum of possible backgrounds to render with @ref change_background
*/
enum BackgroundId
{
BG_NONE,
BG_CARD_SELECTING,
BG_CARD_PLAYING,
BG_ROUND_END,
BG_SHOP,
BG_BLIND_SELECT,
BG_MAIN_MENU
};
/**
* Change the background
*
* @param id @ref BackgroundId to render to screen
*/
void change_background(enum BackgroundId id);
#endif // COMMON_UI_H