From bfa5d2e2e5ab541d41d807f4fcd8f2d447ca4507 Mon Sep 17 00:00:00 2001
From: KrystalSkull <150982280+KrstlSkll69@users.noreply.github.com>
Date: Tue, 3 Dec 2024 18:13:05 -0500
Subject: [PATCH] added disclamer to quest completer, remove warning from
RemixMe (#103)
---
src/equicordplugins/questCompleter/index.tsx | 9 ++++++++-
src/equicordplugins/questCompleter/style.css | 12 ++++++++++++
src/equicordplugins/remixMe/index.tsx | 8 --------
src/equicordplugins/remixMe/style.css | 12 ------------
4 files changed, 20 insertions(+), 21 deletions(-)
create mode 100644 src/equicordplugins/questCompleter/style.css
delete mode 100644 src/equicordplugins/remixMe/style.css
diff --git a/src/equicordplugins/questCompleter/index.tsx b/src/equicordplugins/questCompleter/index.tsx
index abc41d3e..f3494bf8 100644
--- a/src/equicordplugins/questCompleter/index.tsx
+++ b/src/equicordplugins/questCompleter/index.tsx
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+import "./style.css";
+
import { showNotification } from "@api/Notifications";
import ErrorBoundary from "@components/ErrorBoundary";
import { Devs, EquicordDevs } from "@utils/constants";
@@ -23,7 +25,7 @@ import { getTheme, Theme } from "@utils/discord";
import { classes } from "@utils/misc";
import definePlugin from "@utils/types";
import { findByProps, findExportedComponentLazy } from "@webpack";
-import { Button, FluxDispatcher, RestAPI, Tooltip, UserStore } from "@webpack/common";
+import { Button, FluxDispatcher, Forms, RestAPI, Tooltip, UserStore } from "@webpack/common";
const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider");
const isApp = navigator.userAgent.includes("Electron/");
@@ -226,6 +228,11 @@ export default definePlugin({
name: "QuestCompleter",
description: "A plugin to complete quests without having the game installed.",
authors: [Devs.HappyEnderman, EquicordDevs.SerStars, EquicordDevs.thororen],
+ settingsAboutComponent: () => <>
+
+ Game Quests do not work on Equibop/Web Platforms. Only Video Quests do.
+
+ >,
patches: [
{
find: "\"invite-button\"",
diff --git a/src/equicordplugins/questCompleter/style.css b/src/equicordplugins/questCompleter/style.css
new file mode 100644
index 00000000..af665f49
--- /dev/null
+++ b/src/equicordplugins/questCompleter/style.css
@@ -0,0 +1,12 @@
+.quests-warning{
+ font-size: 16px !important;
+ background-color: var(--info-warning-background) !important;
+ color: var(--info-warning-text) !important;
+ border: 1px solid var(--info-warning-foreground) !important;
+ border-radius: 5px !important;
+ font-weight: 500;
+ padding: 6px 10px;
+ text-align: center;
+ margin-top: 10px;
+ font-style: bold;
+}
diff --git a/src/equicordplugins/remixMe/index.tsx b/src/equicordplugins/remixMe/index.tsx
index 473eed84..8e7b7caa 100644
--- a/src/equicordplugins/remixMe/index.tsx
+++ b/src/equicordplugins/remixMe/index.tsx
@@ -4,12 +4,9 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
-import "./style.css";
-
import { addPreSendListener, MessageExtra, MessageObject, removePreSendListener } from "@api/MessageEvents";
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
-import { Forms } from "@webpack/common";
const handleMessage = (channelID: string, message: MessageObject, messageEx: MessageExtra) => messageEx.uploads && messageEx.uploads.forEach(att => (att as any).isRemix = true);
@@ -17,11 +14,6 @@ export default definePlugin({
name: "RemixMe",
description: "Turns every single message with attachment to have remix tag",
authors: [EquicordDevs.kvba],
- settingsAboutComponent: () => <>
-
- We can't guarantee this plugin won't get you warned or banned.
-
- >,
start: () => addPreSendListener(handleMessage),
stop: () => removePreSendListener(handleMessage)
});
diff --git a/src/equicordplugins/remixMe/style.css b/src/equicordplugins/remixMe/style.css
deleted file mode 100644
index bb141403..00000000
--- a/src/equicordplugins/remixMe/style.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.remixme-warning {
- font-size: 16px !important;
- background-color: rgb(240 71 71 / 10%) !important;
- color: rgb(240 71 71) !important;
- border: 1px solid rgb(240 71 71 / 60%) !important;
- border-radius: 5px !important;
- font-weight: 500;
- padding: 6px 10px;
- text-align: center;
- margin-top: 10px;
- font-style: bold;
-}