Skip to content

Commit 00c27c3

Browse files
committed
Add taco shoot
1 parent 695cb21 commit 00c27c3

3 files changed

Lines changed: 56 additions & 1 deletion

File tree

src/chat/interface/mediaengine/index.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,61 @@ async function doMediaSelect() {
895895
]),
896896
],
897897
},
898+
899+
{
900+
element: "div",
901+
className: "divButton roundborder",
902+
eventListeners: [
903+
{
904+
event: "click",
905+
func: async function (e) {
906+
e.preventDefault();
907+
div.remove();
908+
div = null;
909+
910+
var loadingMediaDiv = doLoadingMediaScreen();
911+
912+
try {
913+
loadingMediaDiv.remove();
914+
915+
const embedURL = `https://random-rants-chat.github.io/taco-shoot-minigame/#${Math.round(Date.now())}`;
916+
917+
sws.send(
918+
JSON.stringify({
919+
type: "media",
920+
command: "mediaResetRequest",
921+
})
922+
);
923+
sws.send(
924+
JSON.stringify({
925+
type: "media",
926+
command: "mediaEmbedRunning",
927+
url: embedURL,
928+
})
929+
);
930+
} catch (err) {
931+
loadingMediaDiv.remove();
932+
dialog.alert("Error creating game room:\n" + err);
933+
}
934+
},
935+
},
936+
],
937+
children: [
938+
surroundFlexboxDiv([
939+
{
940+
element: "img",
941+
src: "images/tacoshoot.png",
942+
style: { height: "25px" },
943+
},
944+
{
945+
element: "span",
946+
textContent:
947+
"Taco Shoot (Edit of griffpatch's taco burp)",
948+
},
949+
]),
950+
],
951+
},
952+
898953
{
899954
element: "br",
900955
},

wpstatic/images/tacoshoot.png

472 Bytes
Loading

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1761652921290"}
1+
{"timestamp":"1761657415363"}

0 commit comments

Comments
 (0)