mirror of
https://git.tonybark.com/tonytins/legendsonline.git
synced 2025-06-25 17:24:44 -04:00
Basic TCP connections
This commit is contained in:
parent
cd3ef1c3da
commit
60d28a2879
20 changed files with 968 additions and 30 deletions
20
client/scenes/GameScn.tscn
Normal file
20
client/scenes/GameScn.tscn
Normal file
|
@ -0,0 +1,20 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://b0fl2hf2lbd0s"]
|
||||
|
||||
[ext_resource type="Script" path="res://source/GameScn.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cltqljwt37ib5" path="res://icon.png" id="2_24hj0"]
|
||||
[ext_resource type="PackedScene" uid="uid://baomgr7v1oi8q" path="res://scenes/PauseScn.tscn" id="3_gdh7b"]
|
||||
|
||||
[node name="GameScn" type="Node"]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(466, 192)
|
||||
texture = ExtResource("2_24hj0")
|
||||
|
||||
[node name="PauseScn" parent="." instance=ExtResource("3_gdh7b")]
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
45
client/scenes/PauseScn.tscn
Normal file
45
client/scenes/PauseScn.tscn
Normal file
|
@ -0,0 +1,45 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://baomgr7v1oi8q"]
|
||||
|
||||
[ext_resource type="Script" path="res://source/PauseScn.gd" id="1"]
|
||||
|
||||
[node name="PauseScn" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="PauseWin" type="Window" parent="."]
|
||||
title = "Pause"
|
||||
position = Vector2i(0, 36)
|
||||
size = Vector2i(150, 150)
|
||||
visible = false
|
||||
|
||||
[node name="PauseVbox" type="VBoxContainer" parent="PauseWin"]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -111.0
|
||||
offset_top = -70.0
|
||||
offset_right = 108.0
|
||||
offset_bottom = 58.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ResumeBtn" type="Button" parent="PauseWin/PauseVbox"]
|
||||
layout_mode = 2
|
||||
text = "Resume"
|
||||
|
||||
[node name="ExitBtn" type="Button" parent="PauseWin/PauseVbox"]
|
||||
layout_mode = 2
|
||||
text = "Exit"
|
||||
|
||||
[connection signal="close_requested" from="PauseWin" to="." method="_on_pause_win_close_requested"]
|
||||
[connection signal="pressed" from="PauseWin/PauseVbox/ResumeBtn" to="." method="_on_resume_btn_pressed"]
|
||||
[connection signal="pressed" from="PauseWin/PauseVbox/ExitBtn" to="." method="_on_exit_btn_pressed"]
|
25
client/scenes/TitleScn.tscn
Normal file
25
client/scenes/TitleScn.tscn
Normal file
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://dih82g5487hy7"]
|
||||
|
||||
[ext_resource type="Script" path="res://source/TitleScn.gd" id="1"]
|
||||
|
||||
[node name="TitleScn" type="Node"]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="TitleVBox" type="VBoxContainer" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -73.5
|
||||
offset_top = -23.5
|
||||
offset_right = 73.5
|
||||
offset_bottom = 23.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="PlayBtn" type="Button" parent="TitleVBox"]
|
||||
layout_mode = 2
|
||||
text = "Play"
|
||||
|
||||
[connection signal="pressed" from="TitleVBox/PlayBtn" to="." method="_on_PlayBtn_pressed"]
|
Loading…
Add table
Add a link
Reference in a new issue