Skip to content

Commit

Permalink
add about.md, patch way toggle, fixes for fake pages info and coming …
Browse files Browse the repository at this point in the history
…soon level id
  • Loading branch information
user95401 committed Apr 29, 2024
1 parent 37dc588 commit 1cd9bf1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
12 changes: 11 additions & 1 deletion _Src/FakeLevelPagesScroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class $modify(LevelSelectLayerExt, LevelSelectLayer) {
};
//cumingsoon
if (not Mod::get()->getSettingValue<bool>("NO_COMINGSOON")) {
lvl->m_levelID = 0;
lvl->m_levelID = -1;
auto cumingsoon = LevelPage::create(lvl);
cumingsoon->updateDynamicPage(lvl);
auto COMINGSOON_TEXT = (Mod::get()->getSettingValue<std::string>("COMINGSOON_TEXT"));
Expand Down Expand Up @@ -189,6 +189,7 @@ class $modify(LevelSelectLayerExt, LevelSelectLayer) {
instantMoveToCurrentPage();
}
void onNext(cocos2d::CCObject* sender) {
if (Mod::get()->getSettingValue<bool>("USE_PATCHES")) return LevelSelectLayer::onNext(sender);
++m_fields->m_page;
if (m_fields->m_page >= m_fields->m_shitcodingmenu->getChildrenCount()) {
m_fields->m_page = 0;
Expand All @@ -206,6 +207,7 @@ class $modify(LevelSelectLayerExt, LevelSelectLayer) {
}
};
void onPrev(cocos2d::CCObject* sender) {
if (Mod::get()->getSettingValue<bool>("USE_PATCHES")) return LevelSelectLayer::onPrev(sender);
--m_fields->m_page;
if (m_fields->m_page < 0) {
m_fields->m_page = m_fields->m_shitcodingmenu->getChildrenCount() - 1;
Expand All @@ -227,9 +229,17 @@ class $modify(LevelSelectLayerExt, LevelSelectLayer) {
m_fields->m_shitcodingmenuPoint.x = (newPointX);
}
};
void onInfo(cocos2d::CCObject* sender) {
if (Mod::get()->getSettingValue<bool>("USE_PATCHES")) return LevelSelectLayer::onInfo(sender);
auto currentPage = dynamic_cast<LevelPage*>(m_fields->m_shitcodingmenu->getChildByTag(m_fields->m_page + 1));
if (currentPage) currentPage->onInfo(currentPage);
}
static LevelSelectLayer* create(int p0) {
auto rtn = LevelSelectLayer::create(p0);
if (Mod::get()->getSettingValue<bool>("USE_PATCHES")) return rtn;

((LevelSelectLayerExt*)rtn)->mainSetup(p0);

return rtn;
}
};
2 changes: 1 addition & 1 deletion _Src/controllers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void UpdatePagesSetup() {

Ini.SaveFile(IniPath.c_str());

return;////////////////////////////////////////////////////////////////////////////////
if (not Mod::get()->getSettingValue<bool>("USE_PATCHES")) return;////////////////////////////////////////////////////////////////////////////////
#ifdef GEODE_IS_WINDOWS
//we at LevelSelectLayer::init(LevelSelectLayer* pClass, int initLevel)
//way: "Download the soundtrack" string, move up to sideart sprites
Expand Down
20 changes: 20 additions & 0 deletions about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Main Levels Editor

u can edit:
- main levels setup (stars, song, name, difficulty)
- bg color for page
- songs
- pages in level select layer (here is a fake page list)

and <cr>"Load Failed!"</c> <cl>bypass</c> here

<cg>summary u can add ur own level in level select layer</c>

settings here is generating per hooked functions call
so play stereo madness to generate all config structure

<cr>

#### android releases is unstable i think

</c>
6 changes: 6 additions & 0 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
"type": "bool",
"default": false
},
"USE_PATCHES": {
"name": "Use patches (PC Only)",
"description": "<cr>this thing make dont working NO_THETOWER, NO_COMINGSOON, COMINGSOON_TEXT keys\nalso this is for windows only",
"type": "bool",
"default": false
},
"NO_THETOWER": {
"name": "Remove The Tower Page",
"description": "dont add this page yea",
Expand Down

0 comments on commit 1cd9bf1

Please sign in to comment.