Skip to content

Commit 40fc9c0

Browse files
committed
update(main): Fixed touch priority issue
1 parent 66360a8 commit 40fc9c0

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/multi-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build the mod
4040
uses: geode-sdk/build-geode-mod@main
4141
with:
42-
#sdk: 'nightly'
42+
sdk: nightly
4343
bindings: geode-sdk/bindings
4444
bindings-ref: main
4545
combine: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the mod to your `mod.json`:
2222
"dependencies": [
2323
{
2424
"id": "jouca.badgesapi",
25-
"version": ">=v1.2.4",
25+
"version": ">=v1.3.1",
2626
"importance": "required"
2727
},
2828
{

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## <cj>v1.3.1</c> <cb>(2025-11-22)</c>
3+
* <cy>Fixed</c> issues related to touch priority in badge menu
4+
25
## <cj>v1.3.0</c> <cb>(2025-09-18)</c>
36
* <cg>Added</c> priority tag for badges to place them more higher on the list than some others badges
47

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "4.8.0",
2+
"geode": "4.9.0",
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
@@ -8,7 +8,7 @@
88
},
99
"id": "jouca.badgesapi",
1010
"name": "Badges API",
11-
"version": "v1.3.0",
11+
"version": "v1.3.1",
1212
"developer": "Jouca",
1313
"description": "API mod to integrate badges & optimizing UI",
1414
"dependencies": {

src/badges/BadgeMenu.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ bool BadgeMenu::setup() {
2222
auto director = cocos2d::CCDirector::sharedDirector();
2323

2424
m_noElasticity = true;
25-
registerWithTouchDispatcher();
26-
setTouchEnabled(true);
27-
setKeypadEnabled(true);
2825

2926
CCArrayExt<BadgeMenuCell*> cells;
3027
int badges_max = 8;
@@ -44,7 +41,6 @@ bool BadgeMenu::setup() {
4441
border->ignoreAnchorPointForPosition(false);
4542
border->setPositionX(m_mainLayer->getContentSize().width / 2);
4643
border->setPositionY(border->getContentSize().height / 2 + 5);
47-
setTouchPriority(100);
4844
m_mainLayer->addChild(border);
4945

5046
CCSprite* title_badges = CCSprite::create("badges.png"_spr);

0 commit comments

Comments
 (0)