You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"info": "To disable hyphen prefixes and suffixes in custom messages, edit saved.json. For other issues, ping me <cl>(@erymanthus)</c> in the Geode SDK Discord server's <cl>#help</c> channel if you need help. <cr>DMs are NOT accepted.</c>"
if (isGDMO && theLevel->m_coins == 0 && Loader::get()->getLoadedMod("maxnu.gd_mega_overlay")->getSavedValue<bool>("level/endlevellayerinfo/enabled")) {
131
-
//
132
-
gdmo does this silly thing where they add children without giving them node IDs and i need to release this mod ASAP so please forgive me for using getobjectatindex but getchildoftype doesnt work for this use case because everything in endscreen layer is a child of some other cclayer smh
133
-
if (!m_mainLayer) return;
134
-
auto mainLayerChildren = m_mainLayer->getChildren();
135
-
auto attemptsLabel = getChildByIDRecursive("attempts-label");
136
-
auto jumpsLabel = getChildByIDRecursive("jumps-label");
137
-
if (attemptsLabel == nullptr || jumpsLabel == nullptr) {
@@ -254,27 +197,27 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
254
197
if ("Make sure to screenshot this win!" == randomString) {
255
198
#ifdef GEODE_IS_MACOS
256
199
randomString = "Press Command + Shift + 3 to screenshot this win!";
257
-
#endif
258
-
#ifdef GEODE_IS_ANDROID
200
+
#elif defined(GEODE_IS_IOS)
201
+
randomString = "Don\'t forget to screenshot this win!";
202
+
#elif defined(GEODE_IS_ANDROID)
259
203
randomString = "Press the \"Volume Down\'\' and \"Power\'\' buttons to screenshot this win!";
260
-
#endif
261
-
#ifdef GEODE_IS_WINDOWS
204
+
#elif defined(GEODE_IS_WINDOWS)
262
205
randomString = "Press \"Win + Shift + S\'\' or \"PrtSc\'\' to screenshot this win!";
263
206
#endif
264
207
} elseif (R"(''First try, part two!")" == randomString) {
265
208
std::string temp = fmt::format(R"(''First try, part {}!")", playLayer->m_attempts);
266
209
if (playLayer->m_attempts == 1) { temp = R"(''First try!")"; }
267
210
randomString = temp;
268
211
} elseif (R"(''As you can see, my FPS is around 18 or so, which means we can definitely take this further.")" == randomString) {
269
-
randomString = fmt::format(R"(''As you can see, my FPS is around {} or so, which means we can definitely take this further.")", manager->fps);
212
+
randomString = fmt::format(R"(''As you can see, my FPS is around {} or so, which means we can definitely take this further.")", CCDirector::get()->m_fFrameRate);
270
213
} elseif (R"(''If you wish to defeat me, train for another 100 years.")" == randomString) {
271
214
randomString = fmt::format(R"(''If you wish to defeat me, train for another {} years.")", std::max(100, (playLayer->m_jumps * 100)));
272
215
} elseif ("Good luck on your statgrinding session!" == randomString && theLevel->m_stars.value() != 0) {
273
216
if (theLevel->isPlatformer()) { randomString = "Good luck on that moongrinding session!"; }
274
217
else { randomString = "Good luck on that stargrinding session!"; }
} elseif (replacementLabelText == "SPONSORED BY YOUR LOCAL MOD MENU" && !manager->loadedModMenus.empty() && manager->modIDToModMenu.contains(chosenModID)) {
129
-
replacementLabelText = utils::string::replace(replacementLabelText, "YOUR LOCAL MOD MENU", manager->modIDToModMenu.find(chosenModID)->second);
124
+
replacementLabelText = fmt::format("SPONSORED BY {}", manager->modIDToModMenu.find(chosenModID)->second);
130
125
}
131
126
log::info("replacementLabelText after changes: {}", replacementLabelText);
returnlog::info("something went terribly wrong --- check contents of the `manager->knownCLCTModesBesidesCombined` vector");
140
-
}
133
+
if (customLCTMode == "Combined") returnlog::info("something went terribly wrong --- check contents of the `manager->knownCLCTModesBesidesCombined` vector");
0 commit comments