test-client-godot/scenes/GUI/HUD/oubli.gd

20 lines
547 B
GDScript3
Raw Normal View History

extends HBoxContainer
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass
func _on_ProgressBar_value_changed(value):
self.modulate = Color( 1.0, 1.0, 1.0, clamp(value/50, 20/255, 1 ) )
get_node( "../../overlay_oubli" ).modulate.a = self.modulate.a-self.modulate.a/2