Skip to content

Commit e558c59

Browse files
some changes
1 parent afd8d91 commit e558c59

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/addons/addons/multi-sprite-selecting/userscript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ export default async function ({ addon, console, msg }) {
144144
const spriteId = wrapper.dataset.spriteId;
145145
if (selectedSprites.has(spriteId)) {
146146
wrapper.style.outline = "6px solid blue";
147+
wrapper.style.borderRadius = "8px";
147148
} else {
148149
wrapper.style.outline = "";
150+
wrapper.style.borderRadius = "0";
149151
}
150152
});
151153
}

src/containers/sound-library.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import LibraryComponent from '../components/library/library.jsx';
1313
import {getSoundLibrary} from '../lib/libraries/tw-async-libraries';
1414
import soundLengths from '../lib/libraries/sounds-lengths.json';
1515
import soundTags from '../lib/libraries/sound-tags';
16+
import otherSoundPreviews from '../lib/libraries/other-sound-previews/sound-previews.js';
1617

1718
import {connect} from 'react-redux';
1819

@@ -41,8 +42,8 @@ const getSoundLibraryThumbnailData = (soundLibraryContent, isRtl) => soundLibrar
4142
} = sound;
4243
return {
4344
_md5: md5ext,
44-
rawURL: sound.fromDinosaurmodLibrary ?
45-
`${DM_LIBRARY_API}files/sound_previews/${sound.libraryFilePage2.replace(/\//g, "_").replace(".mp3", ".png")}` :
45+
rawURL: sound.customSoundPreviewName ?
46+
otherSoundPreviews[sound.customSoundPreviewName] :
4647
(sound.fromPenguinModLibrary ? `${PM_LIBRARY_API}files/sound_previews/${sound.libraryFilePage.replace(/\//g, "_").replace(".mp3", ".png")}` :
4748
`${PM_LIBRARY_API}files/scratch_sound_previews/${assetId}.png`),
4849
soundLength: sound.fromDinosaurModLibrary ?
27 KB
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import mibup15full from './mibup15full.png';
2+
3+
export default {
4+
"mibup15full": mibup15full
5+
}

src/lib/libraries/sounds.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6295,7 +6295,8 @@
62956295
"assetId": "15eccd22c90176ed0420aaf8c858254b",
62966296
"dataFormat": "",
62976297
"rate": 44100,
6298-
"md5ext": "15eccd22c90176ed0420aaf8c858254b.mp3"
6298+
"md5ext": "15eccd22c90176ed0420aaf8c858254b.mp3",
6299+
"customSoundPreviewName": "mibup15full"
62996300
},
63006301
{
63016302
"name": "Mustache",

0 commit comments

Comments
 (0)