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

7 lines
220 B
GDScript3
Raw Normal View History

extends HBoxContainer
2018-08-18 08:22:19 +00:00
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 ) )