add whistle to train
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user