The language buttons in the preferences have their localized names in their hint tooltips

For example, if you hover over the "English" button while the language is Greek, the hint tooltip will be "Αγγλικά", which is the Greek word for English.
This commit is contained in:
OverloadedOrama 2020-02-07 02:40:53 +02:00
parent 49005e7425
commit 12fb8b02c8
3 changed files with 28 additions and 29 deletions

View file

@ -20,6 +20,7 @@ func _ready() -> void:
for child in languages.get_children():
if child is Button:
child.connect("pressed", self, "_on_Language_pressed", [child])
child.hint_tooltip = child.name
for child in themes.get_children():
if child is Button: