135 lines
3.3 KiB
Plaintext
135 lines
3.3 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://assets/NotoSansUI_Regular.ttf" type="DynamicFontData" id=1]
|
|
[ext_resource path="res://addons/Trail/trail3d_icon.svg" type="Texture" id=2]
|
|
[ext_resource path="res://addons/Trail/trail2d_icon.svg" type="Texture" id=3]
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
script/source = "extends Control
|
|
|
|
|
|
|
|
|
|
func _on_btn1_button_down():
|
|
get_tree().change_scene(\"res://level.tscn\")
|
|
|
|
|
|
func _on_btn2_button_down():
|
|
get_tree().change_scene(\"res://navmesh.tscn\")
|
|
|
|
|
|
func _on_btn3_button_down():
|
|
get_tree().change_scene(\"res://demo_3d_1.tscn\")
|
|
|
|
|
|
func _on_btn4_button_down():
|
|
get_tree().change_scene(\"res://demo_3d_2.tscn\")
|
|
|
|
|
|
func _on_btn_quit_button_down():
|
|
get_tree().quit()
|
|
|
|
|
|
"
|
|
|
|
[sub_resource type="DynamicFont" id=2]
|
|
size = 64
|
|
use_mipmaps = true
|
|
use_filter = true
|
|
font_data = ExtResource( 1 )
|
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
size = 18
|
|
use_mipmaps = true
|
|
use_filter = true
|
|
font_data = ExtResource( 1 )
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="panel" type="Panel" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="title" type="Label" parent="panel"]
|
|
anchor_right = 1.0
|
|
margin_left = 20.0
|
|
margin_top = 20.0
|
|
margin_right = -20.0
|
|
margin_bottom = 14.0
|
|
custom_fonts/font = SubResource( 2 )
|
|
text = "Trail System Demo"
|
|
align = 1
|
|
valign = 1
|
|
|
|
[node name="vbc" type="VBoxContainer" parent="panel"]
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 220.0
|
|
margin_top = -347.0
|
|
margin_right = -220.0
|
|
margin_bottom = -50.0
|
|
custom_constants/separation = 10
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="btn1" type="Button" parent="panel/vbc"]
|
|
margin_right = 584.0
|
|
margin_bottom = 32.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "[2D] Navigation Mesh"
|
|
icon = ExtResource( 3 )
|
|
|
|
[node name="btn2" type="Button" parent="panel/vbc"]
|
|
margin_top = 42.0
|
|
margin_right = 584.0
|
|
margin_bottom = 74.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "[3D] Navigation Mesh"
|
|
icon = ExtResource( 2 )
|
|
|
|
[node name="btn3" type="Button" parent="panel/vbc"]
|
|
margin_top = 84.0
|
|
margin_right = 584.0
|
|
margin_bottom = 116.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "[3D] Projectile trail"
|
|
icon = ExtResource( 2 )
|
|
|
|
[node name="btn4" type="Button" parent="panel/vbc"]
|
|
margin_top = 126.0
|
|
margin_right = 584.0
|
|
margin_bottom = 158.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "[3D] Character Sword/Capoeira"
|
|
icon = ExtResource( 2 )
|
|
|
|
[node name="spacer" type="Control" parent="panel/vbc"]
|
|
margin_top = 168.0
|
|
margin_right = 584.0
|
|
margin_bottom = 255.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="btn_quit" type="Button" parent="panel/vbc"]
|
|
margin_top = 265.0
|
|
margin_right = 584.0
|
|
margin_bottom = 297.0
|
|
custom_fonts/font = SubResource( 3 )
|
|
text = "Quit"
|
|
[connection signal="button_down" from="panel/vbc/btn1" to="." method="_on_btn1_button_down"]
|
|
[connection signal="button_down" from="panel/vbc/btn2" to="." method="_on_btn2_button_down"]
|
|
[connection signal="button_down" from="panel/vbc/btn3" to="." method="_on_btn3_button_down"]
|
|
[connection signal="button_down" from="panel/vbc/btn4" to="." method="_on_btn4_button_down"]
|
|
[connection signal="button_down" from="panel/vbc/btn_quit" to="." method="_on_btn_quit_button_down"]
|