mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-28 08:37:31 -04:00
fixed a text size, used new rssi focusable property so you can launch the level app by touching or selecting and clicking the rssi bars
This commit is contained in:
parent
37cfcb0d5c
commit
8db44d1a92
2 changed files with 17 additions and 4 deletions
|
@ -524,15 +524,21 @@ namespace ui {
|
|||
if(frequency_list[index].description.size() > 0) desc_cycle.set( frequency_list[index].description ); //Show new description
|
||||
}
|
||||
big_display.set_style(&style_white);
|
||||
if( !userpause )
|
||||
button_pause.set_text("<PAUSE>");
|
||||
else
|
||||
button_pause.set_text("<RESUME>");
|
||||
}
|
||||
else if( freq_lock == 1 && recon_lock_nb_match != 1 )
|
||||
{
|
||||
//STARTING LOCK FREQ
|
||||
big_display.set_style(&style_yellow);
|
||||
button_pause.set_text("<SKPLCK>");
|
||||
}
|
||||
else if( index < 1000 && freq_lock >= recon_thread -> get_lock_nb_match() )
|
||||
{
|
||||
big_display.set_style( &style_green);
|
||||
button_pause.set_text("<UNLOCK>");
|
||||
|
||||
//FREQ IS STRONG: GREEN and recon will pause when on_statistics_update()
|
||||
if( (!scanner_mode) && autosave && last_freq != freq ) {
|
||||
|
@ -874,6 +880,13 @@ namespace ui {
|
|||
nav_.pop();
|
||||
nav_.push<AnalogAudioView>();
|
||||
};
|
||||
|
||||
rssi.set_focusable(true);
|
||||
rssi.on_select = [this](RSSI&) {
|
||||
recon_thread->stop();
|
||||
nav_.pop();
|
||||
nav_.push<LevelView>();
|
||||
};
|
||||
|
||||
button_mic_app.on_select = [this](Button&) {
|
||||
recon_thread->stop();
|
||||
|
@ -1653,7 +1666,7 @@ namespace ui {
|
|||
|
||||
void ReconView::user_pause() {
|
||||
timer = 0 ; // Will trigger a recon_resume() on_statistics_update, also advancing to next freq.
|
||||
button_pause.set_text("<RESUME>"); //PAUSED, show resume
|
||||
//button_pause.set_text("<RESUME>"); //PAUSED, show resume
|
||||
userpause=true;
|
||||
continuous_lock=false;
|
||||
recon_pause();
|
||||
|
@ -1661,7 +1674,7 @@ namespace ui {
|
|||
|
||||
void ReconView::user_resume() {
|
||||
timer = 0 ; // Will trigger a recon_resume() on_statistics_update, also advancing to next freq.
|
||||
button_pause.set_text("<PAUSE>"); //Show button for pause
|
||||
//button_pause.set_text("<PAUSE>"); //Show button for pause
|
||||
userpause=false; // Resume recon
|
||||
continuous_lock=false;
|
||||
recon_resume();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue