Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: jeffpk on March 12, 2014, 04:27:59 PM
-
Im building an in game script editor. Im using a UILabel in a scrollview and it works pretty well.
One thing though, the horizontal and vertical scroll bar controls pull in the opposite way you would expect in an editor. They pull the text rather then the viewport on the text.
Is there an easy way to reverse these controls?
-
NM, found it.
"Direction"
-
Hmm still not right.
It scrolls the text panel out of the scroll view rather then panning across the text panel :(
-
What do you mean? Scroll bars have the Direction field which lets you change which way they go. What do you mean by "scrolls the text panel out of the scroll view"?
-
I mean I have my label "homed" at the top left corner, which is correct for typing in text
BUT when I scroll the label in the scroll view using the scroll bars, the label moves down and to the right. What I want is for it to move up and to the left.
Does that make sense or should I draw a diagram?
-
Some pics may help. Scroll views have an Origin point that controls where all content originates. It's top-left by default for newly created scroll views, meaning the content's top-left corner aligns with the scroll view area's top-left corner.
-
See the attached image explanation:
-
Scroll view uses the bounds of all the children to determine the scrollable area. You can see these bounds as an orange outline. Scroll bars go from top-left corner of the orange box to the bottom-right.
-
Okay Ill check them out. Thanks.