Skip to content

Commit

Permalink
Add SN30 Pro 2 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 committed May 15, 2021
1 parent ebc9fc1 commit dcabb9f
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 19 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ A mod for CrossCode that adds some additional gamepad options. For use with [CCL
- You may now swap LT and RT
- You may now swap A and B
- You may now swap X and Y
- The official Nintendo Switch gamepad icon theme, as seen in the Switch port of the game, is now a selectable icon theme
- The Plus and Minus buttons on the Default theme have been replaced with more readable buttons
- There are two additional color schemes for the Switch icon theme - SFC and SNES
- The SFC (Super Famicom) and SNES (Super Nintendo) color schemes were made especially for users of the [8BitDo SN30Pro/SF30Pro](https://i.imgur.com/Ld8Zrnk.jpg)
- Some minor sprite alignment issues in the original sprite sheet have been corrected
- The official Nintendo Switch gamepad icon theme, as seen in the Switch port of the game, is now a selectable icon theme
- The Plus and Minus buttons on the Default Switch theme have been replaced with more readable buttons
- There are three additional color schemes for the Switch icon theme:
- The SNES (Super Nintendo) and SFC (Super Famicom) color schemes were made to match the [8BitDo SN30 and SFC30](screenshots/sn30-sfc30.png)
- The Pro2 color scheme was made to match the [8BitDo SN30 Pro 2](screenshots/sn30pro2.png)

Here are some screenshots showing the new options and themes:

![Default Switch theme with L/R swapped and ZL/ZR swapped](https://i.imgur.com/f5Z3kH6.png)
![Super Famicom Switch theme with all new swap options selected](https://i.imgur.com/MUhhDcG.png)
![Super Nintendo Switch theme with LT/RT swapped and X/Y swapped](https://i.imgur.com/MqCNUyL.png)
![Xbox theme with all the new swap options selected](https://i.imgur.com/glYN9jr.png)
![Dualshock theme with L1/R1, O/X, and □/△ swapped](https://i.imgur.com/HHzDnXe.png)
![Default Switch theme with L/R swapped and ZL/ZR swapped](screenshots/switch-default-swap-bumpers-triggers.png)
![Super Famicom Switch theme with all new swap options selected](screenshots/switch-sfc-allswapped.png)
![Super Nintendo Switch theme with LT/RT swapped and X/Y swapped](screenshots/switch-sn-triggers-xy-swapped.png)
![SN30 Pro2 theme with L/R swapped and ZL/ZR swapped](screenshots/switch-pro2-swap-bumpers-triggers.png)
![Xbox theme with all the new swap options selected](screenshots/xbox-allswapped.png)
![Dualshock theme with L1/R1, O/X, and □/△ swapped](screenshots/dualshock-partialswap.png)
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.de_DE.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.en_US.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.ja_JP.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.ko_KR.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.zh_CN.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
3 changes: 2 additions & 1 deletion assets/data/lang/sc/gui.zh_TW.json.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"group": [
"Default",
"SFC",
"SNES"
"SNES",
"Pro2"
]
},
"gamepad-swap-bumpers": {
Expand Down
Binary file modified assets/media/font/icons-gamepad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Extra Gamepad Options",
"version": "1.0.0",
"description": "Adds a Nintendo Switch icon theme (with 3 color schemes), and allows for the swapping of A/B, X/Y, L/R, and LT/RT.",
"version": "1.0.2",
"description": "Allows buttons/triggers to be swapped, and adds extra icon themes.",
"module": false,
"prestart": "prestart.js",
"ccmodDependencies": {
Expand Down
30 changes: 28 additions & 2 deletions prestart.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ sc.GAMEPAD_ICON_STYLE.SWITCH = Object.keys(sc.GAMEPAD_ICON_STYLE).length;
sc.GAMEPAD_SWITCH_STYLE = {
DEFAULT: 0,
SFC: 1,
SNES: 2
SNES: 2,
PRO2: 3
};

// Register the Switch icon theme option
Expand Down Expand Up @@ -250,7 +251,32 @@ sc.FontSystem.inject({
},
getSwitchOffsets: function() {
// Return different offsets for the Switch Gamepad icons depending on the theme the user has chosen.
if(sc.options.get("gamepad-switch-icon-theme") == 2) {
if(sc.options.get("gamepad-switch-icon-theme") == 3) {
return {
"left-stick":[2, 111],
"right-stick":[2, 112],
"gamepad-l1":[2, 113],
"gamepad-r1":[2, 114],
"gamepad-l2":[2, 115],
"gamepad-r2":[2, 116],
"gamepad-select":[2, 117],
"gamepad-pause":[2, 118],
"gamepad-left":[2, 119],
"gamepad-down":[2, 120],
"gamepad-right":[2, 121],
"gamepad-up":[2, 122],
"gamepad-a":[2, 123],
"gamepad-b":[2, 124],
"gamepad-x":[2, 125],
"gamepad-y":[2, 126],
"left-stick-left":[2, 127],
"left-stick-right":[2, 128],
"left-stick-press":[2, 129],
"right-stick-press":[2, 130],
"gamepad-l1-off":[2, 131],
"gamepad-r1-off":[2, 132]
};
} else if(sc.options.get("gamepad-switch-icon-theme") == 2) {
return {
"left-stick":[2, 89],
"right-stick":[2, 90],
Expand Down
Binary file added screenshots/dualshock-partialswap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/sn30-sfc30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/sn30pro2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/switch-pro2-swap-bumpers-triggers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/switch-sfc-allswapped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/switch-sn-triggers-xy-swapped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/xbox-allswapped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dcabb9f

Please sign in to comment.