Skip to content

Commit

Permalink
allow modifications again
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed May 22, 2024
1 parent c43e4c2 commit 25e336c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/UIModding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ using namespace geode::prelude;
UIModding* UIModding::instance = nullptr;

$execute {
//UIModding::get()->doModify = Mod::get()->getSettingValue<bool>("ui-modifications");
UIModding::get()->doModify = false;
UIModding::get()->doModify = Mod::get()->getSettingValue<bool>("ui-modifications");
}

void UIModding::updateColors(CCNode* node, std::string name){
Expand Down
4 changes: 2 additions & 2 deletions src/nodes/CCScene.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class $modify(MyCCScene, CCScene){
static CCScene* create(){
auto ret = CCScene::create();
if(UIModding::get()->doModify){
//ret->schedule(schedule_selector(MyCCScene::checkForUpdates));
ret->schedule(schedule_selector(MyCCScene::checkForUpdates));
}
return ret;
}
Expand All @@ -36,7 +36,7 @@ class $modify(MyCCScene, CCScene){
idx++;
if(node->getID() == "MenuLayer") continue;
if(idx > m_fields->m_currentCount){
//UIModding::get()->doUICheck(node);
UIModding::get()->doUICheck(node);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/nodes/MenuLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class $modify(MyMenuLayer, MenuLayer){
if(!MenuLayer::init()){
return false;
}
//UIModding::get()->doModify = Mod::get()->getSettingValue<bool>("ui-modifications");
UIModding::get()->doModify = Mod::get()->getSettingValue<bool>("ui-modifications");

if(UIModding::get()->doModify){
//UIModding::get()->startFileListeners();
//UIModding::get()->doUICheck(this);
UIModding::get()->startFileListeners();
UIModding::get()->doUICheck(this);
}
return true;
}
Expand Down

0 comments on commit 25e336c

Please sign in to comment.