Use less characters for the macros tooltip, and show the macros clickbox when the configuration isn't empty
This commit is contained in:
parent
4144d3bd5a
commit
fd408c4b62
|
@ -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()
|
||||
|
|
|
@ -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)",
|
||||
|
|
|
@ -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é)",
|
||||
|
|
Loading…
Reference in New Issue