summaryrefslogtreecommitdiff
path: root/src/utils/constants.ts
diff options
context:
space:
mode:
authorxXJsonDeruloXx <danielhimebauch@gmail.com>2026-03-20 17:32:52 -0400
committerxXJsonDeruloXx <danielhimebauch@gmail.com>2026-03-20 17:32:52 -0400
commitd81bb130385114389728f849d0ab8cccf62b90d1 (patch)
treee4bdd986c3b18c62cae7311b92fb5ad5f9be86e6 /src/utils/constants.ts
parentca5db2231b8554d1377dd449f6fb9c736e3d6386 (diff)
downloadDecky-Framegen-d81bb130385114389728f849d0ab8cccf62b90d1.tar.gz
Decky-Framegen-d81bb130385114389728f849d0ab8cccf62b90d1.zip
Add Steam UI for prefix-managed integrationfeature/prefix-managed-optiscaler
Diffstat (limited to 'src/utils/constants.ts')
-rw-r--r--src/utils/constants.ts48
1 files changed, 18 insertions, 30 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index 1f583c0..74ffd7f 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -1,16 +1,3 @@
-// Common types for the application
-
-export interface ResultType {
- status: string;
- message?: string;
- output?: string;
-}
-
-export interface GameType {
- appid: number;
- name: string;
-}
-
// Common style definitions
export const STYLES = {
resultBox: {
@@ -21,19 +8,19 @@ export const STYLES = {
border: '1px solid var(--decky-border-color)',
fontSize: '14px'
},
- statusInstalled: {
+ statusInstalled: {
color: '#22c55e',
fontWeight: 'bold',
fontSize: '14px'
},
- statusNotInstalled: {
+ statusNotInstalled: {
color: '#f97316',
fontWeight: 'bold',
fontSize: '14px'
},
- statusSuccess: { color: "#22c55e" },
- statusError: { color: "#ef4444" },
- preWrap: { whiteSpace: "pre-wrap" as const },
+ statusSuccess: { color: '#22c55e' },
+ statusError: { color: '#ef4444' },
+ preWrap: { whiteSpace: 'pre-wrap' as const },
instructionCard: {
padding: '14px',
backgroundColor: 'var(--decky-selected-ui-bg)',
@@ -47,20 +34,21 @@ export const STYLES = {
// Common timeout values
export const TIMEOUTS = {
- resultDisplay: 5000, // 5 seconds
- pathCheck: 3000 // 3 seconds
+ resultDisplay: 5000,
+ pathCheck: 3000
};
// Message strings
export const MESSAGES = {
- modInstalled: "✅ OptiScaler Mod Installed",
- modNotInstalled: "❌ OptiScaler Mod Not Installed",
- installing: "Installing OptiScaler...",
- installButton: "Setup OptiScaler Mod",
- uninstalling: "Removing OptiScaler...",
- uninstallButton: "Remove OptiScaler Mod",
- installSuccess: "✅ OptiScaler mod setup successfully!",
- uninstallSuccess: "✅ OptiScaler mod removed successfully.",
- instructionTitle: "How to Use:",
- instructionText: "Click 'Copy Patch Command' or 'Copy Unpatch Command', then go to your game's properties, and paste the command into the Launch Options field.\n\nIn-game: Enable DLSS in graphics settings to unlock FSR 3.1/XeSS 2.0 in DirectX12 Games.\n\nFor extended OptiScaler options, assign a back button to a keyboard's 'Insert' key."
+ modInstalled: '✅ Prefix-managed OptiScaler runtime installed',
+ modNotInstalled: '❌ Prefix-managed OptiScaler runtime not installed',
+ installing: 'Installing prefix-managed runtime...',
+ installButton: 'Install Prefix-Managed Runtime',
+ uninstalling: 'Removing runtime and cleaning prefixes...',
+ uninstallButton: 'Remove Runtime + Clean Prefixes',
+ installSuccess: '✅ Prefix-managed OptiScaler runtime installed successfully!',
+ uninstallSuccess: '✅ Prefix-managed OptiScaler runtime removed successfully.',
+ instructionTitle: 'How it works:',
+ instructionText:
+ 'Use the Steam game integration section to enable OptiScaler for a specific game, or copy the launch command manually.\n\nOn launch, the plugin stages OptiScaler into compatdata/<appid>/pfx/drive_c/windows/system32 and keeps its writable INI under compatdata/<appid>/optiscaler-managed. The game install directory is left untouched.\n\nDefault proxy: winmm.dll. For advanced testing you can override it in launch options, e.g. OPTISCALER_PROXY=dxgi ~/fgmod/fgmod %command%.\n\nIn-game: press Insert to open the OptiScaler menu.'
};