Skip to content

Commit

Permalink
bruh moment
Browse files Browse the repository at this point in the history
  • Loading branch information
iArtie committed Mar 28, 2024
1 parent b78152a commit 871339e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GJWorldNodeDecomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bool GJWorldNodeDecomp::init(

m_index = index;

std::cout << index << std::endl;
/* std::cout << index << std::endl;*/
m_worldSelectLayer = worldSelectLayer;


Expand Down
2 changes: 1 addition & 1 deletion src/SubZeroSelectLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void SubZeroSelectLayer::updateColors() {
m_ground->updateGround01Color(color);
m_ground->updateGround02Color(color);
}
void SubZeroSelectLayer::scollLayerMoved(CCPoint point) {
void SubZeroSelectLayer::scrollLayerMoved(CCPoint point) {
log::info("scrollLayerMoved");

std::cout << "Works!" << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/SubZeroSelectLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SubZeroSelectLayer : public cocos2d::CCLayer, public BoomScrollLayerDelega
void onPlay(cocos2d::CCObject*);
void onBack(cocos2d::CCObject*);
void keyBackClicked();
void scollLayerMoved(cocos2d::CCPoint);
void scrollLayerMoved(cocos2d::CCPoint) override;
void keyDown(int);
void updateColors();
void instantPage(cocos2d::CCObject*,int);
Expand Down
57 changes: 57 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <Geode/modify/LoadingLayer.hpp>
#include <Geode/modify/SecretLayer4.hpp>
#include <Geode/modify/LevelSelectLayer.hpp>
#include <Geode/modify/GJScoreCell.hpp>
#include <Geode/modify/GJUserScore.hpp>
#include <Geode/modify/LeaderboardsLayer.hpp>
#include <Geode/Enums.hpp>
#include "SubZeroSelectLayer.h"
#include "SubZeroSelectLayer.cpp"
Expand All @@ -30,6 +33,28 @@ using namespace geode::prelude;
#include <filesystem>
using namespace more;

//class $modify(LeaderboardsLayer)
//{
// void onTop(cocos2d::CCObject * a1)
// {
// LeaderboardsLayer::onTop(a1);
//
//
// // Suponiendo que m_userScores es un CCArray de GJUserScore
// for (int i = 0; i < this->m_userScores->count(); ++i) {
// // Obtener el GJUserScore en la posición 'i'
// GJUserScore* userScore = dynamic_cast<GJUserScore*>(this->m_userScores->objectAtIndex(i));
//
// // Verificar si la conversión fue exitosa
// if (userScore != nullptr) {
// // Imprimir el m_userName utilizando std::cout
// std::cout << "m_userName: " << userScore->m_userName.c_str() << std::endl;
// }
// }
//
// return true;
// }
//};
//class TestLayer : public CCLayer, BoomScrollLayerDelegate, DynamicScrollDelegate {
//public:
// static TestLayer* create() {
Expand Down Expand Up @@ -285,6 +310,38 @@ using namespace more;
// BoomScrollLayer* m_scrollLayer;
//};
#include <Geode/utils/web.hpp>
//class $modify(GJUserScore)
//{
// static GJUserScore* create(cocos2d::CCDictionary * a1)
// {
// // User ID
// Mod::get()->setSavedValue("mgcruser", a1->valueForKey("2")->intValue());
//
// // Glow Color
// Mod::get()->setSavedValue("mgcrglow", a1->valueForKey("51")->intValue());
//
// return GJUserScore::create(a1);
// }
//};
//
//class $modify(GJScoreCell)
//{
// TodoReturn loadFromScore(GJUserScore * a1)
// {
// GJScoreCell::loadFromScore(a1);
//
// int userID = a1->m_userID;
// int savedUserID = Mod::get()->getSavedValue<int>("mgcruser");
//
// if (userID == savedUserID)
// {
// int glowColor = Mod::get()->getSavedValue<int>("mgcrglow");
// std::cout << "Glow Color for User ID " << userID << ": " << glowColor << std::endl;
// }
// }
//};


class $modify(LoadingLayer)
{
void loadAssets()
Expand Down

0 comments on commit 871339e

Please sign in to comment.