Skip to content

Commit

Permalink
26
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Sep 12, 2024
1 parent 4997ca7 commit bb45be4
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 21 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.5.0-list1",
"version": "v2.6.0-list1",
"list": [

"https://github.com/MathieuAR-GDPSFH/Gauntlets-Position-Fix/releases/latest/download/jecket.gauntlets_position_fix.geode",
Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"geode": "3.4.0",
"geode": "3.5.0",
"gd": {
"win": "2.206",
"android": "2.206",
Expand All @@ -8,7 +8,7 @@
},
"id": "user95401.gemetry_trash",
"name": "Gemetry Trash",
"version": "v2.5.0",
"version": "v2.6.0",
"developer": "user95401",
"description": "",
"early-load": true,
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.
Binary file modified resources/spritesheets/repl_spritesheet/GJ_featuredBtn_001.png
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.
3 changes: 1 addition & 2 deletions src/_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,4 @@ inline auto raw_content_repo_lnk = std::string("https://raw.githubusercontent.co
#include "random_shit/menulayerruinify.hpp"
#include "random_shit/menuitems.hpp"
#include "random_shit/loadinglayer.hpp"
#include "random_shit/secondfloor.hpp"
#include "random_shit/gradientBackground.hpp"
#include "random_shit/secondfloor.hpp"
2 changes: 0 additions & 2 deletions src/random_shit/gradientBackground.hpp

This file was deleted.

6 changes: 1 addition & 5 deletions src/random_shit/loadinglayer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ class $modify(LoadingLayerExt, LoadingLayer) {
if (new_bg) bg->setDisplayFrame(new_bg->displayFrame());
}

int bgMusicChannel = 0;
FMODAudioEngine::get()->m_backgroundMusicChannel->getIndex(&bgMusicChannel);
FMODAudioEngine::get()->playMusic(
"loading_theme.mp3", 1, 0, bgMusicChannel
);
GameManager::get()->fadeInMusic("loading_theme.mp3");

return rtn;
}
Expand Down
23 changes: 23 additions & 0 deletions src/random_shit/menulayerruinify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,29 @@ class $modify(MenuLayerExt, MenuLayer) {
if (auto node = this->getChildByIDRecursive("more-games-button"))
node->setVisible(0);

if (auto title = this->getChildByIDRecursive("main-title")) {

auto pos = title->getPosition();
auto parent = title->getParent();

title->removeFromParentAndCleanup(0);

auto menu = CCMenu::createWithItem(CCMenuItemExt::createSpriteExtra(
title, [](auto) {
CCApplication::get()->openURL(fmt::format("http://{}", server).c_str());
}
));

auto btn = getChild<CCMenuItemSpriteExtra>(menu, 0);
btn->setPosition(CCPointZero);
btn->m_colorEnabled = 1;
btn->m_animationEnabled = 0;

menu->setPosition(pos);
parent->addChild(menu);

}

//centerNode
CCNode* centerNode = CCNode::create();
centerNode->setID("centerNode");
Expand Down
13 changes: 6 additions & 7 deletions src/resources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class $modify(CCFileUtilsExt, CCFileUtils) {
$override virtual unsigned char* getFileData(const char* pszFileName, const char* pszMode, unsigned long* pSize) {
//log::debug("{}.pszFileName = {}", __FUNCTION__, pszFileName);
if (string::contains(pszFileName, "ui/")) {
auto myfp = Mod::get()->getResourcesDir() / string::replace(pszFileName, "ui/", "ui.");
auto myfp = Mod::get()->getID() + "/" + string::replace(pszFileName, "ui/", "ui.");
//log::debug("{}.myfp = {}", __FUNCTION__, myfp);
if (cocos::fileExistsInSearchPaths(myfp.string().c_str())) {
pszFileName = myfp.string().c_str();
if (cocos::fileExistsInSearchPaths(myfp.c_str())) {
pszFileName = myfp.c_str();
}
}
//log::debug("{}.path = {}", __FUNCTION__, path);
Expand Down Expand Up @@ -121,9 +121,9 @@ class $modify(GJGarageLayerNoRandSelector, GJGarageLayer) {
if (!GJGarageLayer::init()) return 0;

if (auto shards_menu = typeinfo_cast<CCMenu*>(this->getChildByIDRecursive("shards-menu"))) {
auto openupbtnimagelabel = CCLabelBMFont::create("Rand\nSel.", "goldFont.fnt");
openupbtnimagelabel->setAlignment(kCCTextAlignmentCenter);
auto openupbtnimage = geode::AccountButtonSprite::create(openupbtnimagelabel, AccountBaseColor::Gray);
auto openupbtnimage = CCLabelBMFont::create("Rand\nSel.", "goldFont.fnt");
openupbtnimage->setAlignment(kCCTextAlignmentCenter);
openupbtnimage->setScale(0.5f);
auto openupbtn = CCMenuItemExt::createSpriteExtra(openupbtnimage,
[](auto) {
auto popup = FLAlertLayer::create(
Expand Down Expand Up @@ -258,7 +258,6 @@ class $modify(GJGarageLayerNoRandSelector, GJGarageLayer) {

}
);
openupbtn->getNormalImage()->setScale(0.75f);
shards_menu->addChild(openupbtn);
shards_menu->updateLayout();
}
Expand Down
6 changes: 4 additions & 2 deletions src/special_sprites.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ class $modify(SpecialSprites, CCSprite) {
auto colorID = rand() % 23;
auto color = reinterpret_cast<LevelSelectLayer*>(sprite)->colorForPage(colorID);
sprite->runAction(CCTintTo::create(3.0f, color.r, color.g, color.b));
sprite->setTag(colorID);
}
}
void tryCetupGradientColorSch(float) {
void trySetupGradientColorSch(float) {
if (auto base_layer = typeinfo_cast<CCSprite*>(this)) {
if (ccc3BEqual(base_layer->getColor(), {0, 102, 255})) {
//color
Expand All @@ -31,6 +32,7 @@ class $modify(SpecialSprites, CCSprite) {
color_layer->setAnchorPoint(CCPointZero);
color_layer->setBlendFunc({ GL_ONE, GL_ONE });
color_layer->setColor(color);
color_layer->setOpacity(255);
color_layer->schedule(schedule_selector(SpecialSprites::gradientColorSch), 3.0f);
base_layer->addChild(color_layer, 0, colorID);
};
Expand All @@ -39,7 +41,7 @@ class $modify(SpecialSprites, CCSprite) {
$override static CCSprite* create(const char* pszFileName) {
if (string::contains(pszFileName, "GJ_gradientBG")) {
auto base_layer = CCSprite::create(pszFileName);
base_layer->scheduleOnce(schedule_selector(SpecialSprites::tryCetupGradientColorSch), 0.f);
base_layer->scheduleOnce(schedule_selector(SpecialSprites::trySetupGradientColorSch), 0.f);
return base_layer;
}
return CCSprite::create(pszFileName);
Expand Down

0 comments on commit bb45be4

Please sign in to comment.