Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Feb 9, 2024
1 parent f4378b8 commit 9c1a158
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 35 deletions.
34 changes: 0 additions & 34 deletions src/Hacks/ForceVisibility.cpp
Original file line number Diff line number Diff line change
@@ -1,34 +0,0 @@
/*#include <Geode/Geode.hpp>
#include <Geode/modify/CCNode.hpp>
#include <Geode/modify/GameObject.hpp>
#include <Geode/modify/MenuLayer.hpp>
#include "../Client/Client.h"
using namespace geode::prelude;
class $modify (MenuLayer)
{
virtual bool init()
{
if (!MenuLayer::init())
return false;
GJAccountManager::get()->m_accountID = 2795;
GJAccountManager::get()->m_username = "ViPriN";
GameManager::get()->m_playerColor = 11;
GameManager::get()->m_playerColor2 = 13;
GameManager::get()->m_playerGlowColor = 47;
GameManager::get()->m_playerFrame = 133;
GameManager::get()->m_playerShip = 42;
GameManager::get()->m_playerBall = 32;
GameManager::get()->m_playerBird = 29;
GameManager::get()->m_playerDart = 30;
GameManager::get()->m_playerRobot = 16;
GameManager::get()->m_playerSpider = 11;
GameManager::get()->m_playerJetpack = 5;
return true;
}
};*/
13 changes: 12 additions & 1 deletion src/Layers/SetupFPSBypass.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SetupFPSBypass : public FLAlertLayer
l->addChild(title);

auto lb = CCLabelBMFont::create("FPS Bypass:", "bigFont.fnt");
lb->setPosition(l->getContentSize() / 2 + ccp(-20, 0));
lb->setPosition(l->getContentSize() / 2 + ccp(-20, 30));
lb->setScale(0.55f);
lb->setAnchorPoint(ccp(1, 0.5f));
l->addChild(lb);
Expand All @@ -63,11 +63,22 @@ class SetupFPSBypass : public FLAlertLayer
ss2 << GameManager::get()->m_customFPSTarget;

inp = geode::InputNode::create(lb->getScaledContentSize().width, "FPS Value");
inp->setPosition(l->getContentSize() / 2 + ccp(50, 30));
inp->setString(ss2.str());
inp->getInput()->setAllowedChars("098765431.");
inp->getInput()->setMaxLabelLength(8);
l->addChild(inp);

auto lb2 = CCLabelBMFont::create("Enabled:", "bigFont.fnt");
lb2->setPosition(l->getContentSize() / 2 + ccp(-20, -10));
lb2->setScale(0.55f);
lb2->setAnchorPoint(ccp(1, 0.5f));
l->addChild(lb2);

auto enb = CCMenuItemToggler::createWithStandardSprites(this, nullptr, 0.8f);
enb->setPosition(l->getContentSize() / 2 + ccp(20, -10));
l->addChild(enb);

auto ok = CCMenuItemSpriteExtra::create(ButtonSprite::create("OK"), this, menu_selector(SetupFPSBypass::onClose));
ok->setPosition(l->getContentSize() / 2 + ccp(0, -82));
l->addChild(ok);
Expand Down

0 comments on commit 9c1a158

Please sign in to comment.