Improve the thresholds a bit

This commit is contained in:
Scott_NZ
2012-08-31 14:24:34 +12:00
committed by Chris Forbes
parent cc449f81f8
commit f146cedad5

View File

@@ -103,10 +103,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{ {
var size = m.Bounds.Width + "x" + m.Bounds.Height; var size = m.Bounds.Width + "x" + m.Bounds.Height;
var numberPlayableCells = m.Bounds.Width * m.Bounds.Height; var numberPlayableCells = m.Bounds.Width * m.Bounds.Height;
if (numberPlayableCells >= 120 * 120) size += " (Large)"; if (numberPlayableCells >= 120 * 120) size += " (Huge)";
else if (numberPlayableCells >= 90 * 90) size += " (Medium)"; else if (numberPlayableCells >= 90 * 90) size += " (Large)";
else if (numberPlayableCells >= 60 * 60) size += " (Small)"; else if (numberPlayableCells >= 60 * 60) size += " (Medium)";
else size += " (Tiny)"; else size += " (Small)";
sizeWidget.GetText = () => size; sizeWidget.GetText = () => size;
} }