2018-07-27 10:02:46 +00:00
|
|
|
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):
|
2018-07-27 10:13:08 +00:00
|
|
|
self.modulate = Color( 1.0, 1.0, 1.0, clamp(value/50, 20/255, 1 ) )
|
2018-07-27 14:13:54 +00:00
|
|
|
get_node( "../../overlay_oubli" ).modulate.a = self.modulate.a/2
|