initial shit
This commit is contained in:
79
Objects/IButton.tscn
Normal file
79
Objects/IButton.tscn
Normal file
@@ -0,0 +1,79 @@
|
||||
[gd_scene format=3 uid="uid://3gnlcoefcg04"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://lc16dii2q86w" path="res://Objects/Scripts/IButton.gd" id="1_3ujms"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://bn0u7x5cdhqeq" path="res://Assets/Models/IButtonBase.obj" id="1_muiik"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://c14lv8v6bduhu" path="res://Assets/Models/IButtonCap.obj" id="2_3ujms"]
|
||||
[ext_resource type="FontFile" uid="uid://drt3ca0d33tq7" path="res://Assets/font.otf" id="3_548fc"]
|
||||
[ext_resource type="AudioStream" uid="uid://3u4ofv7lf7oq" path="res://Assets/switch.mp3" id="5_gopp6"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_43xld"]
|
||||
size = Vector3(0.87475586, 0.5344238, 0.8363037)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_548fc"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_3ujms"]
|
||||
length = 0.001
|
||||
tracks/0/type = "position_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("StaticBody3D")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_43xld"]
|
||||
resource_name = "interact"
|
||||
length = 0.033333335
|
||||
tracks/0/type = "position_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("StaticBody3D")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 0.033333335, 1, 0, -0.055, 0)
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_44wre"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_3ujms"),
|
||||
&"interact": SubResource("Animation_43xld")
|
||||
}
|
||||
|
||||
[node name="IButton" type="Node3D" unique_id=161856390]
|
||||
script = ExtResource("1_3ujms")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=149645064]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
mesh = ExtResource("1_muiik")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=1737148302]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=6776762]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0015869141, 0.9676255, -0.006164551)
|
||||
shape = SubResource("BoxShape3D_43xld")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D" unique_id=1645284239]
|
||||
mesh = ExtResource("2_3ujms")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_548fc")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="StaticBody3D" unique_id=373480060]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 1.1993433, 0)
|
||||
alpha_cut = 2
|
||||
alpha_scissor_threshold = 0.0
|
||||
alpha_hash_scale = 0.0
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
outline_modulate = Color(1, 1, 1, 1)
|
||||
text = "text"
|
||||
font = ExtResource("3_548fc")
|
||||
font_size = 44
|
||||
outline_size = 0
|
||||
uppercase = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1631573490]
|
||||
libraries/ = SubResource("AnimationLibrary_44wre")
|
||||
|
||||
[node name="Sound" type="AudioStreamPlayer3D" parent="." unique_id=14794157]
|
||||
stream = ExtResource("5_gopp6")
|
||||
volume_db = -15.0
|
||||
|
||||
[connection signal="input_event" from="StaticBody3D" to="." method="_on_static_body_3d_input_event"]
|
||||
Reference in New Issue
Block a user