mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 22:10:58 +08:00
feat: 主题切换
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { Theme } from '../interface';
|
||||
|
||||
const icons = <const>[
|
||||
`🎨`,
|
||||
`🌈`,
|
||||
`⚙️`,
|
||||
`💻`,
|
||||
`📚`,
|
||||
`🐯`,
|
||||
`🐤`,
|
||||
`🐼`,
|
||||
`🐏`,
|
||||
`🍀`,
|
||||
];
|
||||
|
||||
export type DefaultSoundNames = 'button-click' | 'triple';
|
||||
|
||||
import soundButtonClickUrl from './sounds/sound-button-click.mp3';
|
||||
import soundTripleUrl from './sounds/sound-triple.mp3';
|
||||
export const defaultSounds: Theme<DefaultSoundNames>['sounds'] = [
|
||||
{
|
||||
name: 'button-click',
|
||||
src: soundButtonClickUrl,
|
||||
},
|
||||
{
|
||||
name: 'triple',
|
||||
src: soundTripleUrl,
|
||||
},
|
||||
];
|
||||
|
||||
export const defaultTheme: Theme<DefaultSoundNames> = {
|
||||
name: '默认',
|
||||
icons: icons.map((icon) => ({
|
||||
name: icon,
|
||||
content: icon,
|
||||
clickSound: 'button-click',
|
||||
tripleSound: 'triple',
|
||||
})),
|
||||
sounds: defaultSounds,
|
||||
};
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user