wire up ButtonWidget.VisualHeight to ChromeMetrics as an example

This commit is contained in:
Chris Forbes
2011-05-16 21:07:14 +12:00
committed by Paul Chote
parent b183366d54
commit 24d9e292dd

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Widgets
public string Text = "";
public bool Bold = false;
public bool Depressed = false;
public int VisualHeight = 1;
public int VisualHeight = ChromeMetrics.GetInt("ButtonDepth");
public Func<string> GetText;
public ButtonWidget()