mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
fix grayed out
This commit is contained in:
parent
cd89ef1909
commit
e8b6c57c21
1 changed files with 4 additions and 4 deletions
|
@ -255,10 +255,10 @@ void ModCell::updateState() {
|
|||
if (m_enableToggle) {
|
||||
m_enableToggle->toggle(m_mod->isEnabled());
|
||||
m_enableToggle->setEnabled(toggleable);
|
||||
m_enableToggle->m_offButton->setOpacity(toggleable ? 100 : 255);
|
||||
m_enableToggle->m_offButton->setColor(toggleable ? cc3x(155) : cc3x(255));
|
||||
m_enableToggle->m_onButton->setOpacity(toggleable ? 100 : 255);
|
||||
m_enableToggle->m_onButton->setColor(toggleable ? cc3x(155) : cc3x(255));
|
||||
m_enableToggle->m_offButton->setOpacity(!toggleable ? 100 : 255);
|
||||
m_enableToggle->m_offButton->setColor(!toggleable ? cc3x(155) : cc3x(255));
|
||||
m_enableToggle->m_onButton->setOpacity(!toggleable ? 100 : 255);
|
||||
m_enableToggle->m_onButton->setColor(!toggleable ? cc3x(155) : cc3x(255));
|
||||
}
|
||||
bool hasProblems = false;
|
||||
for (auto const& item : Loader::get()->getProblems()) {
|
||||
|
|
Loading…
Reference in a new issue