mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-26 21:00:50 -04:00
disable settings button on server mods / mods with no settings
This commit is contained in:
parent
5b5b77b1bd
commit
d5d5c3adb7
1 changed files with 8 additions and 0 deletions
|
@ -503,6 +503,14 @@ bool ModPopup::setup(ModSource&& src) {
|
|||
);
|
||||
m_buttonMenu->addChildAtPosition(settingsBtn, Anchor::BottomLeft, ccp(28, 25));
|
||||
|
||||
if (!m_source.asMod() || !m_source.asMod()->hasSettings()) {
|
||||
settingsSpr->setOpacity(90);
|
||||
static_cast<CCSprite*>(settingsSpr->getTopNode())->setOpacity(90);
|
||||
settingsSpr->setColor(ccGRAY);
|
||||
static_cast<CCSprite*>(settingsSpr->getTopNode())->setColor(ccGRAY);
|
||||
settingsBtn->setEnabled(false);
|
||||
}
|
||||
|
||||
// Select details tab
|
||||
this->loadTab(Tab::Details);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue