diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index fae115d..5e8685b 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -74,7 +74,7 @@ val SnowyConfigScreen: Screen get() { } } } - if (it.isEmpty()) macrosButtons.clear() + if (it.isEmpty().also { empty -> macrosBox.hidden = empty }) macrosButtons.clear() }.build()) } }.build() diff --git a/common/src/main/resources/assets/snowygui/lang/en_us.json b/common/src/main/resources/assets/snowygui/lang/en_us.json index 150c71d..571b839 100644 --- a/common/src/main/resources/assets/snowygui/lang/en_us.json +++ b/common/src/main/resources/assets/snowygui/lang/en_us.json @@ -2,7 +2,7 @@ "screen.snowy.gui": "Snowy Interface", "screen.snowy.config": "Snowy configuration screen", "screen.snowy.config.general": "General", - "screen.snowy.config.general.macros.tooltip": "List of macros buttons;\nAfter creating a new entry, you can add a name and a command to execute to your macro by typing yourbutton:yourcommand", + "screen.snowy.config.general.macros.tooltip": "List of macros formatted like this: yourbutton:yourcommand", "screen.snowy.config.general.macros.missingdelimiter": "Missing separator (:)", "screen.snowy.config.general.macros.missingelement": "Missing element(s) next to the separator", "screen.snowy.config.general.macros.toomuchdelimiters": "Too much separators (only one is allowed)", diff --git a/common/src/main/resources/assets/snowygui/lang/fr_fr.json b/common/src/main/resources/assets/snowygui/lang/fr_fr.json index c1c5869..5309758 100644 --- a/common/src/main/resources/assets/snowygui/lang/fr_fr.json +++ b/common/src/main/resources/assets/snowygui/lang/fr_fr.json @@ -2,7 +2,7 @@ "screen.snowy.gui": "Interface de Snowy", "screen.snowy.config": "Configuration de snowy", "screen.snowy.config.general": "Général", - "screen.snowy.config.general.macros.tooltip": "Liste de macros;\nAprès avoir créé une nouvelle entrée, vous pouvez ajouter un nom et une commande à éxécuter à votre macro en écrivant votrebouton:votrecommande", + "screen.snowy.config.general.macros.tooltip": "Liste de macros dans le format suivant: votrebouton:votrecommande", "screen.snowy.config.general.macros.missingdelimiter": "Séparateur manquant (:)", "screen.snowy.config.general.macros.missingelement": "Élément(s) manquant(s) avant ou après le séparateur", "screen.snowy.config.general.macros.toomuchdelimiters": "Séparateurs trop nombreux (un seul est autorisé)",