extends BaseTrack # This is the same as example but automatically populates names from file names instead of needing to manually define every track # Gets the area that should become the name from regex # You can use sites like this to help construct regex: https://regex101.com/ # Helpful when you have a large amount of music that all follows the same naming convention func _init(): _default = { "artist": "Kevin MacLeod", "thumbnail": preload("res://thumbnails/example.bmp"), "source": "https://incompetech.com/", "disabled": true } _autoload = { "path": "res://music/example", "pattern": ".*" } # You can still override things using a _tracks variable and the track set to the path to the file for what you want to override