- added auto hide buttons option for main screen and game selected screen. when set to no those buttons don't hide and display all the time. defaults to yes so buttons hide unless the pointer is in a specified zone of the screen.

This commit is contained in:
Fledge68 2019-07-10 06:59:30 -05:00
parent d6c59b3754
commit 5019fb6c99
3 changed files with 6 additions and 4 deletions

View File

@ -64,6 +64,7 @@ private:
bool cacheCovers;
bool SF_cacheCovers;
bool CFLocked;
bool Auto_hide_icons;
vector<dir_discHdr> m_gameList;
struct SZone

View File

@ -793,7 +793,7 @@ void CMenu::_game(bool launch)
m_btnMgr.hide(m_gameBtnBackFull);
m_btnMgr.hide(m_gameBtnToggleFull);
if(m_show_zone_game && !coverFlipped && !m_video_playing)
if((!Auto_hide_icons || m_show_zone_game) && !coverFlipped && !m_video_playing)
{
m_btnMgr.show(m_gameBtnPlay);
m_btnMgr.show(m_gameBtnBack);

View File

@ -344,6 +344,7 @@ int CMenu::main(void)
m_emuSaveNand = false;
m_reload = false;
CFLocked = m_cfg.getBool("GENERAL", "cf_locked", false);
Auto_hide_icons = m_cfg.getBool("GENERAL", "auto_hide_icons", true);
u32 disc_check = 0;
m_prev_view = 0;
@ -813,7 +814,7 @@ int CMenu::main(void)
else
m_btnMgr.hide(m_mainBtnNext);
if(m_show_zone_main && !m_sourceflow)
if((!Auto_hide_icons || m_show_zone_main) && !m_sourceflow)
{
m_btnMgr.show(m_mainLblUser[0]);
m_btnMgr.show(m_mainLblUser[1]);
@ -835,7 +836,7 @@ int CMenu::main(void)
m_btnMgr.hide(m_mainBtnFavoritesOn);
m_btnMgr.hide(m_mainBtnFavoritesOff);
}
if(!m_cfg.getBool("GENERAL", "hideviews", false) && m_show_zone_main2 && !m_sourceflow)
if(!m_cfg.getBool("GENERAL", "hideviews", false) && (!Auto_hide_icons || m_show_zone_main2) && !m_sourceflow)
{
switch(m_current_view)
{
@ -892,7 +893,7 @@ int CMenu::main(void)
m_btnMgr.hide(m_mainLblUser[2]);
m_btnMgr.hide(m_mainLblUser[3]);
}
if(m_show_zone_main3 && !m_sourceflow)
if((!Auto_hide_icons || m_show_zone_main3) && !m_sourceflow)
{
m_btnMgr.show(m_mainBtnDVD);
m_btnMgr.show(m_mainLblUser[4]);