summaryrefslogtreecommitdiff
path: root/src/components/InstalledGamesSection.tsx
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-07-21 10:05:39 -0400
committerGitHub <noreply@github.com>2025-07-21 10:05:39 -0400
commit9573344450de451b8f9c7295c11318010d67f1d5 (patch)
tree1df1f75d3add63a65b9554a08c54165f41bf415f /src/components/InstalledGamesSection.tsx
parenta5796c1bd7957731215e858d169f2831a328cb55 (diff)
downloadDecky-Framegen-9573344450de451b8f9c7295c11318010d67f1d5.tar.gz
Decky-Framegen-9573344450de451b8f9c7295c11318010d67f1d5.zip
Refresh UI (#117)v0.11.2
* initial visual refinement * rm dupe status pops * hide other menus if uninstalled opti * bump ver * fix ver bump
Diffstat (limited to 'src/components/InstalledGamesSection.tsx')
-rw-r--r--src/components/InstalledGamesSection.tsx29
1 files changed, 16 insertions, 13 deletions
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(
<ConfirmModal
- strTitle={`Patch ${selectedGame.name}?`}
+ strTitle={`Enable Frame Generation for ${selectedGame.name}?`}
strDescription={
- "WARNING: Decky Framegen does not unpatch games when uninstalled. Be sure to unpatch the game or verify the integrity of your game files if you choose to uninstall the plugin or the game has issues."
+ "⚠️ Important: This plugin does not automatically unpatch games when uninstalled. If you uninstall this plugin or experience game issues, use the 'Disable Frame Generation' option or verify game file integrity through Steam."
}
- strOKButtonText="Yeah man, I wanna do it"
+ strOKButtonText="Enable Frame Generation"
strCancelButtonText="Cancel"
onOK={async () => {
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 (
- <PanelSection title="Select a game to patch:">
+ <PanelSection title="Select a Game to Patch:">
<PanelSectionRow>
<DropdownItem
rgOptions={games.map(game => ({
@@ -85,15 +85,18 @@ export function InstalledGamesSection() {
setSelectedGame(game || null);
setResult('');
}}
- strDefaultLabel="Select a game..."
+ strDefaultLabel="Choose a game"
menuLabel="Installed Games"
/>
</PanelSectionRow>
{result ? (
<PanelSectionRow>
- <div style={STYLES.resultBox}>
- {result}
+ <div style={{
+ ...STYLES.preWrap,
+ ...(result.includes('Error') ? STYLES.statusNotInstalled : STYLES.statusInstalled)
+ }}>
+ {result.includes('Error') ? '❌' : '✅'} {result}
</div>
</PanelSectionRow>
) : null}
@@ -105,7 +108,7 @@ export function InstalledGamesSection() {
layout="below"
onClick={handlePatchClick}
>
- Patch
+ Enable Frame Generation
</ButtonItem>
</PanelSectionRow>
<PanelSectionRow>
@@ -113,7 +116,7 @@ export function InstalledGamesSection() {
layout="below"
onClick={handleUnpatchClick}
>
- Unpatch
+ Disable Frame Generation
</ButtonItem>
</PanelSectionRow>
</>