diff --git a/OpenRA.Mods.Common/Widgets/Logic/ServerCreationLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ServerCreationLogic.cs index eb17bedb15..b87acdc2d6 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ServerCreationLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ServerCreationLogic.cs @@ -90,6 +90,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic checkboxUPnP.OnClick = () => allowPortForward ^= true; checkboxUPnP.IsDisabled = () => !Game.Settings.Server.AllowPortForward; + var labelUPnP = panel.GetOrNull("UPNP_NOTICE"); + if (labelUPnP != null) + labelUPnP.IsVisible = () => !Game.Settings.Server.DiscoverNatDevices; + var passwordField = panel.GetOrNull("PASSWORD"); if (passwordField != null) passwordField.Text = Game.Settings.Server.Password; diff --git a/mods/cnc/chrome/multiplayer-createserver.yaml b/mods/cnc/chrome/multiplayer-createserver.yaml index a247ec7155..c67bbf7d47 100644 --- a/mods/cnc/chrome/multiplayer-createserver.yaml +++ b/mods/cnc/chrome/multiplayer-createserver.yaml @@ -92,6 +92,15 @@ Container@MULTIPLAYER_CREATESERVER_PANEL: Height: 20 Font: Regular Text: Automatic port forwarding + Label@UPNP_NOTICE: + X: 130 + Y: 180 + Width: 200 + Height: 25 + Font: Tiny + Align: Left + WordWrap: True + Text: Requires Network Discovery (UPnP). Enable in Settings - Advanced. Container@SIDEBAR: X: PARENT_RIGHT-WIDTH Y: 30 diff --git a/mods/ra/chrome/multiplayer-createserver.yaml b/mods/ra/chrome/multiplayer-createserver.yaml index 838e762ec1..5e72929059 100644 --- a/mods/ra/chrome/multiplayer-createserver.yaml +++ b/mods/ra/chrome/multiplayer-createserver.yaml @@ -92,6 +92,15 @@ Container@MULTIPLAYER_CREATESERVER_PANEL: Height: 20 Font: Regular Text: Automatic port forwarding + Label@UPNP_NOTICE: + X: 130 + Y: 180 + Width: 200 + Height: 25 + Font: Tiny + Align: Left + WordWrap: True + Text: Requires Network Discovery (UPnP). Enable in Settings - Advanced. Container@SIDEBAR: X: PARENT_RIGHT-WIDTH Y: 30