diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-04 05:17:12 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-04 05:17:12 -0600 |
commit | e6beb7d4d3450c68ca5ebfae040f42dd82db1b31 (patch) | |
tree | ba8fae52c6f60c09f4aab2958231969ea571a7e3 /src/ui | |
parent | fa98822a569c1efa2bebc705073c3921b9ae4217 (diff) |
add text for points when eating food
Diffstat (limited to 'src/ui')
13 files changed, 66 insertions, 24 deletions
diff --git a/src/ui/UI.tscn b/src/ui/UI.tscn index 980faf4..79d8f93 100644 --- a/src/ui/UI.tscn +++ b/src/ui/UI.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://ui/ui.gd" type="Script" id=1] +[ext_resource path="res://ui/hud/progress_bars/sprites/grow_progress_icon.png" type="Texture" id=2] [ext_resource path="res://ui/hud/snake/scenes/SnakeHUD.tscn" type="PackedScene" id=3] [ext_resource path="res://ui/hud/progress_bars/scenes/GrowthProgress.tscn" type="PackedScene" id=4] @@ -18,21 +19,27 @@ margin_right = 124.0 margin_bottom = 44.0 [node name="VBox" type="VBoxContainer" parent="Root/StatsHUD"] -margin_right = 120.0 -margin_bottom = 40.0 +custom_constants/separation = 2 [node name="SnakeHUD" parent="Root/StatsHUD/VBox" instance=ExtResource( 3 )] -margin_right = 120.0 +margin_right = 30.0 margin_bottom = 8.0 [node name="HBoxProgressBars" type="HBoxContainer" parent="Root/StatsHUD/VBox"] -margin_top = 12.0 -margin_right = 120.0 -margin_bottom = 16.0 +margin_top = 10.0 +margin_right = 30.0 +margin_bottom = 18.0 +custom_constants/separation = 2 + +[node name="GrowthProgressIcon" type="TextureRect" parent="Root/StatsHUD/VBox/HBoxProgressBars"] +margin_right = 8.0 +margin_bottom = 8.0 +texture = ExtResource( 2 ) [node name="GrowthProgress" parent="Root/StatsHUD/VBox/HBoxProgressBars" instance=ExtResource( 4 )] -margin_right = 20.0 -margin_bottom = 4.0 +margin_left = 10.0 +margin_right = 30.0 +margin_bottom = 8.0 [node name="MarginContainer" type="MarginContainer" parent="Root"] anchor_top = 1.0 diff --git a/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn b/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn index 0a0d9a8..a2478f1 100644 --- a/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn +++ b/src/ui/hud/progress_bars/scenes/GrowthProgress.tscn @@ -1,12 +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/sprites/grow_progress_over.png" type="Texture" id=1] +[ext_resource path="res://ui/hud/progress_bars/sprites/grow_progress_under.png" type="Texture" id=2] +[ext_resource path="res://ui/hud/progress_bars/sprites/grow_progress_progress.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 ) +texture_under = ExtResource( 2 ) +texture_over = ExtResource( 1 ) +texture_progress = ExtResource( 3 ) script = ExtResource( 4 ) diff --git a/src/ui/hud/progress_bars/sprites/grow_progress_icon.png b/src/ui/hud/progress_bars/sprites/grow_progress_icon.png Binary files differnew file mode 100644 index 0000000..0d913c5 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/grow_progress_icon.png diff --git a/src/ui/hud/progress_bars/sprites/under.png.import b/src/ui/hud/progress_bars/sprites/grow_progress_icon.png.import index c6f0d16..8d2488f 100644 --- a/src/ui/hud/progress_bars/sprites/under.png.import +++ b/src/ui/hud/progress_bars/sprites/grow_progress_icon.png.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/under.png-2db90a564085e100d8ec82ea8500cf5d.stex" +path="res://.import/grow_progress_icon.png-3e4c84862319cfedeea45e4e79c3d47f.stex" metadata={ "vram_texture": false } [deps] -source_file="res://ui/hud/progress_bars/sprites/under.png" -dest_files=[ "res://.import/under.png-2db90a564085e100d8ec82ea8500cf5d.stex" ] +source_file="res://ui/hud/progress_bars/sprites/grow_progress_icon.png" +dest_files=[ "res://.import/grow_progress_icon.png-3e4c84862319cfedeea45e4e79c3d47f.stex" ] [params] diff --git a/src/ui/hud/progress_bars/sprites/grow_progress_over.png b/src/ui/hud/progress_bars/sprites/grow_progress_over.png Binary files differnew file mode 100644 index 0000000..ef2d175 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/grow_progress_over.png diff --git a/src/ui/hud/progress_bars/sprites/over.png.import b/src/ui/hud/progress_bars/sprites/grow_progress_over.png.import index 6dab18d..f0d7eb9 100644 --- a/src/ui/hud/progress_bars/sprites/over.png.import +++ b/src/ui/hud/progress_bars/sprites/grow_progress_over.png.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/over.png-0642cc73272ad1f8af9be593e496f68d.stex" +path="res://.import/grow_progress_over.png-6d8306b6318e040ab2863f474941ffab.stex" metadata={ "vram_texture": false } [deps] -source_file="res://ui/hud/progress_bars/sprites/over.png" -dest_files=[ "res://.import/over.png-0642cc73272ad1f8af9be593e496f68d.stex" ] +source_file="res://ui/hud/progress_bars/sprites/grow_progress_over.png" +dest_files=[ "res://.import/grow_progress_over.png-6d8306b6318e040ab2863f474941ffab.stex" ] [params] diff --git a/src/ui/hud/progress_bars/sprites/grow_progress_progress.png b/src/ui/hud/progress_bars/sprites/grow_progress_progress.png Binary files differnew file mode 100644 index 0000000..24c1a2a --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/grow_progress_progress.png diff --git a/src/ui/hud/progress_bars/sprites/grow_progress_progress.png.import b/src/ui/hud/progress_bars/sprites/grow_progress_progress.png.import new file mode 100644 index 0000000..77593c5 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/grow_progress_progress.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/grow_progress_progress.png-30487fff60fbbf02be101653c4371a7b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ui/hud/progress_bars/sprites/grow_progress_progress.png" +dest_files=[ "res://.import/grow_progress_progress.png-30487fff60fbbf02be101653c4371a7b.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/grow_progress_under.png b/src/ui/hud/progress_bars/sprites/grow_progress_under.png Binary files differnew file mode 100644 index 0000000..4597575 --- /dev/null +++ b/src/ui/hud/progress_bars/sprites/grow_progress_under.png diff --git a/src/ui/hud/progress_bars/sprites/progress.png.import b/src/ui/hud/progress_bars/sprites/grow_progress_under.png.import index 342daaf..462f187 100644 --- a/src/ui/hud/progress_bars/sprites/progress.png.import +++ b/src/ui/hud/progress_bars/sprites/grow_progress_under.png.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/progress.png-30af99e69a9aa36165f02ed64d480a2f.stex" +path="res://.import/grow_progress_under.png-c290c9f56bc4c33b22faafc5bd944210.stex" metadata={ "vram_texture": false } [deps] -source_file="res://ui/hud/progress_bars/sprites/progress.png" -dest_files=[ "res://.import/progress.png-30af99e69a9aa36165f02ed64d480a2f.stex" ] +source_file="res://ui/hud/progress_bars/sprites/grow_progress_under.png" +dest_files=[ "res://.import/grow_progress_under.png-c290c9f56bc4c33b22faafc5bd944210.stex" ] [params] diff --git a/src/ui/hud/progress_bars/sprites/over.png b/src/ui/hud/progress_bars/sprites/over.png Binary files differdeleted file mode 100644 index c5e102d..0000000 --- a/src/ui/hud/progress_bars/sprites/over.png +++ /dev/null diff --git a/src/ui/hud/progress_bars/sprites/progress.png b/src/ui/hud/progress_bars/sprites/progress.png Binary files differdeleted file mode 100644 index 1ddfd77..0000000 --- a/src/ui/hud/progress_bars/sprites/progress.png +++ /dev/null diff --git a/src/ui/hud/progress_bars/sprites/under.png b/src/ui/hud/progress_bars/sprites/under.png Binary files differdeleted file mode 100644 index f31d502..0000000 --- a/src/ui/hud/progress_bars/sprites/under.png +++ /dev/null |