Fixed the bug regarding the settings of background color in 'Controller Input Display'

This commit is contained in:
sup39 2023-07-15 13:47:17 +09:00
parent bee720dd4d
commit c030def3f5
No known key found for this signature in database
GPG key ID: 14D2E0D21140D260
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -25,7 +25,7 @@
<script>
import { defaultConfig, lskey, getConfig } from './codegen.js';
import hiddenConfig from './hidden.js';
import { makeUpdateConfig, makeGetLabel, rgbI2S } from '../utils';
import { makeUpdateConfig, makeGetLabel, rgbI2S, rgbS2I } from '../utils';
import labels from '../labels.json';
const updateConfig = makeUpdateConfig(lskey, defaultConfig, null, hiddenConfig);
@ -36,6 +36,7 @@ export default {
methods: {
updateConfig,
rgbI2S,
rgbS2I,
},
data() {
const config = getConfig();