Testing chip bar

This commit is contained in:
gamer147
2026-04-10 12:23:45 -04:00
parent 834d6a3a83
commit 6d9d08d78c
9 changed files with 41 additions and 14 deletions

View File

@@ -38,10 +38,11 @@ func _refresh() -> void:
var chip_width := filled_chip_texture.get_width()
_container.custom_minimum_size.x = chip_width * max_chips_per_row
var empty_count := max_value - value
for i in max_value:
var tex_rect := TextureRect.new()
if i < value:
tex_rect.texture = filled_chip_texture
else:
if i < empty_count:
tex_rect.texture = empty_chip_texture
else:
tex_rect.texture = filled_chip_texture
_container.add_child(tex_rect)