You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
319 B
GDScript

extends TextureRect
class_name MpItemSub
@onready var mp_icon = preload("res://resource/ui/hud/player_status_mp.png") as Texture2D
@onready var mp_icon_empty = preload("res://resource/ui/hud/player_status_mp_empty.png") as Texture2D
func set_active(is_active:bool):
texture = mp_icon if is_active else mp_icon_empty