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.
13 lines
303 B
GDScript
13 lines
303 B
GDScript
extends Control
|
|
class_name WeaponItemSub
|
|
|
|
|
|
func set_texture(value:Texture2D):
|
|
$WeaponIcon.texture = value
|
|
|
|
func update_alpha(alpha_from:float,alpha_to:float,rate:float):
|
|
var alpha = lerp(alpha_from,alpha_to,rate)
|
|
$WeaponIcon.modulate = Color(1,1,1,alpha)
|
|
$WeaponSlot.modulate = Color(1,1,1,alpha)
|
|
|