From e5d9226233dc11357146d85f9452e9328a7f26e5 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 20 Dec 2025 21:10:05 -0700 Subject: [PATCH] Add titles/tooltips --- src/app/componets/Setting.tsx | 10 ++++++++-- src/app/game/page.tsx | 3 +++ src/app/layout.tsx | 37 ++++++++++++++++++++++++++++++++++- src/app/page.tsx | 7 +++++++ src/app/settings/page.tsx | 5 ++++- src/app/types/SettingProps.ts | 1 + 6 files changed, 59 insertions(+), 4 deletions(-) diff --git a/src/app/componets/Setting.tsx b/src/app/componets/Setting.tsx index 17d8cce..ed1c18d 100644 --- a/src/app/componets/Setting.tsx +++ b/src/app/componets/Setting.tsx @@ -3,9 +3,15 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCheck } from '@fortawesome/free-solid-svg-icons' import { SettingProps } from '../types/SettingProps' -export function Setting ({ label, value, onChange, className }: SettingProps) { +export function Setting ({ + label, + value, + onChange, + className, + title +}: SettingProps) { return ( -
+

Installed{' '} @@ -133,6 +134,7 @@ export default function Installs () { setShowPopup(true) setFadeOut(false) }} + title='Click to view version info' > View Info @@ -147,6 +149,7 @@ export default function Installs () { setShowPopup(true) setFadeOut(false) }} + title='Click to manage this version install' > Manage diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d2a03e7..d8a6f4d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -522,6 +522,11 @@ export default function RootLayout ({ : [...prev, v.id] ) }} + title={ + selectedVersionList.includes(v.id) + ? 'This version will be downloaded. Click to remove from the list of versions that will be downloaded.' + : 'This version will NOT be downloaded. Click to add from the list of versions that will be downloaded.' + } > {selectedVersionList.includes(v.id) ? ( <> @@ -541,6 +546,7 @@ export default function RootLayout ({ setViewingInfoFromDownloads(true) setPopupMode(3) }} + title='Click to view version info' > Info @@ -561,7 +567,10 @@ export default function RootLayout ({ {v.name}

-
+

{(() => { const data = getVersionsAmountData(v.id) @@ -574,6 +583,7 @@ export default function RootLayout ({