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):
and changing it to:
And I apologize for the really old thread bump.
- //. Draggable Panel
- mChildPanel = NGUITools.AddChild<UIPanel>(mChild);
- mChildDraggablePanel = mChildPanel.gameObject.AddComponent<UIDraggablePanel>();
- mChildDraggablePanel.scrollWheelFactor = 1;
- mChildDraggablePanel.showScrollBars = UIDraggablePanel.ShowCondition.Always;
- //. Draggable Panel
- mChildPanel = NGUITools.AddChild<UIPanel>(mChild);
- mChildPanel.sortByDepth = true; // Depth issue fix - KovaaK
- mChildDraggablePanel = mChildPanel.gameObject.AddComponent<UIDraggablePanel>();
- mChildDraggablePanel.scrollWheelFactor = 1;
- mChildDraggablePanel.showScrollBars = UIDraggablePanel.ShowCondition.Always;
And I apologize for the really old thread bump.
