mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-12 11:59:08 +01:00
-Fix for source menu buttons transparency, but left/minus page button disappears when you hover over it only on default theme. It still works you just can't see it.
This commit is contained in:
parent
447fdd7cec
commit
48737c010a
@ -109,17 +109,17 @@ void CMenu::_updateSourceBtns(void)
|
|||||||
STexture texConsoleImgs;
|
STexture texConsoleImgs;
|
||||||
|
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "");
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", "");
|
||||||
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
texConsoleImg.fromPNG(favoriteson_png);
|
texConsoleImg.fromPNG(favoriteson_png);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "");
|
ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", "");
|
||||||
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
texConsoleImgs.fromPNG(favoritesons_png);
|
texConsoleImgs.fromPNG(favoritesons_png);
|
||||||
}
|
}
|
||||||
@ -432,17 +432,17 @@ void CMenu::_initSourceMenu()
|
|||||||
STexture texConsoleImgs;
|
STexture texConsoleImgs;
|
||||||
|
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i),"image", "");
|
ImgName = m_source.getString(fmt("BUTTON_%i", i),"image", "");
|
||||||
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
texConsoleImg.fromPNG(favoriteson_png);
|
texConsoleImg.fromPNG(favoriteson_png);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImgName = m_source.getString(fmt("BUTTON_%i", i),"image_s", "");
|
ImgName = m_source.getString(fmt("BUTTON_%i", i),"image_s", "");
|
||||||
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2))
|
if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str())))
|
||||||
{
|
{
|
||||||
texConsoleImgs.fromPNG(favoritesons_png);
|
texConsoleImgs.fromPNG(favoritesons_png);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user