diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-27 23:42:24 -0500 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-27 23:42:24 -0500 |
| commit | 01d46886d19f29029819d66ba1c9fb6b5f1b90d7 (patch) | |
| tree | efc255df022ea83b38544d9cd7063a8a8d324fd8 | |
| parent | f5c79d1324606111bcf59197363d87bf26c4a026 (diff) | |
| download | Decky-Framegen-01d46886d19f29029819d66ba1c9fb6b5f1b90d7.tar.gz Decky-Framegen-01d46886d19f29029819d66ba1c9fb6b5f1b90d7.zip | |
patch and unpatch ui refine
| -rwxr-xr-x | src/index.tsx | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/src/index.tsx b/src/index.tsx index c27c266..0021c4f 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -271,7 +271,7 @@ function InstalledGamesSection() { const handleUnpatchClick = async (game: { appid: number; name: string }) => { setClickedGame(game); try { - await SteamClient.Apps.SetAppLaunchOptions(game.appid, '/home/deck/fgmod/fgmod-uninstaller.sh'); // Remove mod files and launch game + await SteamClient.Apps.SetAppLaunchOptions(game.appid, ''); // Remove custom launch options setResult(`Launch options cleared for ${game.name}. The game is now unpatched.`); } catch (error) { if (error instanceof Error) { @@ -286,22 +286,27 @@ function InstalledGamesSection() { <PanelSection title="Select a game below to patch or unpatch:"> {games.map((game) => ( <PanelSectionRow key={game.appid}> - <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}> - <ButtonItem - layout="below" - onClick={() => handlePatchClick(game)} - > - Patch: {game.name} - </ButtonItem> - <ButtonItem - layout="below" - onClick={() => handleUnpatchClick(game)} - > - Unpatch: {game.name} - </ButtonItem> + <div style={{ marginBottom: '16px' }}> + {/* Game Name as Bold Subheader */} + <div style={{ fontWeight: 'bold', marginBottom: '8px' }}>{game.name}</div> + {/* Buttons Stacked Vertically */} + <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}> + <ButtonItem + layout="below" + onClick={() => handlePatchClick(game)} + > + Patch + </ButtonItem> + <ButtonItem + layout="below" + onClick={() => handleUnpatchClick(game)} + > + Unpatch + </ButtonItem> + </div> </div> {clickedGame?.appid === game.appid && ( - <div style={{ padding: '8px' }}> + <div style={{ padding: '8px', marginTop: '8px' }}> {result} </div> )} |
