diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index f2a0c8c559..86161ea377 100755 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -346,7 +346,7 @@ namespace OpenRA } // TODO: Fix ra relying on this behavior, then make this sane - public static void Disconnect() + [Obsolete] public static void Disconnect() { DisconnectOnly(); var shellmap = ChooseShellmap(); diff --git a/OpenRA.Game/Server/MasterServerQuery.cs b/OpenRA.Game/Server/MasterServerQuery.cs index e84b68e50e..a2079127e3 100755 --- a/OpenRA.Game/Server/MasterServerQuery.cs +++ b/OpenRA.Game/Server/MasterServerQuery.cs @@ -20,7 +20,7 @@ using OpenRA.Widgets; namespace OpenRA.Server { // TODO: This can die once ra is sane - public static class MasterServerQuery + [Obsolete] public static class MasterServerQuery { public static event Action OnComplete = _ => { }; public static event Action OnVersion = _ => { }; diff --git a/OpenRA.Game/Widgets/LabelWidget.cs b/OpenRA.Game/Widgets/LabelWidget.cs index 68c05eec2e..86d7b80d6c 100644 --- a/OpenRA.Game/Widgets/LabelWidget.cs +++ b/OpenRA.Game/Widgets/LabelWidget.cs @@ -20,7 +20,7 @@ namespace OpenRA.Widgets public enum TextAlign { Left, Center, Right } public enum TextVAlign { Top, Middle, Bottom } public string Text = null; - public string Background = null; + [Obsolete] public string Background = null; public TextAlign Align = TextAlign.Left; public TextVAlign VAlign = TextVAlign.Middle; public Renderer.FontType Font = Renderer.FontType.Regular; @@ -30,7 +30,7 @@ namespace OpenRA.Widgets public Color ContrastColor = Color.Black; public bool WordWrap = false; public Func GetText; - public Func GetBackground; + [Obsolete] public Func GetBackground; public LabelWidget() : base() diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index 4863af705b..f8302d823b 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -352,8 +352,8 @@ namespace OpenRA.Widgets public class ContainerWidget : Widget { - public Func GetBackground; - public string Background = null; + [Obsolete] public Func GetBackground; + [Obsolete] public string Background = null; public ContainerWidget() : base() @@ -389,7 +389,7 @@ namespace OpenRA.Widgets public interface IWidgetDelegate { } // TODO: This can die once ra init is sane - public interface IWidgetDelegateEx : IWidgetDelegate + [Obsolete] public interface IWidgetDelegateEx : IWidgetDelegate { void Init(); }