From c030def3f5c9780560a8dcb23ff3a0b1a55ab300 Mon Sep 17 00:00:00 2001 From: sup39 Date: Sat, 15 Jul 2023 13:47:17 +0900 Subject: [PATCH] Fixed the bug regarding the settings of background color in 'Controller Input Display' --- changelog.md | 1 + site/.vuepress/components/codes/controller/codegen.js | 2 +- site/.vuepress/components/codes/controller/config.vue | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index a62320f..7a0af5b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # Changelog ## Jul 15, 2023 +### Fixed the bug that background color cannot be changed in 'Controller Input Display' ### Ported 'FastForward', 'InstantRestart', 'SpawnYoshi', 'StageIntroSkip' to all versions ## Jul 9, 2023 diff --git a/site/.vuepress/components/codes/controller/codegen.js b/site/.vuepress/components/codes/controller/codegen.js index e0c1166..068e7ce 100644 --- a/site/.vuepress/components/codes/controller/codegen.js +++ b/site/.vuepress/components/codes/controller/codegen.js @@ -64,7 +64,7 @@ export default function codegen(version, baseCode) { // mtx.y int2hex(y - 16, 2), // .conf.bg.color - int2hex((bgRGB << 24) | bgA, 4), + int2hex((bgRGB << 8) | bgA, 4), // .conf.trigger.fill int2hex(cTF, 4), // .conf.trigger.stroke diff --git a/site/.vuepress/components/codes/controller/config.vue b/site/.vuepress/components/codes/controller/config.vue index f2f6aaa..80e1679 100644 --- a/site/.vuepress/components/codes/controller/config.vue +++ b/site/.vuepress/components/codes/controller/config.vue @@ -25,7 +25,7 @@