summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-07-17 12:00:14 -0400
committerGitHub <noreply@github.com>2025-07-17 12:00:14 -0400
commit8b3d4def33766f7306d8606ccf4b5e4425a5738a (patch)
tree77672a46ad2571ce0eba19e28a73a5e49b3cbfca
parentca0d5f0ec1f4ba21f4bf51f0f773d2b6bad45c93 (diff)
downloadDecky-Framegen-0.11.0.tar.gz
Decky-Framegen-0.11.0.zip
Copy to clipboard Wiki button (#116)v0.11.0
* add initial wiki launch button * update wiki link * bump ver * add opti wiki button * update icons for web launches
-rw-r--r--justfile2
-rw-r--r--package.json2
-rw-r--r--src/components/DocumentationButton.tsx39
-rw-r--r--src/index.tsx2
4 files changed, 43 insertions, 2 deletions
diff --git a/justfile b/justfile
index 07aa118..4e9a17a 100644
--- a/justfile
+++ b/justfile
@@ -2,7 +2,7 @@ default:
echo "Available recipes: build, test, clean"
build:
- rm -rf node_modules && .vscode/build.sh
+ sudo rm -rf node_modules && .vscode/build.sh
test:
scp "/Users/kurt/Developer/FG-plugins/Decky-Framegen/out/Decky-Framegen.zip" deck@192.168.0.6:~/Desktop
diff --git a/package.json b/package.json
index cd2ff67..1ec0020 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "decky-framegen",
- "version": "0.10.1",
+ "version": "0.11.0",
"description": "plugin to install OptiScaler bleeding-edge and enable upscaling and framegen in a large variety of games.",
"type": "module",
"scripts": {
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 (
+ <PanelSection>
+ <PanelSectionRow>
+ <ButtonItem
+ layout="below"
+ onClick={handleDocClick}
+ >
+ <div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
+ <FaClipboard />
+ <div>Copy Launch Command</div>
+ </div>
+ </ButtonItem>
+ </PanelSectionRow>
+ <PanelSectionRow>
+ <ButtonItem
+ layout="below"
+ onClick={handleOptiScalerClick}
+ >
+ <div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
+ <FaBook />
+ <div>OptiScaler Wiki</div>
+ </div>
+ </ButtonItem>
+ </PanelSectionRow>
+ </PanelSection>
+ );
+}
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(() => ({
<>
<FGModInstallerSection />
<InstalledGamesSection />
+ <DocumentationButton />
</>
),
icon: <RiAiGenerate />,