From 8b3d4def33766f7306d8606ccf4b5e4425a5738a Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Thu, 17 Jul 2025 12:00:14 -0400 Subject: Copy to clipboard Wiki button (#116) * add initial wiki launch button * update wiki link * bump ver * add opti wiki button * update icons for web launches --- src/components/DocumentationButton.tsx | 39 ++++++++++++++++++++++++++++++++++ src/index.tsx | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 src/components/DocumentationButton.tsx (limited to 'src') diff --git a/src/components/DocumentationButton.tsx b/src/components/DocumentationButton.tsx new file mode 100644 index 0000000..4125fd3 --- /dev/null +++ b/src/components/DocumentationButton.tsx @@ -0,0 +1,39 @@ +import { PanelSection, PanelSectionRow, ButtonItem } from "@decky/ui"; +import { FaClipboard, FaBook } from "react-icons/fa"; + +export function DocumentationButton() { + const handleDocClick = () => { + window.open("https://github.com/xXJSONDeruloXx/Decky-Framegen/wiki", "_blank"); + }; + + const handleOptiScalerClick = () => { + window.open("https://github.com/optiscaler/OptiScaler/wiki", "_blank"); + }; + + return ( + + + +
+ +
Copy Launch Command
+
+
+
+ + +
+ +
OptiScaler Wiki
+
+
+
+
+ ); +} diff --git a/src/index.tsx b/src/index.tsx index 12150d2..41f8dc3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,6 +2,7 @@ import { definePlugin } from "@decky/api"; import { RiAiGenerate } from "react-icons/ri"; import { FGModInstallerSection } from "./components/FGModInstallerSection"; import { InstalledGamesSection } from "./components/InstalledGamesSection"; +import { DocumentationButton } from "./components/DocumentationButton"; export default definePlugin(() => ({ name: "Framegen Plugin", @@ -11,6 +12,7 @@ export default definePlugin(() => ({ <> + ), icon: , -- cgit v1.2.3