Use less characters for the macros tooltip, and show the macros clickbox when the configuration isn't empty

This commit is contained in:
Username404 2021-05-31 18:46:05 +02:00
parent 4144d3bd5a
commit fd408c4b62
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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)",

View File

@ -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é)",