diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-18 12:12:55 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-18 12:12:55 -0400 |
| commit | f3846f88402b6216675c9c48c04ab5a30cce3062 (patch) | |
| tree | 32ac1ec1d1229444bb97c531d12a7d5c749d1afe /src | |
| parent | 48ee73dae1bdecec47ccbaf5456be8c5937cb0fd (diff) | |
| download | decky-lsfg-vk-f3846f88402b6216675c9c48c04ab5a30cce3062.tar.gz decky-lsfg-vk-f3846f88402b6216675c9c48c04ab5a30cce3062.zip | |
restore clipboard wiki button
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/ClipboardButton.tsx | 28 | ||||
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 2 | ||||
| -rw-r--r-- | src/components/UsageInstructions.tsx | 4 |
3 files changed, 8 insertions, 26 deletions
diff --git a/src/components/ClipboardButton.tsx b/src/components/ClipboardButton.tsx index cf11e6e..3760e81 100644 --- a/src/components/ClipboardButton.tsx +++ b/src/components/ClipboardButton.tsx @@ -1,26 +1,9 @@ -import { useState } from "react"; import { PanelSectionRow, ButtonItem } from "@decky/ui"; -import { FaClipboard, FaCheck } from "react-icons/fa"; -import { getLaunchOption } from "../api/lsfgApi"; +import { FaExternalLinkAlt } from "react-icons/fa"; export function ClipboardButton() { - const [copied, setCopied] = useState(false); - - const handleClipboardClick = async () => { - try { - // Get the launch option from the backend - const response = await getLaunchOption(); - const launchOption = response.launch_option; - - // Copy to clipboard - await navigator.clipboard.writeText(launchOption); - setCopied(true); - - // Reset the copied state after 2 seconds - setTimeout(() => setCopied(false), 2000); - } catch (error) { - console.error("Failed to copy launch option:", error); - } + const handleClipboardClick = () => { + window.open("https://github.com/xXJSONDeruloXx/decky-lossless-scaling-vk/wiki/Clipboard", "_blank"); }; return ( @@ -28,11 +11,10 @@ export function ClipboardButton() { <ButtonItem layout="below" onClick={handleClipboardClick} - description="Copy the launch option needed for Steam games" > <div style={{ display: "flex", alignItems: "center", gap: "8px" }}> - {copied ? <FaCheck style={{ color: "green" }} /> : <FaClipboard />} - <div>{copied ? "Copied!" : "Copy Launch Option"}</div> + <FaExternalLinkAlt /> + <div>Launch Option Clipboard</div> </div> </ButtonItem> </PanelSectionRow> diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index f44dd4f..bfbeb98 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -48,7 +48,7 @@ export function ConfigurationSection({ <PanelSectionRow> <SliderField label="FPS Multiplier" - description="Traditional FPS multiplier value (1 = no interpolation)" + description="Traditional FPS multiplier value (OFF = no interpolation)" value={config.multiplier} min={1} max={4} diff --git a/src/components/UsageInstructions.tsx b/src/components/UsageInstructions.tsx index 32aa0ff..fb754b2 100644 --- a/src/components/UsageInstructions.tsx +++ b/src/components/UsageInstructions.tsx @@ -55,7 +55,7 @@ export function UsageInstructions({ config }: UsageInstructionsProps) { > Required Launch Option: <br /> - <strong>LSFG_PROCESS=decky-lsfg-vk %command%</strong> + <strong>~/lsfg %command%</strong> </div> </PanelSectionRow> @@ -89,7 +89,7 @@ export function UsageInstructions({ config }: UsageInstructionsProps) { marginTop: "8px" }} > - Add the launch option to each game's Properties → Launch Options in Steam. The configuration is stored in ~/.config/lsfg-vk/conf.toml and hot-reloads while games are running. + Add the launch option to each game's Properties → Launch Options in Steam. The lsfg script is automatically created during installation and connects your games to the plugin's configuration. The configuration is stored in ~/.config/lsfg-vk/conf.toml and hot-reloads while games are running. </div> </PanelSectionRow> </> |
