mlpcardgame/Scenes/Board/UI/PhaseIcon.gd

10 lines
No EOL
195 B
GDScript

extends TextureRect
export var phaseID = 0
const iconSize = 80
func _ready():
var atlas := (texture as AtlasTexture).duplicate()
atlas.region.position.x = phaseID * iconSize
texture = atlas