Fonts are now defined in mod.yaml

This commit is contained in:
Paul Chote
2011-05-16 17:48:31 +12:00
parent ab423fbe8c
commit e1c8658fdc
9 changed files with 74 additions and 37 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Cnc.Widgets
{
public Func<bool> IsDisabled = () => false;
public Action OnClick = () => {};
public Renderer.FontType Font = Renderer.FontType.Bold;
public string Font = "Bold";
public CncMenuButtonWidget()
: base()
@@ -276,7 +276,7 @@ namespace OpenRA.Mods.Cnc.Widgets
public class CncDropDownButtonWidget : DropDownButtonWidget
{
public Func<bool> IsDisabled = () => false;
public Renderer.FontType Font = Renderer.FontType.Bold;
public string Font = "Bold";
public CncDropDownButtonWidget() : base() { }
protected CncDropDownButtonWidget(CncDropDownButtonWidget other) : base(other)