mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-03 02:51:16 +00:00
Made selector 3D
This commit is contained in:
parent
5e3ccf3b99
commit
0a7b1614a9
8 changed files with 113 additions and 45 deletions
|
|
@ -1,30 +1,13 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dsaj5dx82brsg"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dsaj5dx82brsg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="1_undfg"]
|
||||
[ext_resource type="Script" uid="uid://w85hem1ec8cq" path="res://Scripts/Tools/AnimatedTextureRect.gd" id="2_cjotf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vxp1j"]
|
||||
atlas = ExtResource("1_undfg")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
[ext_resource type="SpriteFrames" uid="uid://dhn6pld33ek0v" path="res://Resources/Sprites/Selector.tres" id="3_cjotf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bnh43"]
|
||||
atlas = ExtResource("1_undfg")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0vbph"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vxp1j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bnh43")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="UiSelector" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -39,7 +22,7 @@ offset_left = -8.0
|
|||
offset_top = -8.0
|
||||
offset_right = 8.0
|
||||
offset_bottom = 8.0
|
||||
texture = SubResource("AtlasTexture_vxp1j")
|
||||
texture = SubResource("AtlasTexture_bnh43")
|
||||
stretch_mode = 2
|
||||
script = ExtResource("2_cjotf")
|
||||
Frames = SubResource("SpriteFrames_0vbph")
|
||||
Frames = ExtResource("3_cjotf")
|
||||
|
|
|
|||
16
Scenes/HUD/WorldSelector3D.tscn
Normal file
16
Scenes/HUD/WorldSelector3D.tscn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cwnyegefc8o6q"]
|
||||
|
||||
[ext_resource type="SpriteFrames" uid="uid://dhn6pld33ek0v" path="res://Resources/Sprites/Selector.tres" id="1_vi7xt"]
|
||||
|
||||
[node name="UiSelector" type="Node3D"]
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite3D" parent="."]
|
||||
transform = Transform3D(0.70710677, -0.49999997, 0.49999997, 0, 0.70710677, 0.70710677, -0.70710677, -0.49999997, 0.49999997, 0, 0, 0)
|
||||
pixel_size = 0.05
|
||||
no_depth_test = true
|
||||
texture_filter = 0
|
||||
render_priority = 10
|
||||
sprite_frames = ExtResource("1_vi7xt")
|
||||
autoplay = "default"
|
||||
frame = 1
|
||||
frame_progress = 0.888575
|
||||
Loading…
Add table
Add a link
Reference in a new issue