Skip to content

Commit

Permalink
new ahmazing update!
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 committed Feb 26, 2024
1 parent 0eb3b66 commit 8d46289
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 37 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 1.0.0
- Inital Release

# 1.1.0
- Ability to hide the "lite" subtext.
- Ability to remove the "GDLite. Free Trial" watermark from PlayLayer
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VERY COOL MOD!!!
# GDLite

this changes geometry dash into geometry dash lite.
this changes geometry dash into geometry dash lite. (with a few changes)

# THIS DOESNT RESTRICT YOU FROM FULL VER GD FEATURES!!
4 changes: 2 additions & 2 deletions about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Hello Gamers!

This mod turns Geometry dash into Geometry Dash Lite, purely cosmetic, doesn't actually restrict you from any Full Version features.
This mod turns Geometry dash into Geometry Dash Lite, purely cosmetic, doesn't actually restrict you from any Full Version features. (keep in mind that this is based on the older version of geometry dash lite.)

## remember kids, breathing is essential to the human body.
mobile will be coming soon,
21 changes: 19 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"geode": "2.0.0",
"gd": "2.204",
"version": "v1.0.0",
"gd": {
"win": "2.204",
"android": "2.205"
},
"version": "v1.1.0",
"id": "yellowcat98.gdlite",
"name": "GDLite",
"developer": "YellowCat98",
Expand All @@ -17,5 +20,19 @@
"sprites": [
"resources/*.png"
]
},
"settings": {
"hide-lite-spr": {
"name": "Hide Lite Sprite",
"description": "Hides the Lite Sprite from MenuLayer",
"type": "bool",
"default": false
},
"hide-gdlite-watermark": {
"name": "Hide the GDLite watermark",
"description": "Hides the 'GDLite, Free Trial' watermark from PlayLayer.",
"type": "bool",
"default": false
}
}
}
70 changes: 39 additions & 31 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
#include <Geode/modify/GJPromoPopup.hpp>
#include <Geode/modify/CreatorLayer.hpp>
#include <Geode/modify/GJMoreGamesLayer.hpp>
#include <Geode/modify/LoadingLayer.hpp>
#include <string>

using namespace geode::prelude;
using namespace cocos2d;
using namespace std;

class $modify(MenuLayer) {
bool init() {
Expand All @@ -16,7 +20,19 @@ class $modify(MenuLayer) {

CCSprite* litespr = CCSprite::createWithSpriteFrameName("GJ_lite_001.png");

litespr->setPosition(ccp(430, 233));
CCSprite* maintitle = static_cast<CCSprite*>(this->getChildByID("main-title"));
auto maintitlexpos = maintitle->getPositionX();
auto maintitleypos = maintitle->getPositionY();

litespr->setPosition(ccp(maintitlexpos + 149, maintitleypos - 32));
litespr->setZOrder(2);
litespr->setID("lite-button");


auto hideornot = Mod::get()->getSettingValue<bool>("hide-lite-spr");

litespr->setVisible(!hideornot);


this->addChild(litespr);

Expand All @@ -29,10 +45,10 @@ class $modify(MenuLayer) {
if (!MenuLayer::init())
return false;

CCMenu* rightSideMenu = dynamic_cast<CCMenu*>(this->getChildByID("right-side-menu"));
CCMenu* rightSideMenu = static_cast<CCMenu*>(this->getChildByID("right-side-menu"));

if (rightSideMenu) {
CCMenuItemSpriteExtra* dailychest = dynamic_cast<CCMenuItemSpriteExtra*>(rightSideMenu->getChildByID("daily-chest-button"));
CCMenuItemSpriteExtra* dailychest = static_cast<CCMenuItemSpriteExtra*>(rightSideMenu->getChildByID("daily-chest-button"));

if (dailychest) {
CCSprite* freekeveks = CCSprite::createWithSpriteFrameName("GJ_freeStuffBtn_001.png");
Expand All @@ -49,16 +65,12 @@ class $modify(MenuLayer) {
if (!MenuLayer::init())
return false;

CCMenu* MainMenu = dynamic_cast<CCMenu*>(this->getChildByID("main-menu"));
CCMenu* MainMenu = static_cast<CCMenu*>(this->getChildByID("main-menu"));

if (MainMenu) {
CCMenuItemSpriteExtra* editbtn = dynamic_cast<CCMenuItemSpriteExtra*>(MainMenu->getChildByID("editor-button"));
CCMenuItemSpriteExtra* editbtn = static_cast<CCMenuItemSpriteExtra*>(MainMenu->getChildByID("editor-button"));

if (editbtn) {
CCSprite* fullbtn = CCSprite::createWithSpriteFrameName("GJ_fullBtn_001.png");
editbtn->setNormalImage(fullbtn);
}
}
CCSprite* fullbtn = CCSprite::createWithSpriteFrameName("GJ_fullBtn_001.png");
editbtn->setNormalImage(fullbtn);

return true;
}
Expand All @@ -69,10 +81,10 @@ class $modify(MenuLayer) {
if (!MenuLayer::init())
return false;

CCMenu* moregamesmenu = dynamic_cast<CCMenu*>(this->getChildByID("more-games-menu"));
CCMenu* moregamesmenu = static_cast<CCMenu*>(this->getChildByID("more-games-menu"));

if (moregamesmenu) {
CCMenuItemSpriteExtra* moregamesbtn = dynamic_cast<CCMenuItemSpriteExtra*>(moregamesmenu->getChildByID("more-games-button"));
CCMenuItemSpriteExtra* moregamesbtn = static_cast<CCMenuItemSpriteExtra*>(moregamesmenu->getChildByID("more-games-button"));

if (moregamesbtn) {
CCSprite* freekeveks = CCSprite::createWithSpriteFrameName("GJ_freeLevelsBtn_001.png");
Expand All @@ -84,23 +96,11 @@ class $modify(MenuLayer) {
}
};

class $modify(CreatorLayer) {
bool init() {
if (!CreatorLayer::init())
return false;

CCLabelBMFont* label = CCLabelBMFont::create("Buy Geometry Dash at your local walmart!", "bigFont.fnt");

label->setPosition(ccp(284, 19));
label->setScale(0.5f);

this->addChild(label);
}
};

class $modify(GJMoreGamesLayer) {
void customSetup() {
GJMoreGamesLayer::customSetup();
#ifndef GEODE_IS_ANDROID


CCLayer* cclayer = dynamic_cast<CCLayer*>(getChildren()->objectAtIndex(0));

Expand All @@ -111,6 +111,7 @@ class $modify(GJMoreGamesLayer) {
CCLabelBMFont* easports = CCLabelBMFont::create("this bad design is fixed in the full version of Geometry Dash Lite.", "bigFont.fnt");

CCLabelBMFont* wgat = dynamic_cast<CCLabelBMFont*>(cclayer->getChildren()->objectAtIndex(4));



gjzpromo->setPosition(ccp(283, 219));
Expand All @@ -129,21 +130,28 @@ class $modify(GJMoreGamesLayer) {
cclayer->addChild(gjwpromo);
cclayer->addChild(gjmpromo);
cclayer->addChild(easports);

#endif
}
};


class $modify(PlayLayer) {
bool init(GJGameLevel* p0, bool p1, bool p2) {
if (!PlayLayer::init(p0, p1, p2))
return false;

UILayer* uilayer = dynamic_cast<UILayer*>(this->getChildByID("UILayer"));
UILayer* uilayer = static_cast<UILayer*>(this->getChildByID("UILayer"));
CCLabelBMFont* label = CCLabelBMFont::create("GDLite. free trial", "bigFont.fnt");

label->setPosition(ccp(41, 9));
label->setScale(0.225f);
label->setPosition(ccp(41, 9));
label->setScale(0.225f);

auto hidegdlitewmornot = Mod::get()->getSettingValue<bool>("hide-gdlite-watermark");

label->setVisible(!hidegdlitewmornot);

uilayer->addChild(label);
uilayer->addChild(label);
return true;
}
};

0 comments on commit 8d46289

Please sign in to comment.