Skip to content

Commit

Permalink
amazing additions
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 committed Feb 28, 2024
1 parent 4db86ed commit 53f6306
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- name: Android64
os: ubuntu-latest
target: Android64

- name: Android32
os: ubuntu-latest
target: Android32

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
os: ubuntu-latest
target: Android64

- name: Android32
os: ubuntu-latest
target: Android32

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
os: ubuntu-latest
target: Android64

- name: Android32
os: ubuntu-latest
target: Android32

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
# 1.1.0
- Ability to hide the "lite" subtext.
- Ability to remove the "GDLite. Free Trial" watermark from PlayLayer
- Android64 support
- Android64 support

# 1.2.0
- Ability to remove More games menu modification (to fix compatibility with other mods)
- Android32 support
8 changes: 7 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"win": "2.204",
"android": "2.205"
},
"version": "v1.1.0",
"version": "v1.2.0",
"id": "yellowcat98.gdlite",
"name": "GDLite",
"developer": "YellowCat98",
Expand Down Expand Up @@ -33,6 +33,12 @@
"description": "Hides the 'GDLite, Free Trial' watermark from PlayLayer.",
"type": "bool",
"default": false
},
"remove-more-games-menu-modification" : {
"name": "Remove More Games Menu Modification",
"description": "Remove more games menu modification to prevent incompatibility",
"type": "bool",
"default": false
}
}
}
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

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

class $modify(MenuLayer) {
bool init() {
Expand Down Expand Up @@ -105,6 +104,10 @@ class $modify(GJMoreGamesLayer) {
CCLayer* cclayer = dynamic_cast<CCLayer*>(getChildren()->objectAtIndex(0));


auto hidemgmm = Mod::get()->getSettingValue<bool>("remove-more-games-menu-modification");

if (!hidemgmm) {

CCSprite* gjmpromo = CCSprite::create("promo_gjm-hd.png"_spr);
CCSprite* gjzpromo = CCSprite::create("promo_gjz-hd.png"_spr);
CCSprite* gjwpromo = CCSprite::create("promo_gjw-hd.png"_spr);
Expand All @@ -130,6 +133,7 @@ class $modify(GJMoreGamesLayer) {
cclayer->addChild(gjwpromo);
cclayer->addChild(gjmpromo);
cclayer->addChild(easports);
}

#endif
}
Expand Down

0 comments on commit 53f6306

Please sign in to comment.