From 24d9e292ddf406ae1a875b7a38e2d8410d5a165b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 16 May 2011 21:07:14 +1200 Subject: [PATCH] wire up ButtonWidget.VisualHeight to ChromeMetrics as an example --- OpenRA.Game/Widgets/ButtonWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/ButtonWidget.cs b/OpenRA.Game/Widgets/ButtonWidget.cs index 712d31e739..a41b1ef970 100644 --- a/OpenRA.Game/Widgets/ButtonWidget.cs +++ b/OpenRA.Game/Widgets/ButtonWidget.cs @@ -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 GetText; public ButtonWidget()