From 65ce0b579822ef790efd6bbb8cd3689c84d94366 Mon Sep 17 00:00:00 2001 From: Vespura <31419184+TomGrobbe@users.noreply.github.com> Date: Fri, 6 Apr 2018 18:40:30 +0200 Subject: [PATCH] Improved "spacer items" centering --- vMenu/CommonFunctions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vMenu/CommonFunctions.cs b/vMenu/CommonFunctions.cs index 1f20df85..4159a2d7 100644 --- a/vMenu/CommonFunctions.cs +++ b/vMenu/CommonFunctions.cs @@ -1823,9 +1823,9 @@ public UIMenuItem GetSpacerMenuItem(string title, string description = null) { string output = "~h~"; int length = title.Length; - int totalSize = 90 - int.Parse((length * 3).ToString()); + int totalSize = 80 - length; - for (var i = 0; i < totalSize / 2; i++) + for (var i = 0; i < totalSize / 2 - (length / 2); i++) { output += " "; }