mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
- fix to keep check boxes selected when not using the pointer.
This commit is contained in:
parent
ebe85b1a60
commit
d22b1e26a7
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 3.4 MiB |
@ -487,6 +487,15 @@ bool CButtonsMgr::selected(s16 button)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CButtonsMgr::setSelected(s16 button)
|
||||||
|
{
|
||||||
|
SElement &b = *m_elts[button];
|
||||||
|
m_selected[0] = button;
|
||||||
|
b.targetScaleX = 1.1f;
|
||||||
|
b.targetScaleY = 1.1f;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// **********************************************************************************************
|
// **********************************************************************************************
|
||||||
// * Plays the click sound for the function above. Also sets rumble off and enlarges button *
|
// * Plays the click sound for the function above. Also sets rumble off and enlarges button *
|
||||||
// **********************************************************************************************
|
// **********************************************************************************************
|
||||||
|
@ -64,6 +64,7 @@ public:
|
|||||||
void noHover(bool nohover = false);
|
void noHover(bool nohover = false);
|
||||||
void click(s16 id = -1);
|
void click(s16 id = -1);
|
||||||
bool selected(s16 button = -1);
|
bool selected(s16 button = -1);
|
||||||
|
void setSelected(s16 button);
|
||||||
void setRumble(int, bool wii = false, bool gc = false, bool wupc = false);
|
void setRumble(int, bool wii = false, bool gc = false, bool wupc = false);
|
||||||
void deselect(void){ for(int chan = WPAD_MAX_WIIMOTES-1; chan >= 0; chan--) m_selected[chan] = -1; }
|
void deselect(void){ for(int chan = WPAD_MAX_WIIMOTES-1; chan >= 0; chan--) m_selected[chan] = -1; }
|
||||||
void stopSounds(void);
|
void stopSounds(void);
|
||||||
|
@ -375,15 +375,19 @@ void CMenu::_CategorySettings(bool fromGameSet)
|
|||||||
{
|
{
|
||||||
case '0':
|
case '0':
|
||||||
m_btnMgr.show(m_categoryBtnCat[i]);
|
m_btnMgr.show(m_categoryBtnCat[i]);
|
||||||
|
m_btnMgr.setSelected(m_categoryBtnCat[i]);
|
||||||
break;
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
m_btnMgr.show(m_categoryBtnCats[i]);
|
m_btnMgr.show(m_categoryBtnCats[i]);
|
||||||
|
m_btnMgr.setSelected(m_categoryBtnCats[i]);
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
m_btnMgr.show(m_categoryBtnCatHid[i]);
|
m_btnMgr.show(m_categoryBtnCatHid[i]);
|
||||||
|
m_btnMgr.setSelected(m_categoryBtnCatHid[i]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_btnMgr.show(m_categoryBtnCatReq[i]);
|
m_btnMgr.show(m_categoryBtnCatReq[i]);
|
||||||
|
m_btnMgr.setSelected(m_categoryBtnCatReq[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -162,6 +162,7 @@ void CMenu::_PluginSettings()
|
|||||||
else
|
else
|
||||||
m_plugin.SetEnablePlugin(m_cfg, i+IteratorHelp-1);// switch plugin from off to on or vice versa
|
m_plugin.SetEnablePlugin(m_cfg, i+IteratorHelp-1);// switch plugin from off to on or vice versa
|
||||||
_updatePluginCheckboxes();
|
_updatePluginCheckboxes();
|
||||||
|
m_btnMgr.setSelected(m_pluginBtn[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user