Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit db58d90

Browse files
spawn popup message / change default port
1 parent 56b8c58 commit db58d90

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Scenes/Prefabs/CreateLobby.tscn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ margin_left = 31.0
7878
margin_right = 106.0
7979
margin_bottom = 17.0
8080
rect_min_size = Vector2( 75, 0 )
81-
text = "7777"
81+
text = "25565"
8282
align = 1
8383
max_length = 65535
8484

@@ -97,7 +97,7 @@ margin_left = 41.0
9797
margin_right = 191.0
9898
margin_bottom = 17.0
9999
rect_min_size = Vector2( 150, 0 )
100-
text = "Test"
100+
text = "Another lobby"
101101
max_length = 15
102102

103103
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBox"]

Scripts/Msc/UIPopupCreateLobby.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public override void _Ready()
4848

4949
public void ClearFields()
5050
{
51-
InputTitle.Text = "Test";
52-
InputPort.Text = "7777";
51+
InputTitle.Text = "Another lobby";
52+
InputPort.Text = "25565";
5353
InputDescription.Text = "";
5454
InputMaxPlayerCount.Text = $"{MAX_PLAYER_COUNT}"; // byte values range from 0-255 (gives 256 ids) (should be noted dummy clients connect to ping servers and take up an id for a short duration)
5555
}
@@ -99,7 +99,7 @@ private async void _on_Create_pressed()
9999

100100
if (attempts == 0)
101101
{
102-
Logger.LogDebug($"The port '{port}' must be port forwarded first!");
102+
GameManager.SpawnPopupMessage($"The port '{port}' must be port forwarded first");
103103
NetworkManager.GameServer.Stop();
104104
dummyClient.Stop();
105105
return;

0 commit comments

Comments
 (0)