From f17962e6093a79c4d2082025533e6f5dbb48e76d Mon Sep 17 00:00:00 2001 From: fledge68 Date: Thu, 27 Jun 2013 14:29:40 +0000 Subject: [PATCH] - Small Source Menu update. Restored hover button images. --- source/menu/menu_source.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/menu/menu_source.cpp b/source/menu/menu_source.cpp index 96c88772..767f1731 100644 --- a/source/menu/menu_source.cpp +++ b/source/menu/menu_source.cpp @@ -106,6 +106,7 @@ void CMenu::_updateSourceBtns(void) m_btnMgr.hide(m_sourceBtnSource[i], true); const char *ImgName = NULL; + const char *ImgSelName = NULL; u8 j = (Source_curPage - 1) * 12; for(u8 i = 0; i < 12; ++i) @@ -168,6 +169,7 @@ void CMenu::_updateSourceBtns(void) ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "").c_str(); } + ImgSelName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "").c_str(); TexData texConsoleImg; TexData texConsoleImgs; @@ -176,9 +178,9 @@ void CMenu::_updateSourceBtns(void) if(TexHandle.fromImageFile(texConsoleImg, fmt("%s/%s", m_sourceDir.c_str(), ImgName)) != TE_OK) TexHandle.fromPNG(texConsoleImg, favoriteson_png); } - if(TexHandle.fromImageFile(texConsoleImgs, fmt("%s/%s", m_themeDataDir.c_str(), ImgName)) != TE_OK) + if(TexHandle.fromImageFile(texConsoleImgs, fmt("%s/%s", m_themeDataDir.c_str(), ImgSelName)) != TE_OK) { - if(TexHandle.fromImageFile(texConsoleImgs, fmt("%s/%s", m_sourceDir.c_str(), ImgName)) != TE_OK) + if(TexHandle.fromImageFile(texConsoleImgs, fmt("%s/%s", m_sourceDir.c_str(), ImgSelName)) != TE_OK) TexHandle.fromPNG(texConsoleImgs, favoritesons_png); } m_btnMgr.setBtnTexture(m_sourceBtnSource[i], texConsoleImg, texConsoleImgs);