cs-os/scenes/menu.tscn

75 lines
1.7 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://cjlgs86ey1u1o"]
[ext_resource type="Script" path="res://scripts/ConnectButton.gd" id="1_oqnod"]
[ext_resource type="Script" path="res://scenes/Nickname.gd" id="2_c3c3b"]
[node name="Menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ConnectMenu" type="Control" parent="."]
anchors_preset = 0
offset_left = 24.0
offset_top = 496.0
offset_right = 200.0
offset_bottom = 640.0
[node name="IP" type="TextEdit" parent="ConnectMenu"]
layout_mode = 2
offset_left = 1.0
offset_right = 170.0
offset_bottom = 39.0
text = "127.0.0.1"
placeholder_text = "IP Address"
[node name="Port" type="TextEdit" parent="ConnectMenu"]
layout_mode = 2
offset_top = 43.0
offset_right = 171.0
offset_bottom = 80.0
text = "2390"
placeholder_text = "Port"
[node name="Connect" type="Button" parent="ConnectMenu"]
layout_mode = 2
offset_top = 88.0
offset_right = 172.0
offset_bottom = 138.0
pivot_offset = Vector2(88, 24)
text = "Connect"
script = ExtResource("1_oqnod")
[node name="PlayerMenu" type="Control" parent="."]
anchors_preset = 0
offset_right = 256.0
offset_bottom = 128.0
[node name="Nickname" type="TextEdit" parent="PlayerMenu"]
layout_mode = 0
offset_left = 24.0
offset_top = 56.0
offset_right = 224.0
offset_bottom = 96.0
placeholder_text = "Unnamed"
[node name="Label" type="Label" parent="PlayerMenu"]
layout_mode = 0
offset_left = 48.0
offset_top = 24.0
offset_right = 205.0
offset_bottom = 47.0
text = "Set player nickname"
[node name="Set" type="Button" parent="PlayerMenu"]
layout_mode = 0
offset_left = 104.0
offset_top = 104.0
offset_right = 152.0
offset_bottom = 120.0
text = "Set"
script = ExtResource("2_c3c3b")