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

7 lines
220 B
GDScript3
Raw Normal View History

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 ) )