Skip to content

Commit

Permalink
ios support
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 committed Apr 28, 2024
1 parent 435833e commit e2e59d5
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 115 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/action.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/main.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- "v110"
- "**"

jobs:
build:
Expand All @@ -15,37 +15,41 @@ jobs:
- name: Windows
os: windows-latest

- name: Android64
os: ubuntu-latest
target: Android64

- name: iOS # what kind of person makes an ios version of their mod but not macos (me)
os: macos-latest
target: iOS

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

- name: Android64
os: ubuntu-latest
target: Android64

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build the mod
uses: geode-sdk/build-geode-mod@main
uses: RoootTheFox/build-geode-mod@main
with:
combine: true
sdk: nightly
target: ${{ matrix.config.target }}

package:
name: Package builds
runs-on: ubuntu-latest
needs: ['build']

steps:
- uses: geode-sdk/build-geode-mod/combine@main
- uses: RoootTheFox/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@

# 1.2.1
- Change GDLite watermark position
- Removed "Hide GDLite watermark" option. can be hiden by setting GDLite watermark position to 0.
- Removed "Hide GDLite watermark" option. can be hiden by setting GDLite watermark position to 0.

# 1.2.2
- ios support
11 changes: 9 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"win": "2.204",
"android": "2.205"
},
"version": "v1.2.1",
"version": "v1.2.2",
"id": "yellowcat98.gdlite",
"name": "GDLite",
"developer": "YellowCat98",
"description": "This mod turns Geometry dash into Geometry Dash Lite, purely cosmetic, doesn't actually restrict you from any Full Version features.",
"early-load": true,
"repository": "https://github.com/YellowCat98/GDLite/",
"issues": {
"url": "https://github.com/YellowCat98/GDLite/issues",
Expand All @@ -32,7 +33,7 @@
"type": "bool",
"default": false
},
"remove-more-games-menu-modification" : {
"remove-more-games-menu-modification": {
"name": "Remove More Games Menu Modification",
"description": "Remove more games menu modification to prevent incompatibility",
"type": "bool",
Expand All @@ -45,6 +46,12 @@
"default": 1,
"min": 0,
"max": 4
},
"lite-spr-onloadinglayer": {
"name": "Lite sprite in LoadingLayer",
"description": "Adds the Lite sprite in the LoadingLayer.",
"type": "bool",
"default": false
}
}
}
20 changes: 20 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,24 @@ class $modify(PlayLayer) {
uilayer->addChild(label);
return true;
}
};

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

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

CCSprite* maintitle = static_cast<CCSprite*>(this->getChildByID("gd-logo")); /* i love you robtop */
auto maintitlexpos = maintitle->getPositionX();
auto maintitleypos = maintitle->getPositionY();

litespr->setPosition(ccp(maintitlexpos + 149, maintitleypos - 32));

this->addChild(litespr);

return true;
}

};

0 comments on commit e2e59d5

Please sign in to comment.