Mark some bits obsolete
This commit is contained in:
@@ -346,7 +346,7 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Fix ra relying on this behavior, then make this sane
|
// TODO: Fix ra relying on this behavior, then make this sane
|
||||||
public static void Disconnect()
|
[Obsolete] public static void Disconnect()
|
||||||
{
|
{
|
||||||
DisconnectOnly();
|
DisconnectOnly();
|
||||||
var shellmap = ChooseShellmap();
|
var shellmap = ChooseShellmap();
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ using OpenRA.Widgets;
|
|||||||
namespace OpenRA.Server
|
namespace OpenRA.Server
|
||||||
{
|
{
|
||||||
// TODO: This can die once ra is sane
|
// TODO: This can die once ra is sane
|
||||||
public static class MasterServerQuery
|
[Obsolete] public static class MasterServerQuery
|
||||||
{
|
{
|
||||||
public static event Action<GameServer[]> OnComplete = _ => { };
|
public static event Action<GameServer[]> OnComplete = _ => { };
|
||||||
public static event Action<string> OnVersion = _ => { };
|
public static event Action<string> OnVersion = _ => { };
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace OpenRA.Widgets
|
|||||||
public enum TextAlign { Left, Center, Right }
|
public enum TextAlign { Left, Center, Right }
|
||||||
public enum TextVAlign { Top, Middle, Bottom }
|
public enum TextVAlign { Top, Middle, Bottom }
|
||||||
public string Text = null;
|
public string Text = null;
|
||||||
public string Background = null;
|
[Obsolete] public string Background = null;
|
||||||
public TextAlign Align = TextAlign.Left;
|
public TextAlign Align = TextAlign.Left;
|
||||||
public TextVAlign VAlign = TextVAlign.Middle;
|
public TextVAlign VAlign = TextVAlign.Middle;
|
||||||
public Renderer.FontType Font = Renderer.FontType.Regular;
|
public Renderer.FontType Font = Renderer.FontType.Regular;
|
||||||
@@ -30,7 +30,7 @@ namespace OpenRA.Widgets
|
|||||||
public Color ContrastColor = Color.Black;
|
public Color ContrastColor = Color.Black;
|
||||||
public bool WordWrap = false;
|
public bool WordWrap = false;
|
||||||
public Func<string> GetText;
|
public Func<string> GetText;
|
||||||
public Func<string> GetBackground;
|
[Obsolete] public Func<string> GetBackground;
|
||||||
|
|
||||||
public LabelWidget()
|
public LabelWidget()
|
||||||
: base()
|
: base()
|
||||||
|
|||||||
@@ -352,8 +352,8 @@ namespace OpenRA.Widgets
|
|||||||
|
|
||||||
public class ContainerWidget : Widget
|
public class ContainerWidget : Widget
|
||||||
{
|
{
|
||||||
public Func<string> GetBackground;
|
[Obsolete] public Func<string> GetBackground;
|
||||||
public string Background = null;
|
[Obsolete] public string Background = null;
|
||||||
|
|
||||||
public ContainerWidget()
|
public ContainerWidget()
|
||||||
: base()
|
: base()
|
||||||
@@ -389,7 +389,7 @@ namespace OpenRA.Widgets
|
|||||||
public interface IWidgetDelegate { }
|
public interface IWidgetDelegate { }
|
||||||
|
|
||||||
// TODO: This can die once ra init is sane
|
// TODO: This can die once ra init is sane
|
||||||
public interface IWidgetDelegateEx : IWidgetDelegate
|
[Obsolete] public interface IWidgetDelegateEx : IWidgetDelegate
|
||||||
{
|
{
|
||||||
void Init();
|
void Init();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user