Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Sep 6, 2024
1 parent 4f31366 commit a80cafa
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"configurations": [
{
"name": "x64-Release",
"name": "x64-Clang-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"inheritEnvironments": [ "clang_cl_x64_x64" ],
"variables": []
}
]
Expand Down
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": "v3-list1",
"version": "v4-list1",
"list": [

"https://github.com/MathieuAR-GDPSFH/Gauntlets-Position-Fix/releases/latest/download/jecket.gauntlets_position_fix.geode",
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"id": "user95401.gemetry_trash",
"name": "Gemetry Trash",
"version": "v3.0.0",
"version": "v4.0.0",
"developer": "user95401",
"description": "",
"early-load": true,
Expand Down
3 changes: 2 additions & 1 deletion src/_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ inline auto raw_content_repo_lnk = std::string("https://raw.githubusercontent.co
#include "random_shit/gtasamap.hpp"
#include "random_shit/menulayerruinify.hpp"
#include "random_shit/menuitems.hpp"
#include "random_shit/loadinglayer.hpp"
#include "random_shit/loadinglayer.hpp"
#include "random_shit/secondfloor.hpp"
2 changes: 1 addition & 1 deletion src/links.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inline void loadServerInf() {
if (web::WebResponse* res = e->getValue()) {
std::string data = res->string().unwrapOr("no res");
if ((res->code() < 399) and (res->code() > 10)) {
server = data;
server = std::regex_replace(data, std::regex("\\s"), "");
log::debug("server = {}", server);
}
else {
Expand Down
45 changes: 45 additions & 0 deletions src/random_shit/secondfloor.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#include <Geode/Geode.hpp>
#include <Geode/ui/GeodeUI.hpp>
using namespace geode::prelude;

class TheTowerSecondFloor : public CCLayer {
public:
CREATE_FUNC(TheTowerSecondFloor);
bool init() {
this->CCLayer::init();

auto msg = MDTextArea::create(
"# really cuming son"
"\n""but later xd. not now. not when we hasnt players enouth",
this->getContentSize() - (CCSize(1, 0.5) * 280)
);
addChildAtPosition(msg, Anchor::Center);

auto bg = CCScale9Sprite::createWithSpriteFrameName("towerBG_01_001.png", {15, 6, 6, 15 });
bg->setContentSize(msg->getContentSize() + (CCSize(1,1) * 88));
bg->setZOrder(-1);
addChildAtPosition(bg, Anchor::Center);

return 1;
}
};

#include <Geode/modify/CCMenuItem.hpp>
class $modify(CCMenuItemTheTowerSecondFloor, CCMenuItem) {
$override void activate() {

auto listener = typeinfo_cast<CCNode*>(this->m_pListener);
if (getID() == "second-floor-button" and listener) {
auto mainnode = listener->getChildByIDRecursive("main-node");
if (mainnode) mainnode->runAction(CCEaseSineInOut::create(CCMoveTo::create(
1.f, { mainnode->getPositionX(), listener->getContentHeight() / -2 }
)));
auto floor2 = TheTowerSecondFloor::create();
floor2->setPositionY(listener->getContentHeight());
mainnode->addChild(floor2);
return;
}

return CCMenuItem::activate();
}
};

0 comments on commit a80cafa

Please sign in to comment.