Huge amount of updates
This commit is contained in:
24
scenes_old/maps/base/entry_screen/entry_screen.gd
Normal file
24
scenes_old/maps/base/entry_screen/entry_screen.gd
Normal file
@ -0,0 +1,24 @@
|
||||
extends Control
|
||||
|
||||
|
||||
var map_contrller: MapController
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
map_contrller = find_parent("Map")
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_blue_pressed() -> void:
|
||||
GameServerAutoload.select_side.rpc_id(1, "blue")
|
||||
map_contrller._request_spawn.rpc_id(1)
|
||||
visible = false
|
||||
|
||||
|
||||
func _on_red_pressed() -> void:
|
||||
GameServerAutoload.select_side.rpc_id(1, "red")
|
||||
map_contrller._request_spawn.rpc_id(1)
|
||||
visible = false
|
41
scenes_old/maps/base/entry_screen/entry_screen.tscn
Normal file
41
scenes_old/maps/base/entry_screen/entry_screen.tscn
Normal file
@ -0,0 +1,41 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://guhvtj7wqb2y"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes_old/maps/base/entry_screen/entry_screen.gd" id="1_j36ma"]
|
||||
|
||||
[node name="EntryScreen" 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_j36ma")
|
||||
|
||||
[node name="Blue" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -8.0
|
||||
offset_top = -4.0
|
||||
offset_bottom = 4.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
text = "Blue"
|
||||
|
||||
[node name="Red" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -4.0
|
||||
offset_right = 8.0
|
||||
offset_bottom = 4.0
|
||||
grow_vertical = 2
|
||||
text = "Red
|
||||
"
|
||||
|
||||
[connection signal="pressed" from="Blue" to="." method="_on_blue_pressed"]
|
||||
[connection signal="pressed" from="Red" to="." method="_on_red_pressed"]
|
Reference in New Issue
Block a user