add whistle to train

This commit is contained in:
2026-06-29 08:35:14 +02:00
parent d09a975578
commit 6a2a2d2e8a
24 changed files with 881 additions and 38 deletions

View File

@@ -32,6 +32,8 @@ func _set_selected_color(index: int) -> void:
else:
color_pickers[i].deselect()
AchievementManager.is_unlocked("ACH_CHANGE_TRAIN_COLOR")
func _on_color_selected(selected_color_picker: TrainColorPicker) -> void:
for i in range(color_pickers.size()):
if color_pickers[i] == selected_color_picker:

View File

@@ -9,10 +9,10 @@ func _ready() -> void:
deselect()
disable()
func set_option_text(text: String) -> void:
func set_option_text(_text: String) -> void:
if label == null:
label = $%Label
label.text = text
label.text = _text
func select() -> void:
if checkbox == null: