Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KovaaK

Pages: [1]
1
NGUI 3 Support / Re: Long Popup List
« on: May 03, 2014, 12:08:37 PM »
Just as a heads-up to anyone else who arrives here via google search, the code attached in previous posts seems to have been written before some changes to how NGUI handles depth.  I'm far from an expert in this environment (only first heard of NGUI a week ago and dug into it a few days ago), but I fixed some issues related to the dropdown text not being drawn by going near line 500 in UIPopupListEx.cs (where these lines are):
  1.             //. Draggable Panel
  2.             mChildPanel = NGUITools.AddChild<UIPanel>(mChild);
  3.             mChildDraggablePanel = mChildPanel.gameObject.AddComponent<UIDraggablePanel>();
  4.             mChildDraggablePanel.scale = new Vector3(0, 1, 0);
  5.             mChildDraggablePanel.scrollWheelFactor = 1;
  6.             mChildDraggablePanel.showScrollBars = UIDraggablePanel.ShowCondition.Always;
  7.  
and changing it to:
  1.             //. Draggable Panel
  2.             mChildPanel = NGUITools.AddChild<UIPanel>(mChild);
  3.             mChildPanel.sortByDepth = true; // Depth issue fix - KovaaK
  4.             mChildDraggablePanel = mChildPanel.gameObject.AddComponent<UIDraggablePanel>();
  5.             mChildDraggablePanel.scale = new Vector3(0, 1, 0);
  6.             mChildDraggablePanel.scrollWheelFactor = 1;
  7.             mChildDraggablePanel.showScrollBars = UIDraggablePanel.ShowCondition.Always;
  8.  

And I apologize for the really old thread bump.

Pages: [1]