godot_experiments/experiments/lcb.tscn

40 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2024-04-19 13:15:35 +08:00
[gd_scene load_steps=4 format=3 uid="uid://b5c3atssvhkwy"]
[ext_resource type="PackedScene" uid="uid://smgws0tjgxn0" path="res://Assets/models/screendoor/screenDoor.gltf" id="1_3e1st"]
[ext_resource type="Script" path="res://experiments/lcb.gd" id="2_e83ig"]
[sub_resource type="ViewportTexture" id="ViewportTexture_x5cm6"]
viewport_path = NodePath("LCB_Lable")
[node name="LCB" instance=ExtResource("1_3e1st")]
script = ExtResource("2_e83ig")
[node name="JH_GD_LCB" parent="." index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0218282, -0.0190198, -0.0356126)
[node name="LCB_Lable" type="SubViewport" parent="." index="1"]
size = Vector2i(64, 32)
[node name="ColorRect" type="ColorRect" parent="LCB_Lable" index="0"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0.0901961, 1, 1)
[node name="Button" type="Button" parent="LCB_Lable" index="1"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "LCB"
[node name="Sprite3D" type="Sprite3D" parent="." index="2"]
transform = Transform3D(0.255803, 0, 0, 0, 0.255803, 0, 0, 0, 0.255803, -0.0167608, 0.0950372, 0)
texture = SubResource("ViewportTexture_x5cm6")
[connection signal="pressed" from="LCB_Lable/Button" to="." method="_on_button_pressed"]