feat(themes): 骚猪主题
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 195 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 148 KiB |
|
After Width: | Height: | Size: 181 KiB |
@@ -0,0 +1,30 @@
|
||||
// 骚猪主题
|
||||
import React from 'react';
|
||||
import { Theme } from '../interface';
|
||||
import { DefaultSoundNames, defaultSounds } from '../default';
|
||||
import bgm from './sounds/bgm.mp3';
|
||||
|
||||
const imagesUrls = import.meta.glob('./images/*.png', {
|
||||
import: 'default',
|
||||
eager: true,
|
||||
});
|
||||
|
||||
const images = 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 pddTheme: Theme<DefaultSoundNames> = {
|
||||
title: '🐷猪了个猪🐷',
|
||||
name: '骚猪',
|
||||
bgm,
|
||||
icons: images.map(({ name, content }) => ({
|
||||
name,
|
||||
content,
|
||||
clickSound: 'button-click',
|
||||
tripleSound: 'triple',
|
||||
})),
|
||||
sounds: defaultSounds,
|
||||
};
|
||||