Improve menu text

This commit is contained in:
Robin Jones 2024-12-28 22:54:14 +00:00
parent 0068699fec
commit 0f0321d691
4 changed files with 13 additions and 12 deletions

View File

@ -278,11 +278,11 @@ static void set_menu_next_mode (menu_t *menu, void *arg) {
static component_context_menu_t settings_context_menu = {
.list = {
{ .text = "Edit settings", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_SETTINGS_EDITOR) },
{ .text = "Show system info", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_SYSTEM_INFO) },
{ .text = "Show credits", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_CREDITS) },
{ .text = "Adjust RTC", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_RTC) },
{ .text = "Show cart info", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_FLASHCART) },
{ .text = "Menu settings", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_SETTINGS_EDITOR) },
{ .text = "Time (RTC) settings", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_RTC) },
{ .text = "Menu information", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_CREDITS) },
{ .text = "Flashcart information", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_FLASHCART) },
{ .text = "N64 information", .action = set_menu_next_mode, .arg = (void *) (MENU_MODE_SYSTEM_INFO) },
COMPONENT_CONTEXT_MENU_LIST_END,
}
};

View File

@ -42,7 +42,7 @@ static void draw (menu_t *menu, surface_t *d) {
" Robin Jones / NetworkFusion\n"
" Mateusz Faderewski / Polprzewodnikowy\n"
"Credits:\n"
" N64Brew / libdragon contributors\n"
" N64Brew / libDragon contributors\n"
"\n"
"OSS software used:\n"
" libdragon (UNLICENSE License)\n"

View File

@ -188,7 +188,7 @@ static void draw (menu_t *menu, surface_t *d) {
ui_components_actions_bar_text_draw(
ALIGN_LEFT, VALIGN_TOP,
"A: Change\n"
"A: Adjust time\n"
"B: Back"
);
}

View File

@ -49,20 +49,21 @@ static void draw (menu_t *menu, surface_t *d) {
ALIGN_LEFT, VALIGN_TOP,
"\n"
"\n"
"Current date & time: %s"
"\n"
"Expansion PAK is %sinserted\n"
"\n"
"Joypad 1 is %sconnected %s\n"
"Joypad 2 is %sconnected %s\n"
"Joypad 3 is %sconnected %s\n"
"Joypad 4 is %sconnected %s\n",
menu->current_time >= 0 ? ctime(&menu->current_time) : "Unknown",
"Joypad 4 is %sconnected %s\n"
"\n"
"\n"
"Physical Disk Drive attached: %s\n",
is_memory_expanded() ? "" : "not ",
(joypad[0]) ? "" : "not ", format_accessory(0),
(joypad[1]) ? "" : "not ", format_accessory(1),
(joypad[2]) ? "" : "not ", format_accessory(2),
(joypad[3]) ? "" : "not ", format_accessory(3)
(joypad[3]) ? "" : "not ", format_accessory(3),
"Unknown" // Fixme: Implement disk drive detection
);
ui_components_actions_bar_text_draw(