mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 20:00:54 +08:00
fix: 默认音效填充
This commit is contained in:
+2
-2
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user