test-client-godot/scenes/GUI/HUD/trauma.gd
2018-08-18 10:22:19 +02:00

7 lines
No EOL
220 B
GDScript

extends HBoxContainer
func _process(delta):
self.get_node( "ProgressBar" ).value = character.trauma
func _on_ProgressBar_value_changed(value):
self.modulate = Color( 1.0, 1.0, 1.0, clamp(value/50, 20/255, 1 ) )