Thumbnail.gd 293 B

1234567891011121314
  1. extends TextureRect
  2. export (Array, Texture) var pictures
  3. func display(index: int) -> void:
  4. assert(index >= 0, "Index must be positive")
  5. assert(index < pictures.size(), "Index must be within bounds")
  6. texture = pictures[index]
  7. func _on_lab_selected(index: int) -> void:
  8. display(index)