diff --git a/out/boot.dol b/out/boot.dol index dedb186c..d58b3167 100644 Binary files a/out/boot.dol and b/out/boot.dol differ diff --git a/source/gui/gui.cpp b/source/gui/gui.cpp index eafa240e..e2967c99 100644 --- a/source/gui/gui.cpp +++ b/source/gui/gui.cpp @@ -487,6 +487,15 @@ bool CButtonsMgr::selected(s16 button) 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 * // ********************************************************************************************** diff --git a/source/gui/gui.hpp b/source/gui/gui.hpp index bd19675c..bfcdfa2f 100644 --- a/source/gui/gui.hpp +++ b/source/gui/gui.hpp @@ -64,6 +64,7 @@ public: void noHover(bool nohover = false); void click(s16 id = -1); bool selected(s16 button = -1); + void setSelected(s16 button); 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 stopSounds(void); diff --git a/source/menu/menu_categories.cpp b/source/menu/menu_categories.cpp index e60e1ac6..a70388a2 100644 --- a/source/menu/menu_categories.cpp +++ b/source/menu/menu_categories.cpp @@ -375,15 +375,19 @@ void CMenu::_CategorySettings(bool fromGameSet) { case '0': m_btnMgr.show(m_categoryBtnCat[i]); + m_btnMgr.setSelected(m_categoryBtnCat[i]); break; case '1': m_btnMgr.show(m_categoryBtnCats[i]); + m_btnMgr.setSelected(m_categoryBtnCats[i]); break; case '2': m_btnMgr.show(m_categoryBtnCatHid[i]); + m_btnMgr.setSelected(m_categoryBtnCatHid[i]); break; default: m_btnMgr.show(m_categoryBtnCatReq[i]); + m_btnMgr.setSelected(m_categoryBtnCatReq[i]); break; } break; diff --git a/source/menu/menu_plugin.cpp b/source/menu/menu_plugin.cpp index ed2694b0..04f91df4 100644 --- a/source/menu/menu_plugin.cpp +++ b/source/menu/menu_plugin.cpp @@ -162,6 +162,7 @@ void CMenu::_PluginSettings() else m_plugin.SetEnablePlugin(m_cfg, i+IteratorHelp-1);// switch plugin from off to on or vice versa _updatePluginCheckboxes(); + m_btnMgr.setSelected(m_pluginBtn[i]); break; } }