Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Capeling committed Feb 20, 2024
1 parent 97a48a6 commit bbae3e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Gamemode Swapper Changelog
## v1.0.2
- Fixed the platformer UI not appearing on Android
## v1.0.1
- Adds an option to move the button to top right
- Attempted touch prio fixes
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"android": "2.205",
"mac": "2.200"
},
"version": "v1.0.1",
"version": "v1.0.2",
"id": "capeling.gamemode_picker",
"name": "Gamemode Swapper",
"developer": "Capeling",
Expand Down
7 changes: 6 additions & 1 deletion src/layer/GamemodeLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ void GamemodeLayer::onMode(CCObject* sender) {
case 5: player1->toggleRobotMode(true, true); break;
case 6: player1->toggleSpiderMode(true, true); break;
case 7: player1->toggleSwingMode(true, true); break;
case 8: player1->m_isPlatformer = !player1->m_isPlatformer; break;
case 8:
player1->m_isPlatformer = !player1->m_isPlatformer;
#ifdef GEODE_IS_ANDROID
playLayer->m_uiLayer->togglePlatformerMode(player1->m_isPlatformer);
#endif
break;
case 9: player1->togglePlayerScale(!static_cast<CCMenuItemToggler*>(sender)->m_toggled, true); break;
}
log::info("player speed: {}", player1->m_playerSpeed);
Expand Down

0 comments on commit bbae3e4

Please sign in to comment.