mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-24 16:49:17 +08:00
fix: 默认音效填充
This commit is contained in:
parent
5e29a1e55a
commit
e4c6a2d584
|
@ -74,8 +74,8 @@ export const wrapThemeDefaultSounds: (theme: Theme<any>) => void = (theme) => {
|
||||||
for (const icon of theme.icons) {
|
for (const icon of theme.icons) {
|
||||||
if (!icon.clickSound) icon.clickSound = 'button-click';
|
if (!icon.clickSound) icon.clickSound = 'button-click';
|
||||||
if (!icon.tripleSound) icon.tripleSound = 'triple';
|
if (!icon.tripleSound) icon.tripleSound = 'triple';
|
||||||
if (icon.clickSound === 'button-click') hasUseDefaultTriple = true;
|
if (icon.clickSound === 'button-click') hasUseDefaultClick = true;
|
||||||
if (icon.tripleSound === 'triple') hasUseDefaultClick = true;
|
if (icon.tripleSound === 'triple') hasUseDefaultTriple = true;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
hasUseDefaultClick &&
|
hasUseDefaultClick &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user