Skip to content

Commit

Permalink
add dos punto dos to profile info
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Nov 19, 2023
1 parent 9bc1427 commit c62f6f8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/hooks/GJUserScore.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#pragma once

#include <Geode/Bindings.hpp>
#include <Geode/modify/GJUserScore.hpp>

using namespace geode::prelude;

class $modify(BIGJUserScore, GJUserScore) {
int m_color3 = 0;
int m_moons = 0;
int m_accSwing = 0;
int m_accJetpack = 0;

static GJUserScore* create(cocos2d::CCDictionary* dict) {
auto score = static_cast<BIGJUserScore*>(GJUserScore::create(dict));

score->m_fields->m_color3 = dict->valueForKey("51")->intValue();
score->m_fields->m_moons = dict->valueForKey("52")->intValue();
score->m_fields->m_accSwing = dict->valueForKey("53")->intValue();
score->m_fields->m_accJetpack = dict->valueForKey("54")->intValue();

return score;
}
};
9 changes: 8 additions & 1 deletion src/hooks/ProfilePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "../managers/BetterInfoOnline.h"
#include "../layers/LeaderboardViewLayer.h"

#include "GJUserScore.hpp"

using namespace geode::prelude;

namespace StaticStringHelper {
Expand Down Expand Up @@ -55,7 +57,12 @@ class $modify(BIProfilePage, ProfilePage) {
<< "\n\n";//Leaderboard Icon: " << StaticStringHelper::getIconType(score->getIconType()) (is not sent)
contentStream << "Friend Requests: " << StaticStringHelper::getFriendRequestType(score->m_friendStatus)
<< "\nPrivate Messages: " << StaticStringHelper::getMessageType(score->m_messageState)
<< "\nComment History: " << StaticStringHelper::getMessageType(score->m_commentHistoryStatus);
<< "\nComment History: " << StaticStringHelper::getMessageType(score->m_commentHistoryStatus)
<< "\n"
<< "\nGlow Color: #" << static_cast<BIGJUserScore*>(score)->m_fields->m_color3
<< "\nMoons: " << static_cast<BIGJUserScore*>(score)->m_fields->m_moons
<< "\nSwingcopter: #" << static_cast<BIGJUserScore*>(score)->m_fields->m_accSwing
<< "\nJetpack: #" << static_cast<BIGJUserScore*>(score)->m_fields->m_accJetpack;
if(score->m_userID == GM->m_playerUserID) contentStream << "\n\nBootups: " << GM->m_bootups;

//if(score->m_userID == cvoltonID) contentStream << "\n\nThis user is epic!";
Expand Down

0 comments on commit c62f6f8

Please sign in to comment.