add vial-fill shader with liquid effect and smooth tween transitions; increase corner radius to 12px; replace progress bars with shader-based vial fill

This commit is contained in:
Eric Smith 2026-05-20 15:03:47 -04:00
parent 92110cfee7
commit 3eb089b776
6 changed files with 147 additions and 73 deletions

View file

@ -1,11 +1,19 @@
[gd_scene format=3 uid="uid://d2d4uqrd2hh3d"]
[ext_resource type="Script" path="res://panels/memory/memory_module.gd" id="1"]
[ext_resource type="Shader" path="res://shaders/vial_fill.gdshader" id="2"]
[node name="MemoryModule" type="PanelContainer"]
anchors_preset = 0
script = ExtResource("1")
[node name="VialFill" type="ColorRect" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
[node name="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
@ -31,10 +39,3 @@ size_flags_vertical = 3
unique_name_in_owner = true
horizontal_alignment = 1
size_flags_horizontal = 4
[node name="ProgressBar" type="ProgressBar" parent="MarginContainer/VBoxContainer"]
unique_name_in_owner = true
size_flags_horizontal = 4
max_value = 100.0
value = 0.0
show_percentage = false