diff options
Diffstat (limited to 'src/ui/hud/progress_bars')
-rw-r--r-- | src/ui/hud/progress_bars/scenes/GrowthProgress.tscn | 12 | ||||
-rw-r--r-- | src/ui/hud/progress_bars/scripts/growth_progress.gd | 10 | ||||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/over.png | bin | 0 -> 135 bytes | |||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/over.png.import | 35 | ||||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/progress.png | bin | 0 -> 120 bytes | |||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/progress.png.import | 35 | ||||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/under.png | bin | 0 -> 120 bytes | |||
-rw-r--r-- | src/ui/hud/progress_bars/sprites/under.png.import | 35 |
8 files changed, 127 insertions, 0 deletions
diff --git a/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn b/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn new file mode 100644 index 0000000..0a0d9a8 --- /dev/null +++ b/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://ui/hud/progress_bars/sprites/progress.png" type="Texture" id=1] +[ext_resource path="res://ui/hud/progress_bars/sprites/over.png" type="Texture" id=2] +[ext_resource path="res://ui/hud/progress_bars/sprites/under.png" type="Texture" id=3] +[ext_resource path="res://ui/hud/progress_bars/scripts/growth_progress.gd" type="Script" id=4] + +[node name="GrowthProgress" type="TextureProgress"] +texture_under = ExtResource( 3 ) +texture_over = ExtResource( 2 ) +texture_progress = ExtResource( 1 ) +script = ExtResource( 4 ) diff --git a/src/ui/hud/progress_bars/scripts/growth_progress.gd b/src/ui/hud/progress_bars/scripts/growth_progress.gd new file mode 100644 index 0000000..a9d455c --- /dev/null +++ b/src/ui/hud/progress_bars/scripts/growth_progress.gd @@ -0,0 +1,10 @@ +extends TextureProgress + + +func _ready(): + Event.connect("snake_growth_progress", self, "_on_snake_growth_progress") + max_value = Global.POINTS_TO_GROW + + +func _on_snake_growth_progress(progress: int) -> void: + value = progress diff --git a/src/ui/hud/progress_bars/sprites/over.png b/src/ui/hud/progress_bars/sprites/over.png Binary files differnew file mode 100644 index 0000000..82714cf --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/over.png diff --git a/src/ui/hud/progress_bars/sprites/over.png.import b/src/ui/hud/progress_bars/sprites/over.png.import new file mode 100644 index 0000000..6dab18d --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/over.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/over.png-0642cc73272ad1f8af9be593e496f68d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ui/hud/progress_bars/sprites/over.png" +dest_files=[ "res://.import/over.png-0642cc73272ad1f8af9be593e496f68d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=false +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/ui/hud/progress_bars/sprites/progress.png b/src/ui/hud/progress_bars/sprites/progress.png Binary files differnew file mode 100644 index 0000000..0d9ba96 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/progress.png diff --git a/src/ui/hud/progress_bars/sprites/progress.png.import b/src/ui/hud/progress_bars/sprites/progress.png.import new file mode 100644 index 0000000..342daaf --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/progress.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/progress.png-30af99e69a9aa36165f02ed64d480a2f.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ui/hud/progress_bars/sprites/progress.png" +dest_files=[ "res://.import/progress.png-30af99e69a9aa36165f02ed64d480a2f.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=false +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/ui/hud/progress_bars/sprites/under.png b/src/ui/hud/progress_bars/sprites/under.png Binary files differnew file mode 100644 index 0000000..8c8b269 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/under.png diff --git a/src/ui/hud/progress_bars/sprites/under.png.import b/src/ui/hud/progress_bars/sprites/under.png.import new file mode 100644 index 0000000..c6f0d16 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/under.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/under.png-2db90a564085e100d8ec82ea8500cf5d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ui/hud/progress_bars/sprites/under.png" +dest_files=[ "res://.import/under.png-2db90a564085e100d8ec82ea8500cf5d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=false +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 |