From 75d08d0dc2eaef1e0f9ba41e83a705e673264adb Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Wed, 4 Dec 2024 19:17:17 -0700 Subject: [PATCH] Glint on the 'woah nice' message --- src/ui/shot_hud/shot_hud.tscn | 79 ++++++++++++++++++++++++++++++++--- 1 file changed, 74 insertions(+), 5 deletions(-) diff --git a/src/ui/shot_hud/shot_hud.tscn b/src/ui/shot_hud/shot_hud.tscn index d043de9..cfde0b9 100644 --- a/src/ui/shot_hud/shot_hud.tscn +++ b/src/ui/shot_hud/shot_hud.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=36 format=3 uid="uid://c4ifdiohng830"] +[gd_scene load_steps=38 format=3 uid="uid://c4ifdiohng830"] [ext_resource type="Script" path="res://src/ui/shot_hud/shot_hud.gd" id="1_x5b4c"] [ext_resource type="Shader" path="res://src/shaders/canvas_retro.gdshader" id="1_ybxxp"] @@ -87,6 +87,30 @@ tracks/5/keys = { "update": 1, "values": [true] } +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("Glint:anchor_left") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [-1.0] +} +tracks/7/type = "value" +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/path = NodePath("Glint:anchor_right") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [0.0] +} [sub_resource type="Animation" id="Animation_cwotn"] resource_name = "display" @@ -162,6 +186,30 @@ tracks/5/keys = { "update": 1, "values": [true] } +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("Glint:anchor_left") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0.7, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [-1.0, 1.0] +} +tracks/7/type = "value" +tracks/7/imported = false +tracks/7/enabled = true +tracks/7/path = NodePath("Glint:anchor_right") +tracks/7/interp = 1 +tracks/7/loop_wrap = true +tracks/7/keys = { +"times": PackedFloat32Array(0.7, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [0.0, 2.0] +} [sub_resource type="AnimationLibrary" id="AnimationLibrary_2a0gn"] _data = { @@ -169,6 +217,16 @@ _data = { "display": SubResource("Animation_cwotn") } +[sub_resource type="Gradient" id="Gradient_xp0wp"] +offsets = PackedFloat32Array(0, 0.482857, 1) +colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_knygn"] +gradient = SubResource("Gradient_xp0wp") +fill_from = Vector2(0, 0.4) +fill_to = Vector2(1, 0.6) +metadata/_snap_enabled = true + [sub_resource type="Animation" id="Animation_2gt87"] resource_name = "RESET" length = 0.001 @@ -596,6 +654,7 @@ script = ExtResource("1_x5b4c") [node name="WoahNiceFeedback" type="RichTextLabel" parent="."] visible = false +clip_children = 2 custom_minimum_size = Vector2(1200, 0) layout_mode = 1 anchors_preset = -1 @@ -603,10 +662,10 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -350.0 -offset_top = -66.0 -offset_right = 350.0 -offset_bottom = 66.0 +offset_left = -600.0 +offset_top = -136.5 +offset_right = 600.0 +offset_bottom = 136.5 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 @@ -628,6 +687,16 @@ stream = ExtResource("2_5f3rs") volume_db = -16.0 bus = &"SFX" +[node name="Glint" type="TextureRect" parent="WoahNiceFeedback"] +clip_children = 2 +layout_mode = 1 +anchors_preset = -1 +anchor_left = -1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +texture = SubResource("GradientTexture2D_knygn") + [node name="WastedFeedback" type="RichTextLabel" parent="."] visible = false custom_minimum_size = Vector2(1400, 0)