Added Furnance and smelting
This commit is contained in:
@@ -11,12 +11,23 @@ public sealed class FactoryLobbyCodeView : MonoBehaviour
|
||||
GUILayout.BeginArea(new Rect(42, 42, 304, 76));
|
||||
if (session.IsHost)
|
||||
{
|
||||
GUILayout.Label("LOBBY CODE");
|
||||
GUILayout.Label(string.IsNullOrEmpty(session.JoinCode) ? "Generating..." : session.JoinCode);
|
||||
if (session.ConnectionMode == NetworkConnectionMode.Lan)
|
||||
{
|
||||
GUILayout.Label("LAN HOST");
|
||||
GUILayout.Label($"Same PC: 127.0.0.1:{session.LanPort}");
|
||||
}
|
||||
else
|
||||
{
|
||||
GUILayout.Label("LOBBY CODE");
|
||||
GUILayout.Label(string.IsNullOrEmpty(session.JoinCode) ? "Generating..." : session.JoinCode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GUILayout.Label("CONNECTED TO FACTORY");
|
||||
string connectionName = session.ConnectionMode == NetworkConnectionMode.Lan
|
||||
? "LAN"
|
||||
: "RELAY";
|
||||
GUILayout.Label($"CONNECTED VIA {connectionName}");
|
||||
}
|
||||
GUILayout.EndArea();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user