mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-23 21:16:08 +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) {
|
||||
if (!icon.clickSound) icon.clickSound = 'button-click';
|
||||
if (!icon.tripleSound) icon.tripleSound = 'triple';
|
||||
if (icon.clickSound === 'button-click') hasUseDefaultTriple = true;
|
||||
if (icon.tripleSound === 'triple') hasUseDefaultClick = true;
|
||||
if (icon.clickSound === 'button-click') hasUseDefaultClick = true;
|
||||
if (icon.tripleSound === 'triple') hasUseDefaultTriple = true;
|
||||
}
|
||||
if (
|
||||
hasUseDefaultClick &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user