Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: primus88 on March 15, 2014, 07:09:33 PM
-
Hello.
I implemented a UIDraggablePanel in my GUI, but it does not behave correctly.
(http://cdn.makeagif.com/media/3-15-2014/0pufYW.gif) (http://www.makeagif.com/0pufYW)
1. First thing to notice in the attached gif, is that the first label is not at the top of the panel, but at the middle.
2. then when i scroll, if I move the mouse pointer over the bottom label, the label just springs up to the top.
3. finally, when attempting again to drag, the window of the draggable panel shows all the labels in the correct position and they behave as intended.
How can I fix these issues and/or what should I check to see if I did wrong?
Thank you in advance,
Primus
-
Is the slider inside your scroll view? It needs to be outside.
-
NO it isn't.
Also it is a Scroll Bar (does this matter?)
They are organised like this:
(http://i57.tinypic.com/2r2my9s.jpg)
-
What's "DefaultTab"? When you only see one label there, where are all the others located? If you select them in scene view, what do you see? Do you see the box outlines? Do they exist at edit time or do you add them at run-time? If you add them at run-time, how are you doing it?
-
Default tab, is just another element from the grid.
The labels exist in editor, but they are activated / deactivated (NGUITools.SetActive) based on the saved information that the respective journal entry was unlocked or not.
So when the game starts, there will be only the Default Tab, as it is the basic journal entry.
When I select each, I see about the same thing as in the picture I gave, only that it's highlighted. This is in edit mode, as in play mode i don't see anything when it is disabled.
I made a detailed video on how it behaves. On the left is in the editor and on the right it's in the actual play mode.
https://www.youtube.com/watch?v=WSB3mGAYON4&feature=youtu.be
-
I am in SF right now and hotel wifi down here is notoriously slow, so youtube videos are a no-go until I return on Thursday night.
-
I understand, but from the info until now, there is nothing to do next?
-
Without looking at the project and being away from my code I wouldn't be able to tell you what's happening on your end. You can try posting your scene for others to look at, just please don't include NGUI's source code.