Bläddra i källkod

Fixed bug which would prevent label from showing on GUIListBoxField

Robert Campbell 7 år sedan
förälder
incheckning
98adda75c3
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      Source/Scripting/MBansheeEditor/GUI/GUIListBoxField.cs

+ 1 - 2
Source/Scripting/MBansheeEditor/GUI/GUIListBoxField.cs

@@ -209,8 +209,7 @@ namespace BansheeEditor
         ///                       override any similar options set by style.</param>
         public GUIListBoxField(string[] elements, GUIContent title, int titleWidth = 100, params GUIOption[] options)
         {
-            GUIContent emptyContent = new GUIContent();
-            Internal_CreateInstance(this, ToLocalizedElements(elements), false, ref emptyContent, titleWidth, "", options, true);
+            Internal_CreateInstance(this, ToLocalizedElements(elements), false, ref title, titleWidth, "", options, true);
         }
 
         /// <summary>