mlpcardgame/Scenes/UI/PhaseIcon.gd

10 lines
195 B
GDScript3
Raw Normal View History

2019-05-27 23:14:57 +00:00
extends TextureRect
2019-05-27 22:58:39 +00:00
export var phaseID = 0
const iconSize = 80
func _ready():
2019-05-27 23:14:57 +00:00
var atlas := (texture as AtlasTexture).duplicate()
atlas.region.position.x = phaseID * iconSize
texture = atlas