Skip to content

Commit

Permalink
281
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Sep 19, 2024
1 parent e589adc commit 74e4688
Show file tree
Hide file tree
Showing 21 changed files with 51 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/mods.list.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.8.0-list1",
"version": "v2.8.1-list1",
"list": [

"https://github.com/MathieuAR-GDPSFH/Gauntlets-Position-Fix/releases/latest/download/jecket.gauntlets_position_fix.geode",
Expand Down
17 changes: 16 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"id": "user95401.gemetry_trash",
"name": "Gemetry Trash",
"version": "v2.8.0",
"version": "v2.8.1",
"developer": "user95401",
"description": "",
"early-load": true,
Expand All @@ -23,6 +23,9 @@
],
"repl_spritesheet": [
"resources/spritesheets/repl_spritesheet/**/*.png"
],
"SecretSheet": [
"resources/spritesheets/SecretSheet/**/*.png"
]
},
"files": [
Expand Down Expand Up @@ -91,12 +94,24 @@
"type": "bool",
"default": true
},
"Freese Menu Game BG when Platformered": {
"name": "Freese Menu Game BG when Platformered",
"description": "Freese Menu Game BG when PlatformeredFreese Menu Game BG when PlatformeredFreese Menu Game BG when PlatformeredFreese Menu Game BG when Platformered....",
"type": "bool",
"default": true
},
"No Platformer in Menu Game": {
"name": "No Platformer in Menu Game",
"description": "no....",
"type": "bool",
"default": false
},
"Animate Menu Game": {
"name": "Animate Menu Game",
"description": "^v<><><^^^vvas<><><>....",
"type": "bool",
"default": true
},
"Random Shit": {
"type": "title",
"name": "Random Shit"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions src/random_shit/menulayerruinify.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
#pragma once
#pragma once
#include <_main.hpp>

#include <Geode/modify/MenuGameLayer.hpp>
class $modify(MenuGameLayerExt, MenuGameLayer) {
$override bool init() {
auto init_result = MenuGameLayer::init();

if (SETTING(bool, "Animate Menu Game")) {
//move
auto moveTo1 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(0, 3)));//
auto moveTo2 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(3, 3)));//
auto moveTo3 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(3, 0)));//
auto moveTo4 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(-3, -3)));//
auto moveTo5 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(0, -3)));//
auto moveTo6 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(-3, 0)));//
auto moveTo7 = CCEaseSineInOut::create(CCMoveTo::create(10, CCPoint(-3, 3)));//
this->runAction(CCRepeatForever::create(CCSequence::create(
moveTo1, moveTo2, moveTo3, moveTo4, moveTo5, moveTo6, moveTo7, nullptr
)));
//rotation
this->runAction(CCRepeatForever::create(CCSequence::create(
CCEaseSineInOut::create(CCRotateTo::create(5, 1.05)),// >
CCEaseSineInOut::create(CCRotateTo::create(5, -1.05)),// <
nullptr
)));
}

auto pulsebg = CCSprite::create("game_bg_13_001.png");
pulsebg->setID("pulsebg");
pulsebg->setScale(1.250f);
Expand Down Expand Up @@ -77,7 +97,7 @@ class $modify(MenuGameLayerExt, MenuGameLayer) {
};

if (SETTING(bool, "No Platformer in Menu Game")) void();
else {
else if (SETTING(bool, "Freese Menu Game BG when Platformered")) {
m_backgroundSpeed = 0.1;
findFirstChildRecursive<CCNode>(m_groundLayer,
[](CCNode* node) {
Expand Down
13 changes: 12 additions & 1 deletion src/resources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ class $modify(GManager_resourcescpp, GManager) {
};
#include <Geode/modify/CCSpriteFrameCache.hpp>
class $modify(CCSpriteFrameCache_resourcescpp, CCSpriteFrameCache) {
$override void removeSpriteFramesFromFile(const char* plist) {
log::debug("{}(\"{}\")", __func__, plist);
return CCSpriteFrameCache::removeSpriteFramesFromFile(plist);
}
$override void addSpriteFramesWithFile(const char* pszPlist) {
if (string::contains(pszPlist, "repl"_spr)) {

if (string::contains(CCFileUtils::get()->fullPathForFilename(pszPlist, 0), ""_spr)) {
log::debug("patching plist \"{}\"", pszPlist);
auto plist_path = CCFileUtils::get()->fullPathForFilename(pszPlist, 0);
if (auto plist_ifstream = std::fstream(plist_path)) {
Expand All @@ -26,8 +31,14 @@ class $modify(CCSpriteFrameCache_resourcescpp, CCSpriteFrameCache) {
std::ofstream(plist_path) << out_strstream.str();
};
}

log::debug("{}(\"{}\")", __func__, pszPlist);
return CCSpriteFrameCache::addSpriteFramesWithFile(pszPlist);
}
$override void addSpriteFrame(CCSpriteFrame* pobFrame, const char* pszFrameName) {
log::debug("{}({}, \"{}\")", __func__, pobFrame, pszFrameName);
return CCSpriteFrameCache::addSpriteFrame(pobFrame, pszFrameName);
}
};

#include <Geode/modify/CCFileUtils.hpp>
Expand Down

0 comments on commit 74e4688

Please sign in to comment.