Skip to content

Commit

Permalink
end screen particle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GDColon committed Dec 31, 2024
1 parent 09b07ea commit 9e1a6d0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- "**"
- "main"

jobs:
build:
Expand All @@ -14,23 +14,31 @@ jobs:
config:
- name: Windows
os: windows-latest

# - name: macOS
# os: macos-latest

- 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@v4
- uses: actions/checkout@v3

- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
sdk: 'v3.4.0'
cli: 'v3.2.0'
bindings: geode-sdk/bindings
bindings-ref: main
sdk: nightly
combine: true
target: ${{ matrix.config.target }}

package:
name: Package builds
runs-on: ubuntu-latest
Expand All @@ -40,7 +48,7 @@ jobs:
- uses: geode-sdk/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
- Fixed reloading resources (e.g. from graphics settings) undoing the texture swap

# 1.0.0
- Initial releasedo
- Initial released
3 changes: 2 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"version": ">=1.16.0",
"importance": "required"
}
]
],
"tags": ["customization"]
}
13 changes: 8 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ class $modify(EndLevelLayer) {
EndLevelLayer::customSetup();
if (!Mod::get()->getSettingValue<bool>("goldUI")) return;

// todo: change particle colors
// unfortunately, i can't just trick the game into thinking they're secret coins
// since that changes how it checks for collected coins :(
m_coinsVerified = false; // bronze particles look good enough for now

removeUITint(m_mainLayer, "coin-1-sprite");
removeUITint(m_mainLayer, "coin-2-background");
removeUITint(m_mainLayer, "coin-3-sprite");
Expand All @@ -95,6 +90,14 @@ class $modify(EndLevelLayer) {
spr->setColor(ccWHITE);
}
}

void coinEnterFinished(CCPoint p) {
if (!Mod::get()->getSettingValue<bool>("goldUI")) return;
bool notLocal = m_notLocal;
m_notLocal = false; // use 'official level' particles
EndLevelLayer::coinEnterFinished(p);
m_notLocal = notLocal;
}
};

// coins in pause menu mod!
Expand Down

0 comments on commit 9e1a6d0

Please sign in to comment.