21 lines
531 B
GDScript3
21 lines
531 B
GDScript3
|
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, 0.4, 1 ) )
|
||
|
get_node( "../../overlay_douleur" ).modulate.a = self.modulate.a/2
|