mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
-fixed synopsis and menu_about displaying (hopefully just a temp solution)
This commit is contained in:
parent
b8208dfb9f
commit
1218528c53
@ -172,13 +172,15 @@ void CButtonsMgr::setSoundVolume(int vol)
|
|||||||
m_soundVolume = min(max(0, vol), 0xFF);
|
m_soundVolume = min(max(0, vol), 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CButtonsMgr::show(u32 id, bool instant)
|
void CButtonsMgr::show(u32 id, bool instant, bool synopsis)
|
||||||
{
|
{
|
||||||
if (id < m_elts.size())
|
if (id < m_elts.size())
|
||||||
{
|
{
|
||||||
CButtonsMgr::SElement &b = *m_elts[id];
|
CButtonsMgr::SElement &b = *m_elts[id];
|
||||||
b.visible = true;
|
b.visible = true;
|
||||||
b.targetScaleX = 1.0f;
|
b.targetScaleX = 1.0f;
|
||||||
|
if(synopsis)
|
||||||
|
b.targetScaleX = 0.9f;
|
||||||
b.targetScaleY = 1.0f;
|
b.targetScaleY = 1.0f;
|
||||||
b.targetPos = Vector3D((float)b.x, (float)b.y, 0);
|
b.targetPos = Vector3D((float)b.x, (float)b.y, 0);
|
||||||
b.targetAlpha = 0xFF;
|
b.targetAlpha = 0xFF;
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
void getDimensions(u32 id, int &x, int &y, u32 &width, u32 &height);
|
void getDimensions(u32 id, int &x, int &y, u32 &width, u32 &height);
|
||||||
void hide(u32 id, int dx, int dy, float scaleX, float scaleY, bool instant = false);
|
void hide(u32 id, int dx, int dy, float scaleX, float scaleY, bool instant = false);
|
||||||
void hide(u32 id, bool instant = false);
|
void hide(u32 id, bool instant = false);
|
||||||
void show(u32 id, bool instant = false);
|
void show(u32 id, bool instant = false, bool synopsis = false);
|
||||||
void mouse(int chan, int x, int y);
|
void mouse(int chan, int x, int y);
|
||||||
void up(void);
|
void up(void);
|
||||||
void down(void);
|
void down(void);
|
||||||
|
@ -94,7 +94,7 @@ void CMenu::_showAbout(void)
|
|||||||
_setBg(m_aboutBg, m_aboutBg);
|
_setBg(m_aboutBg, m_aboutBg);
|
||||||
m_btnMgr.show(m_aboutLblTitle);
|
m_btnMgr.show(m_aboutLblTitle);
|
||||||
m_btnMgr.show(m_aboutLblIOS);
|
m_btnMgr.show(m_aboutLblIOS);
|
||||||
m_btnMgr.show(m_aboutLblInfo);
|
m_btnMgr.show(m_aboutLblInfo,false,true);
|
||||||
m_btnMgr.show(m_aboutBtnSystem);
|
m_btnMgr.show(m_aboutBtnSystem);
|
||||||
for (u32 i = 0; i < ARRAY_SIZE(m_aboutLblUser); ++i)
|
for (u32 i = 0; i < ARRAY_SIZE(m_aboutLblUser); ++i)
|
||||||
if (m_aboutLblUser[i] != -1u)
|
if (m_aboutLblUser[i] != -1u)
|
||||||
|
@ -145,7 +145,7 @@ void CMenu::_gameinfo(void)
|
|||||||
else
|
else
|
||||||
m_btnMgr.show(m_gameinfoLblUser[i]);
|
m_btnMgr.show(m_gameinfoLblUser[i]);
|
||||||
|
|
||||||
m_btnMgr.show(m_gameinfoLblSynopsis);
|
m_btnMgr.show(m_gameinfoLblSynopsis,false,true);
|
||||||
}
|
}
|
||||||
else if (BTN_LEFT_PRESSED && !(m_thrdWorking && m_thrdStop))
|
else if (BTN_LEFT_PRESSED && !(m_thrdWorking && m_thrdStop))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user