Vore_Sandbox_Remaster/scripts/fore.gd

18 lines
389 B
GDScript

extends Sprite
class_name FGSprite
# this is for the foreground pred images.
# it makes them change opacity when mouse is clicked
func _process(delta):
if (
Global.xray == Global.xrayset.ALWAYS or
Input.is_action_pressed("grab")
and Global.xray == Global.xrayset.WHEN_CLICK
):
modulate = Color(1,1,1,0.75)
modulate = Color(1,1,1,0.75)
else:
modulate = Color(1,1,1,1)