mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-29 22:14:15 +01:00
minor improvements
This commit is contained in:
parent
98a6330563
commit
8f393b50d7
@ -57,7 +57,7 @@ typedef enum {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
ACTION_BAR_LINE_ONE,
|
ACTION_BAR_LINE_ONE,
|
||||||
ACTION_BAR_LINE_TWO,
|
ACTION_BAR_LINE_TWO,
|
||||||
ACTION_BAR_LINE_END
|
ACTION_BAR_LINE_END /**< List end marker */
|
||||||
} action_bar_line_t;
|
} action_bar_line_t;
|
||||||
|
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ void ui_components_main_text_draw(rdpq_align_t align, rdpq_valign_t valign, char
|
|||||||
* @param fmt Format string for the text.
|
* @param fmt Format string for the text.
|
||||||
* @param ... Additional arguments for the format string.
|
* @param ... Additional arguments for the format string.
|
||||||
*/
|
*/
|
||||||
void ui_components_actions_bar_text_draw(rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t context_button, char *fmt, ...);
|
void ui_components_actions_bar_text_draw(rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t action_button, char *fmt, ...);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize the background component.
|
* @brief Initialize the background component.
|
||||||
|
@ -166,7 +166,7 @@ void ui_components_main_text_draw (rdpq_align_t align, rdpq_valign_t valign, cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t context_button, char *fmt, ...) {
|
void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t action_button, char *fmt, ...) {
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
size_t nbytes = sizeof(buffer);
|
size_t nbytes = sizeof(buffer);
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t vali
|
|||||||
char *formatted = vasnprintf(buffer, &nbytes, fmt, va);
|
char *formatted = vasnprintf(buffer, &nbytes, fmt, va);
|
||||||
va_end(va);
|
va_end(va);
|
||||||
|
|
||||||
// FIXME: if there is a button to draw, we should add it!
|
// FIXME: if there is an action button to draw, we should add it!
|
||||||
// FIXME: take into account action bar line
|
// FIXME: take into account action bar line
|
||||||
|
|
||||||
rdpq_text_printn(
|
rdpq_text_printn(
|
||||||
|
Loading…
Reference in New Issue
Block a user