Refactor/blind select screen (#461)

Refactor Blind Select Screen.

Based on #363
---------

Co-authored-by: emiyl <me@emiyl.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Rickey
2026-05-06 00:56:59 -07:00
committed by GitHub
co-authored by emiyl Copilot Autofix powered by AI
parent 877bd09576
commit d01b1ba12d
15 changed files with 844 additions and 738 deletions
+33
View File
@@ -0,0 +1,33 @@
/**
* @file blind_select.h
*
* @brief Blind select state functions
*/
#ifndef GAME_BLIND_SELECT_H
#define GAME_BLIND_SELECT_H
#include "blind.h"
/**
* @brief Change to the blind select background
*/
void game_blind_select_change_background(void);
/**
* @brief Blind select state initialization
*/
void game_blind_select_on_init(void);
/**
* @brief Blind select state update
*/
void game_blind_select_on_update(void);
/**
* @brief Blind select cleanup
*/
void game_blind_select_on_exit(void);
void increment_blind(enum BlindState increment_reason);
#endif // GAME_BLIND_SELECT_H
+3 -1
View File
@@ -6,6 +6,8 @@
#ifndef COMMON_UI_H
#define COMMON_UI_H
#include <stdbool.h>
/**
* @brief Enum of possible backgrounds to render with @ref change_background
*/
@@ -26,6 +28,6 @@ enum BackgroundId
*
* @param id @ref BackgroundId to render to screen
*/
void change_background(enum BackgroundId id);
void change_background(enum BackgroundId id, bool force_redraw);
#endif // COMMON_UI_H