Add button info for mod17 callsign entry
This commit is contained in:
parent
2ce3f5e949
commit
7987bd732f
|
|
@ -158,9 +158,20 @@ void _ui_drawModeInfo(ui_state_t* ui_state)
|
||||||
// Print M17 Destination ID on line 2
|
// Print M17 Destination ID on line 2
|
||||||
gfx_print(layout.line3_pos, layout.line3_font, TEXT_ALIGN_CENTER,
|
gfx_print(layout.line3_pos, layout.line3_font, TEXT_ALIGN_CENTER,
|
||||||
color_white, "%s", dst);
|
color_white, "%s", dst);
|
||||||
// Menu
|
if (ui_state->edit_mode)
|
||||||
gfx_print(layout.line5_pos, layout.line5_font, TEXT_ALIGN_RIGHT,
|
{
|
||||||
color_white, "Menu");
|
// 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;
|
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,
|
gfx_printLine(1, 1, layout.top_h, SCREEN_HEIGHT - layout.bottom_h,
|
||||||
layout.horizontal_pad, layout.input_font,
|
layout.horizontal_pad, layout.input_font,
|
||||||
TEXT_ALIGN_CENTER, color_white, ui_state->new_callsign);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue