kopia lustrzana https://github.com/OpenRTX/OpenRTX
Add button info for mod17 callsign entry
rodzic
2ce3f5e949
commit
7987bd732f
|
@ -158,9 +158,20 @@ void _ui_drawModeInfo(ui_state_t* ui_state)
|
|||
// Print M17 Destination ID on line 2
|
||||
gfx_print(layout.line3_pos, layout.line3_font, TEXT_ALIGN_CENTER,
|
||||
color_white, "%s", dst);
|
||||
// Menu
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_RIGHT,
|
||||
color_white, "Menu");
|
||||
if (ui_state->edit_mode)
|
||||
{
|
||||
// Print Button Info
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_LEFT,
|
||||
color_white, "Cancel");
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_RIGHT,
|
||||
color_white, "Accept");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Menu
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_RIGHT,
|
||||
color_white, "Menu");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -552,6 +552,11 @@ void _ui_drawSettingsM17(ui_state_t* ui_state)
|
|||
gfx_printLine(1, 1, layout.top_h, SCREEN_HEIGHT - layout.bottom_h,
|
||||
layout.horizontal_pad, layout.input_font,
|
||||
TEXT_ALIGN_CENTER, color_white, ui_state->new_callsign);
|
||||
// Print Button Info
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_LEFT,
|
||||
color_white, "Cancel");
|
||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_RIGHT,
|
||||
color_white, "Accept");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue