diff --git a/assets/jsons/translations/de.json b/assets/jsons/translations/de.json index 0b6ec058..32dcf2eb 100644 --- a/assets/jsons/translations/de.json +++ b/assets/jsons/translations/de.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "Installations-Ordner", - "description": "Ändere den Standardordner für Beat Saber-Versionen und andere kommende Funktionen.", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Ordner wählen" }, "additional-content": { @@ -771,8 +771,10 @@ }, "ask-install-path": { "title": "Installations Ordner", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Ordner Wählen", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/en.json b/assets/jsons/translations/en.json index e80af42c..02eda720 100644 --- a/assets/jsons/translations/en.json +++ b/assets/jsons/translations/en.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "Installation folder", - "description": "Change the default folder for Beat Saber versions and other upcoming features.", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Choose folder" }, "proton-path": { @@ -778,8 +778,10 @@ }, "ask-install-path": { "title": "Installation folder", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Choose folder", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/es.json b/assets/jsons/translations/es.json index c0d85e29..7f05e99c 100644 --- a/assets/jsons/translations/es.json +++ b/assets/jsons/translations/es.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "Carpeta de instalación", - "description": "Cambia la carpeta por defecto para las versiones de Beat Saber y próximas funciones.", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Elige la carpeta" }, "additional-content": { @@ -771,8 +771,10 @@ }, "ask-install-path": { "title": "Carpeta de instalación", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Elige la carpeta", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/fr.json b/assets/jsons/translations/fr.json index 1cfca14c..d5389053 100644 --- a/assets/jsons/translations/fr.json +++ b/assets/jsons/translations/fr.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "Dossier d'installation", - "description": "Change le dossier par défaut pour les versions de Beat Saber et d'autres fonctionnalités à venir.", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Choisir un dossier" }, "additional-content": { @@ -771,9 +771,11 @@ "not-remind-me": "Ne plus me rappeler" }, "ask-install-path": { - "title": "Dossier d'installation", + "title": "Dossier d'installation", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Choisir un dossier", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/ja.json b/assets/jsons/translations/ja.json index 981d3bd0..09d4c926 100644 --- a/assets/jsons/translations/ja.json +++ b/assets/jsons/translations/ja.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "インストールフォルダー", - "description": "BeatSaberのバージョンとその他の今後の機能を入れるフォルダを変更します。", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "フォルダーを選択" }, "additional-content": { @@ -771,8 +771,10 @@ }, "ask-install-path": { "title": "インストールフォルダー", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "フォルダーを選択", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/ru.json b/assets/jsons/translations/ru.json index 48ae1bd7..e51abe3d 100644 --- a/assets/jsons/translations/ru.json +++ b/assets/jsons/translations/ru.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "Папка установок", - "description": "Измените стандартную папку, где будут версии Beat Saber и прочее.", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Изменить папку" }, "additional-content": { @@ -770,8 +770,10 @@ }, "ask-install-path": { "title": "Папка установок", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "Изменить папку", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/zh-tw.json b/assets/jsons/translations/zh-tw.json index 6d23db13..cf1abe80 100644 --- a/assets/jsons/translations/zh-tw.json +++ b/assets/jsons/translations/zh-tw.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "安裝文件夾", - "description": "為 BeatSaber 不同版本及未來其他特性修改預設文件夾", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "選擇文件夾" }, "additional-content": { @@ -771,8 +771,10 @@ }, "ask-install-path": { "title": "安裝文件夾", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "選擇文件夾", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/assets/jsons/translations/zh.json b/assets/jsons/translations/zh.json index 86bfac7e..c881232d 100644 --- a/assets/jsons/translations/zh.json +++ b/assets/jsons/translations/zh.json @@ -139,7 +139,7 @@ }, "installation-folder": { "title": "安装文件夹", - "description": "为 BeatSaber 不同版本及未来其他特性修改默认文件夹", + "description": "Change the folder that will contain all the content downloaded by BSManager.", "choose-folder": "选择文件夹" }, "additional-content": { @@ -771,8 +771,10 @@ }, "ask-install-path": { "title": "安装文件夹", + "choose-folder-description": "Choose the folder that will contain all the content downloaded by BSManager.", "choose-folder": "选择文件夹", - "default": "Default" + "default": "Default", + "default-tooltip": "Defaults to your home folder" } }, "maps": { diff --git a/src/renderer/components/modal/modal-types/ask-install-path.component.tsx b/src/renderer/components/modal/modal-types/ask-install-path.component.tsx index c712b118..347868b6 100644 --- a/src/renderer/components/modal/modal-types/ask-install-path.component.tsx +++ b/src/renderer/components/modal/modal-types/ask-install-path.component.tsx @@ -59,18 +59,14 @@ export const AskInstallPathModal: ModalComponent<{ installPath: string }, {}> = onConfirmButtonPressed(); }}> -

+

{t("modals.ask-install-path.title")}

-
+

+ {t("modals.ask-install-path.choose-folder-description")} +

+
{installPath} @@ -82,17 +78,18 @@ export const AskInstallPathModal: ModalComponent<{ installPath: string }, {}> = />
-
+
(({ className, style, iconStyle, imgClassName, iconClassName, icon, image, text, type, active, withBar = true, disabled, onClickOutside, onClick, typeColor, color, title, iconColor, textClassName }, forwardedRef) => { +export const BsmButton = forwardRef(({ + className, style, iconStyle, imgClassName, iconClassName, + icon, image, text, type, active, withBar = true, disabled, + onClickOutside, onClick, + typeColor, color, title, iconColor, textClassName, + tooltip, tooltipIcon +}, forwardedRef) => { const t = useTranslation(); const { firstColor, secondColor } = useThemeColor(); const ref = useRef(null); @@ -84,18 +93,35 @@ export const BsmButton = forwardRef(({ className, style, iconSty const handleClick = (e: MouseEvent) => !disabled && onClick?.(e); + const renderTooltip = () => { + return ( + +
+ +
+
+ ); + } + return (
{image && } {icon && } {text && (type === "submit" ? ( - ) : ( - - {t(text)} + + {t(text)} + {tooltip && renderTooltip()} ))} {withBar && (