-fixed synopsis and menu_about displaying (hopefully just a temp solution)

This commit is contained in:
fix94.1 2012-02-04 22:12:07 +00:00
parent b8208dfb9f
commit 1218528c53
4 changed files with 6 additions and 4 deletions

View File

@ -172,13 +172,15 @@ void CButtonsMgr::setSoundVolume(int vol)
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())
{
CButtonsMgr::SElement &b = *m_elts[id];
b.visible = true;
b.targetScaleX = 1.0f;
if(synopsis)
b.targetScaleX = 0.9f;
b.targetScaleY = 1.0f;
b.targetPos = Vector3D((float)b.x, (float)b.y, 0);
b.targetAlpha = 0xFF;

View File

@ -50,7 +50,7 @@ public:
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, 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 up(void);
void down(void);

View File

@ -94,7 +94,7 @@ void CMenu::_showAbout(void)
_setBg(m_aboutBg, m_aboutBg);
m_btnMgr.show(m_aboutLblTitle);
m_btnMgr.show(m_aboutLblIOS);
m_btnMgr.show(m_aboutLblInfo);
m_btnMgr.show(m_aboutLblInfo,false,true);
m_btnMgr.show(m_aboutBtnSystem);
for (u32 i = 0; i < ARRAY_SIZE(m_aboutLblUser); ++i)
if (m_aboutLblUser[i] != -1u)

View File

@ -145,7 +145,7 @@ void CMenu::_gameinfo(void)
else
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))
{