swipe arrows good?!

This commit is contained in:
msk
2023-10-09 02:26:44 -07:00
parent 33054498a7
commit d33dce9ed2
5 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -25,11 +25,11 @@ namespace WacK.Things.TunnelObjects
public void SetPosSize(int pos, int size) public void SetPosSize(int pos, int size)
{ {
var p = Position; var p = Position;
p.X = Constants.BASE_2D_RESOLUTION / 60 * pos; p.X = Constants.BASE_2D_RESOLUTION / 60 * pos + Constants.BASE_2D_RESOLUTION / 120;
Position = p; Position = p;
var s = Size; var s = Size;
s.Y = Constants.BASE_2D_RESOLUTION / 60 * size; s.Y = Constants.BASE_2D_RESOLUTION / 60 * size - Constants.BASE_2D_RESOLUTION / 60;
Size = s; Size = s;
shader.SetShaderParameter("TileMult", s.Y / 64); shader.SetShaderParameter("TileMult", s.Y / 64);
} }
-1
View File
@@ -230,7 +230,6 @@ void fragment() {
} }
" "
graph_offset = Vector2(-782.772, -216.243)
mode = 1 mode = 1
flags/light_only = false flags/light_only = false
nodes/fragment/0/position = Vector2(1500, 460) nodes/fragment/0/position = Vector2(1500, 460)
+4 -4
View File
@@ -7,7 +7,7 @@
[ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_rv322"] [ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_rv322"]
[ext_resource type="Texture2D" uid="uid://kjoqem41xatr" path="res://_Assets/Textures/Notes/SlideArrow_Mask.png" id="6_o3u8k"] [ext_resource type="Texture2D" uid="uid://kjoqem41xatr" path="res://_Assets/Textures/Notes/SlideArrow_Mask.png" id="6_o3u8k"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u2bbd"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_gys6q"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("3_k16x0") shader = ExtResource("3_k16x0")
shader_parameter/ArrowColor = Color(0, 1, 0, 1) shader_parameter/ArrowColor = Color(0, 1, 0, 1)
@@ -39,7 +39,7 @@ patch_margin_left = 12
patch_margin_right = 12 patch_margin_right = 12
[node name="SwipeArrow" parent="." instance=ExtResource("3_smdjm")] [node name="SwipeArrow" parent="." instance=ExtResource("3_smdjm")]
material = SubResource("ShaderMaterial_u2bbd") material = SubResource("ShaderMaterial_gys6q")
layout_mode = 0 layout_mode = 0
offset_top = -75.0 offset_top = -35.0
offset_bottom = 693.0 offset_bottom = 733.0
+4 -4
View File
@@ -7,7 +7,7 @@
[ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_v0t51"] [ext_resource type="Texture2D" uid="uid://cmaq66vbi80ug" path="res://_Assets/Textures/Notes/SlideArrow_Texture.png" id="4_v0t51"]
[ext_resource type="Texture2D" uid="uid://kjoqem41xatr" path="res://_Assets/Textures/Notes/SlideArrow_Mask.png" id="5_dafyh"] [ext_resource type="Texture2D" uid="uid://kjoqem41xatr" path="res://_Assets/Textures/Notes/SlideArrow_Mask.png" id="5_dafyh"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_52amd"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_y8jlc"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("3_de2t7") shader = ExtResource("3_de2t7")
shader_parameter/ArrowColor = Color(0, 1, 0, 1) shader_parameter/ArrowColor = Color(0, 1, 0, 1)
@@ -40,7 +40,7 @@ patch_margin_left = 12
patch_margin_right = 12 patch_margin_right = 12
[node name="SwipeArrow" parent="." instance=ExtResource("3_b1dle")] [node name="SwipeArrow" parent="." instance=ExtResource("3_b1dle")]
material = SubResource("ShaderMaterial_52amd") material = SubResource("ShaderMaterial_y8jlc")
layout_mode = 0 layout_mode = 0
offset_top = -75.0 offset_top = -35.0
offset_bottom = 693.0 offset_bottom = 733.0
+3 -3
View File
@@ -20,9 +20,9 @@ width = 1
[node name="SwipeArrow" type="TextureRect"] [node name="SwipeArrow" type="TextureRect"]
material = SubResource("ShaderMaterial_hasp1") material = SubResource("ShaderMaterial_hasp1")
offset_top = -70.0 offset_top = -30.0
offset_right = 175.0 offset_right = 125.0
offset_bottom = 698.0 offset_bottom = 738.0
rotation = -1.5708 rotation = -1.5708
texture = SubResource("GradientTexture1D_afqg4") texture = SubResource("GradientTexture1D_afqg4")
script = ExtResource("4_ep8x4") script = ExtResource("4_ep8x4")