From 9573344450de451b8f9c7295c11318010d67f1d5 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:05:39 -0400 Subject: Refresh UI (#117) * initial visual refinement * rm dupe status pops * hide other menus if uninstalled opti * bump ver * fix ver bump --- src/components/InstalledGamesSection.tsx | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/components/InstalledGamesSection.tsx') diff --git a/src/components/InstalledGamesSection.tsx b/src/components/InstalledGamesSection.tsx index 30ca2a4..71278d7 100644 --- a/src/components/InstalledGamesSection.tsx +++ b/src/components/InstalledGamesSection.tsx @@ -40,19 +40,19 @@ export function InstalledGamesSection() { // Show confirmation modal showModal( { try { await SteamClient.Apps.SetAppLaunchOptions(selectedGame.appid, '~/fgmod/fgmod %COMMAND%'); - setResult(`Launch options set for ${selectedGame.name}. You can now select DLSS in the game's menu, and access OptiScaler with Insert key.`); + setResult(`✓ Frame generation enabled for ${selectedGame.name}. Launch the game, enable DLSS in graphics settings, then press Insert to access OptiScaler options.`); } catch (error) { logError('handlePatchClick: ' + String(error)); - setResult(error instanceof Error ? `Error setting launch options: ${error.message}` : 'Error setting launch options'); + setResult(error instanceof Error ? `Error: ${error.message}` : 'Error enabling frame generation'); } }} /> @@ -64,15 +64,15 @@ export function InstalledGamesSection() { try { await SteamClient.Apps.SetAppLaunchOptions(selectedGame.appid, '~/fgmod/fgmod-uninstaller.sh %COMMAND%'); - setResult(`OptiScaler will uninstall on next launch of ${selectedGame.name}.`); + setResult(`✓ Frame generation will be disabled on next launch of ${selectedGame.name}.`); } catch (error) { logError('handleUnpatchClick: ' + String(error)); - setResult(error instanceof Error ? `Error clearing launch options: ${error.message}` : 'Error clearing launch options'); + setResult(error instanceof Error ? `Error: ${error.message}` : 'Error disabling frame generation'); } }; return ( - + ({ @@ -85,15 +85,18 @@ export function InstalledGamesSection() { setSelectedGame(game || null); setResult(''); }} - strDefaultLabel="Select a game..." + strDefaultLabel="Choose a game" menuLabel="Installed Games" /> {result ? ( -
- {result} +
+ {result.includes('Error') ? '❌' : '✅'} {result}
) : null} @@ -105,7 +108,7 @@ export function InstalledGamesSection() { layout="below" onClick={handlePatchClick} > - Patch + Enable Frame Generation @@ -113,7 +116,7 @@ export function InstalledGamesSection() { layout="below" onClick={handleUnpatchClick} > - Unpatch + Disable Frame Generation -- cgit v1.2.3