Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: 3DMagicVR on September 24, 2013, 04:47:20 PM

Title: A small detail...
Post by: 3DMagicVR on September 24, 2013, 04:47:20 PM
Hello and good day, I only have this little comment:

when you use the UILabel and work with a large text, the only way to move up or down the text content it's using the arrows on the keyboard, and some times it's very annoying to have to search the line with this method, why don't you add the Editor.BeginScroollView() where the text content are displayed?.

This will be more helpful to search a line text in this content view to modify the line, word or even change color.

What do you think of it?.
Title: Re: A small detail...
Post by: ArenMook on September 24, 2013, 06:44:46 PM
I am pretty sure it's not possible to do this in Unity. While I can put the edit field in a scroll view, you won't be able to scroll the text. It's hard to explain, but all I can tell you is -- try it yourself, you will see what I mean.
Title: Re: A small detail...
Post by: 3DMagicVR on September 26, 2013, 03:04:04 PM
I'm talking about this http://youtu.be/ky4ju6Vecdk (http://youtu.be/ky4ju6Vecdk).
Title: Re: A small detail...
Post by: ArenMook on September 26, 2013, 05:02:30 PM
Yeah, I understand. As far as I know the only way to do that is to have a fixed height text box, and a fixed size scroll view, which kind of defeats the purpose. If there is a way to create a variable height text box that resizes as you type, I don't know of it. If you do, let me know and I'll look into it.
Title: Re: A small detail...
Post by: 3DMagicVR on September 27, 2013, 03:27:29 PM
You mean something like this: http://youtu.be/bjSxYLs16v0
Title: Re: A small detail...
Post by: ArenMook on September 27, 2013, 06:16:15 PM
Yup, and in your video the cursor disappears as you exceed the height of the box until you actually scroll down. That's arguably worse.
Title: Re: A small detail...
Post by: 3DMagicVR on September 29, 2013, 12:24:46 PM
Ok, but it's just the beginning, as you can see it's possible to make the text area to scroll the only thing lefts it's to make it auto scroll on every new text line.

Can you do that?.
Title: Re: A small detail...
Post by: ArenMook on September 29, 2013, 07:38:16 PM
If I find an ideal solution, I will.
Title: Re: A small detail...
Post by: 3DMagicVR on September 30, 2013, 08:45:21 AM
I almost got it, but still get some weird line jumps, when that's fixed I will upload a video showing the result. :)
Title: Re: A small detail...
Post by: 3DMagicVR on October 01, 2013, 04:17:10 PM
Finally, the autoscroll it's working, you can see it here (http://youtu.be/6FSNzwZW1Hk).
Title: Re: A small detail...
Post by: 3DMagicVR on October 04, 2013, 08:55:34 AM
So, now that you see it's possible to make it, how about including it in future updates?.
Title: Re: A small detail...
Post by: ArenMook on October 04, 2013, 09:21:40 PM
If you provide me with a patch, I'll certainly have a look at it.
Title: Re: A small detail...
Post by: 3DMagicVR on October 05, 2013, 12:38:05 PM
Sure, how much you will pay for that patch?, because, my boss have to buy your package, and when I notice this little detail and hoping that little detail was implemented over the next updates and nothing, I have to figured out how to implement that, even you said that can't be done, in first comment and after you give a very simple answer, far away that it really is, I do it and it's working, took me some time, you see it the difference between samples, so I ask again, how much for this little detail?.
Title: Re: A small detail...
Post by: OnlineCop on October 05, 2013, 07:27:25 PM
I wouldn't be willing to pay anything for it. Seriously: the amount that it contributes to NGUI is minimal. It's eye candy that brings no functionality (other than ease of scrolling through a few lines of text). I don't use that feature of UILabel, since I always access its .text field and change the text dynamically.

I personally enjoy sharing my fixes and submitting bug reports so everyone else using NGUI can benefit.
Title: Re: A small detail...
Post by: ArenMook on October 05, 2013, 10:47:38 PM
Pay? You jest. You can keep it. You needed it, and you added it for yourself, so enjoy it yourself.

You're going to have to implement something far more useful than a scroll bar on a text box for anyone to be willing to fork over their money to you. Consider the feature set NGUI offers for $95. Now think about what you added in comparison.
Title: Re: A small detail...
Post by: 3DMagicVR on October 07, 2013, 09:02:00 AM
That's a good comment, I like you, gladly share the minimal knowledge when the occasion warrants it, but in this case, the implementation it's so simple that anyone can do it, as you said before "OnlineCop", and for "ArenMook" all that was a joke.

I'm not a programmer, but I like to learn more that I actually know, if you read my signature you clearly see it, so for the patch you asked before, only need three more variables and a method with seventeen lines of code, it's very simple. ;), when I made this, I think on a way to change the content manually, if you "OnlineCop" do it dynamically, good for you, but I don't think that all the people do it like you do, because we all are not do it in the same way, always will be a person who do it differently, and that's the thing a tool, add-on or plugins developer must to get in mind, even if going to sell it or give it for free.