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:
co-authored by
emiyl
Copilot Autofix powered by AI
parent
877bd09576
commit
d01b1ba12d
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user