mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-28 09:30:21 +08:00
29 lines
776 B
TypeScript
29 lines
776 B
TypeScript
// 钓鱼佬主题
|
|
import React from 'react';
|
|
import { Theme } from '../interface';
|
|
import { DefaultSoundNames, defaultSounds } from '../default';
|
|
|
|
const imagesUrls = import.meta.glob('./images/*.png', {
|
|
import: 'default',
|
|
eager: true,
|
|
});
|
|
|
|
const fishes = Object.entries(imagesUrls).map(([key, value]) => ({
|
|
name: key.slice(9, -4),
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
content: <img src={value} alt="" />,
|
|
}));
|
|
|
|
export const fishermanTheme: Theme<DefaultSoundNames> = {
|
|
title: '🐟鱼了个鱼🐟',
|
|
name: '钓鱼佬',
|
|
icons: fishes.map(({ name, content }) => ({
|
|
name,
|
|
content,
|
|
clickSound: 'button-click',
|
|
tripleSound: 'triple',
|
|
})),
|
|
sounds: defaultSounds,
|
|
};
|