godot-psd-training/trainings/trainingPanel/trainingPanel.tscn
2024-05-22 15:03:03 +08:00

54 lines
2.1 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://bsb3nyi8xaqwh"]
[ext_resource type="Script" path="res://trainings/trainingPanel/trainingPanel.gd" id="1_fka8c"]
[ext_resource type="Texture2D" uid="uid://x4cnaa1ay6so" path="res://Assets/重来重新开始_浅.png" id="2_db1sa"]
[ext_resource type="Theme" uid="uid://bycedcl2nwwlu" path="res://ui_theme.tres" id="2_hmh0f"]
[ext_resource type="Texture2D" uid="uid://0txfneuxl2yq" path="res://Assets/重来重新开始_深.png" id="3_0sd5r"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q5iy8"]
bg_color = Color(0.189249, 0.649753, 0.849873, 1)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.00784314, 0.466667, 0.835294, 1)
[sub_resource type="Theme" id="Theme_kqpcn"]
Button/styles/normal = SubResource("StyleBoxFlat_q5iy8")
[node name="TrainingPanel" type="Node"]
script = ExtResource("1_fka8c")
[node name="PanelContainer" type="PanelContainer" parent="."]
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 60.9691
offset_top = -80.3169
offset_right = 118.969
offset_bottom = -24.3169
grow_vertical = 0
scale = Vector2(0.8, 0.8)
theme = ExtResource("2_hmh0f")
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 2
theme_override_constants/margin_top = 2
theme_override_constants/margin_right = 2
theme_override_constants/margin_bottom = 2
[node name="Restart" type="TextureButton" parent="PanelContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme = SubResource("Theme_kqpcn")
texture_normal = ExtResource("2_db1sa")
texture_hover = ExtResource("3_0sd5r")
stretch_mode = 5
[connection signal="button_down" from="PanelContainer/MarginContainer/Restart" to="." method="_on_restart_button_down"]
[connection signal="mouse_entered" from="PanelContainer/MarginContainer/Restart" to="." method="_on_restart_mouse_entered"]
[connection signal="mouse_exited" from="PanelContainer/MarginContainer/Restart" to="." method="_on_restart_mouse_exited"]