godot-psd-training/UI/JJTC/jjlc.tscn
joylink_fanyuhong faabdfb75d 代码调整
2024-04-29 11:22:44 +08:00

93 lines
4.0 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://gjmtus0cnppi"]
[ext_resource type="Script" path="res://sceen/platform/JJTC_Box.gd" id="1_sa7p7"]
[ext_resource type="Script" path="res://UI/JJTC/jjlc.gd" id="1_ymor0"]
[ext_resource type="Texture2D" uid="uid://conkf5pl66e10" path="res://Assets/jjtc/jjtc_lockArea.png" id="3_0sd1y"]
[ext_resource type="Texture2D" uid="uid://cpmlwpev7rvbp" path="res://Assets/打开钥匙面板钥匙.png" id="3_3sobd"]
[ext_resource type="Texture2D" uid="uid://dwo21aihhep0w" path="res://Assets/jjtc/jjtc_ky.png" id="3_cilkf"]
[ext_resource type="Texture2D" uid="uid://350x85ekm0vo" path="res://Assets/jjtc/jjtc_button.png" id="3_t5xss"]
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="4_xrw3n"]
[ext_resource type="AudioStream" uid="uid://c0j0dmes382ax" path="res://Assets/music/JJTC_Box_Voice.mp3" id="7_khtfn"]
[ext_resource type="Script" path="res://UI/JJTC/JJTC_Right_Rotate.gd" id="8_3qs6d"]
[ext_resource type="Script" path="res://UI/JJTC/JJTC_Left_Rotate.gd" id="9_c03t7"]
[node name="jjtc" type="Window"]
position = Vector2i(0, 36)
size = Vector2i(570, 512)
script = ExtResource("1_ymor0")
[node name="PanelContainer" type="PanelContainer" parent="."]
anchors_preset = -1
anchor_right = 1.00351
anchor_bottom = 1.0
grow_vertical = 2
metadata/_edit_use_anchors_ = true
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_left = 60
[node name="JJTC_Box" type="TextureRect" parent="PanelContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
script = ExtResource("1_sa7p7")
[node name="JJTC_Button" type="TextureRect" parent="."]
offset_left = 230.0
offset_top = 202.0
offset_right = 320.0
offset_bottom = 288.0
texture = ExtResource("3_t5xss")
[node name="Close_Click_Area" type="TextureRect" parent="."]
offset_left = 390.0
offset_top = 55.0
offset_right = 470.0
offset_bottom = 530.0
texture = ExtResource("3_0sd1y")
[node name="StationKeys" type="TextureRect" parent="."]
offset_left = 525.0
offset_top = 100.0
offset_right = 593.0
offset_bottom = 250.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("3_3sobd")
[node name="JJTC_Key" type="TextureRect" parent="."]
offset_left = 146.0
offset_top = 234.0
offset_right = 210.0
offset_bottom = 254.0
texture = ExtResource("3_cilkf")
[node name="JJTC_Right_Rotate" type="Sprite2D" parent="."]
position = Vector2(224, 210)
rotation = 0.912807
scale = Vector2(0.25, 0.25)
texture = ExtResource("4_xrw3n")
script = ExtResource("8_3qs6d")
[node name="JJTC_Left_Rotate" type="Sprite2D" parent="."]
position = Vector2(132, 210)
rotation = -0.912807
scale = Vector2(0.25, 0.25)
texture = ExtResource("4_xrw3n")
flip_h = true
script = ExtResource("9_c03t7")
[node name="JJTC_Box_Voice" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_khtfn")
[connection signal="gui_input" from="JJTC_Button" to="." method="_on_jjtc_button_gui_input"]
[connection signal="mouse_entered" from="JJTC_Button" to="." method="_on_jjtc_button_mouse_entered"]
[connection signal="mouse_exited" from="JJTC_Button" to="." method="_on_jjtc_button_mouse_exited"]
[connection signal="gui_input" from="Close_Click_Area" to="PanelContainer/VBoxContainer/MarginContainer/JJTC_Box" method="_on_close_click_area_gui_input"]
[connection signal="mouse_entered" from="Close_Click_Area" to="PanelContainer/VBoxContainer/MarginContainer/JJTC_Box" method="_on_close_click_area_mouse_entered"]
[connection signal="mouse_exited" from="Close_Click_Area" to="PanelContainer/VBoxContainer/MarginContainer/JJTC_Box" method="_on_close_click_area_mouse_exited"]
[connection signal="gui_input" from="StationKeys" to="." method="_on_station_keys_gui_input"]
[connection signal="mouse_entered" from="StationKeys" to="PanelContainer/VBoxContainer/MarginContainer/JJTC_Box" method="_on_station_keys_mouse_entered"]
[connection signal="mouse_exited" from="StationKeys" to="PanelContainer/VBoxContainer/MarginContainer/JJTC_Box" method="_on_station_keys_mouse_exited"]