Skip to content

Commit

Permalink
shit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jan 31, 2024
1 parent b164974 commit 38ef8f4
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 17 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"geode": "2.0.0",
"version": "v1.1.0",
"version": "v1.0.4",
"gd": {
"win": "2.204",
"android": "*"
Expand Down
7 changes: 6 additions & 1 deletion src/Client/AndroidUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AndroidUI : public cocos2d::CCLayerColor {
{
if (Client::GetModuleEnabled("speedhack-enabled"))
{
float v = 1.0f;
v = 1.0f;

if (SpeedhackTop::instance->text.size() != 0 && !SpeedhackTop::instance->text.ends_with("."))
{
Expand Down Expand Up @@ -428,6 +428,11 @@ class AndroidBall : public CCLayer

virtual void update(float dt)
{
//if (CCScene::get()->getChildByID("android-ui"))
// CCDirector::get()->setNotificationNode(nullptr);
//else
// CCDirector::get()->setNotificationNode(this);

UpdateVisible(false);
}

Expand Down
1 change: 1 addition & 0 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ClientUtils
speedhack->modules.push_back(new SpeedhackTop());
speedhack->modules.push_back(new Module("Enabled", "speedhack-enabled", "Is the speedhack enabled?"));
speedhack->modules.push_back(new Module("Speedhack Music", "speedhack-music", "Speedhack all sound by your speed modifier", true));
speedhack->modules.push_back(new Module("Gameplay Only", "speedhack-gameplay", "Only enables the speedhack in gameplay and editor"));

(reinterpret_cast<SpeedhackTop*>(speedhack->modules.front()))->format = "%x";

Expand Down
30 changes: 27 additions & 3 deletions src/Client/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ class Speedhack : public Window//, public TextInputDelegate
menu->addChild(slider, 2);

modules[0]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 50) - ccp(180 / 2, 0) + ccp(10, 0));
modules[1]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 200) - ccp(180 / 2, 0) + ccp(10, 0));
modules[2]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 250) - ccp(180 / 2, 0) + ccp(10, 0));

modules[1]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 110) - ccp(180 / 2, 0) + ccp(10, 0));
modules[2]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 110 - (24 * 1)) - ccp(180 / 2, 0) + ccp(10, 0));
modules[3]->makeAndroid(menu, ccp(menu->getContentSize().width / 2, menu->getContentSize().height - 110 - (24 * 2)) - ccp(180 / 2, 0) + ccp(10, 0));
//static_cast<geode::InputNode*>(menu->getChildByID("speedhack-top"))->getInput()->setDelegate(this);

auto trash = CCMenuItemSpriteExtra::create(CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"), menu, menu_selector(Speedhack::clear));
Expand Down Expand Up @@ -582,6 +584,22 @@ class Config : public Window

}

void onLink(CCObject* sender)
{
auto a = geode::createQuickPopup(
"Hold Up!",
"Links are spooky! Are you sure you want to go to <cy>" + std::string(as<CCNode*>(sender)->getID()) + "</c>?",
"Cancel", "Yes",
[](FLAlertLayer* a, bool btn2) {
if (btn2) {
CCApplication::get()->openURL(a->getID().c_str());
}
}
);

a->setID(as<CCNode*>(sender)->getID());
}

void cocosCreate(CCMenu* menu)
{
btns.clear();
Expand Down Expand Up @@ -662,8 +680,14 @@ class Config : public Window
menu->addChild(lED);
menu->addChild(ED);

auto discord = CCMenuItemSpriteExtra::create(CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png"), menu, nullptr); // https://discord.gg/DfQSTEnQKK
auto discord = CCMenuItemSpriteExtra::create(CCSprite::createWithSpriteFrameName("gj_discordIcon_001.png"), menu, menu_selector(Config::onLink)); // https://discord.gg/DfQSTEnQKK
discord->setPosition(ccp(menu->getContentSize().width, 0) + ccp(-10, 12));
discord->setID("https://discord.gg/DfQSTEnQKK");
menu->addChild(discord);

auto yt = CCMenuItemSpriteExtra::create(CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png"), menu, menu_selector(Config::onLink)); // https://www.youtube.com/@TheSillyDoggo
yt->setPosition(ccp(menu->getContentSize().width, 0) + ccp(-10, 12) + ccp(0, 35));
yt->setID("https://www.youtube.com/@TheSillyDoggo");
menu->addChild(yt);
}
};
26 changes: 14 additions & 12 deletions src/Hacks/SolidWaveTrail.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#include <Geode/Geode.hpp>
#include <Geode/modify/HardStreak.hpp>
/*#include <Geode/Geode.hpp>
//#include <Geode/modify/HardStreak.hpp>
#include <Geode/modify/CCDrawNode.hpp>
#include "../Client/Client.h"
using namespace geode::prelude;
/*
class $modify (HardStreak)
class $modify (CCDrawNode)
{
inline void drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor)
void drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor)
{
log::info("a");
HardStreak::drawPolygon(verts, count, fillColor, borderWidth, borderColor);
CCDrawNode::drawPolygon(verts, count, fillColor, borderWidth, borderColor);
}
};
*/
/*void updateStroke(float p0)
{
HardStreak::updateStroke(p0);
/*void updateStroke(float p0)
{
HardStreak::updateStroke(p0);
log::info("s");
}//
log::info("s");
}//
};*/
3 changes: 3 additions & 0 deletions src/Hacks/Speedhack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class $modify (CCScheduler)
if (v > 99999)
v = 99999;

if (Client::GetModuleEnabled("speedhack-gameplay"))
if (!(PlayLayer::get() || GameManager::sharedState()->getEditorLayer())) { v = 1.0f; }

FMOD::ChannelGroup* masterGroup;
FMODAudioEngine::sharedEngine()->m_system->getMasterChannelGroup(&masterGroup);
masterGroup->setPitch(Client::GetModuleEnabled("speedhack-music") ? v : 1);
Expand Down

0 comments on commit 38ef8f4

Please sign in to comment.