Add multi-resolution badge support.

This commit is contained in:
Paul Chote
2020-02-11 21:57:45 +00:00
committed by abcdefg30
parent de4a7cecf0
commit 84df61c672
6 changed files with 134 additions and 54 deletions

View File

@@ -11,7 +11,6 @@
using System.Collections.Generic;
using System.Linq;
using OpenRA.Graphics;
namespace OpenRA
{
@@ -59,12 +58,16 @@ namespace OpenRA
public class PlayerBadge
{
public readonly string Label;
public readonly Sprite Icon24;
public readonly string Icon;
public readonly string Icon2x;
public readonly string Icon3x;
public PlayerBadge(string label, Sprite icon24)
public PlayerBadge(string label, string icon, string icon2x, string icon3x)
{
Label = label;
Icon24 = icon24;
Icon = icon;
Icon2x = icon2x;
Icon3x = icon3x;
}
}
}