Explorar o código

Fixed bug which would prevent label from showing on GUIListBoxField

Robert Campbell %!s(int64=7) %!d(string=hai) anos
pai
achega
98adda75c3
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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>