[Behavior] scrolling (for text/sprite font plugin)

Post your completed addons to share with the community

Post » Mon Mar 20, 2017 4:16 pm

Hello. I'm trying this useful behavior, but I have some troubles... I hope you can help me out!
I attach my capx:

https://drive.google.com/open?id=0B_Dxi ... TNpZ2pjQU0

When I change the scroll page with the down arrow, some lines of the next page are skipped. This happens in "Text2", while "NumberText" works.
Strangely enough, if I disable the "set web font" (line 4 of the EvSheet), "Text2" works right. However this web font is also active for "NumberText", where it works fine.
Any suggestions?
Thanks!!! :)
B
5
Posts: 12
Reputation: 254

Post » Tue Mar 21, 2017 4:11 pm

...Same thing if the "line height" of Text is >0
A couple of lines of the next page are skipped.
Please help me!
B
5
Posts: 12
Reputation: 254

Post » Wed Mar 22, 2017 12:08 am

@Eln

The text width has changed after web font loaded and leads to text redraw, therefore the content of each line might be wrong in this case.
A possible solution is setting text after web font loaded, here is the modified capx.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Mar 22, 2017 8:43 am

@rexrainbow

Another useful plugin, thank you! I have also tried to put an hide text in a previus Layout and give to this Text the same web font. So the font loaded and in this way scrolling page was right. But I'm fell more safe with your plugin.

I think I've solved the "line height" problem...can you take a look to my capx? Evidentely the number "7" that you'll see is right for this case. If I change the line height or text size I have to change the number line.

https://drive.google.com/open?id=0B_DxiYdRG7pQazNZVlJmZ2k3WWM

Thanks for your help!
B
5
Posts: 12
Reputation: 254

Post » Fri Mar 24, 2017 2:16 am

@Eln

Please provides more simple test capx, I don't have enough time to deduce the logic.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Mon Jun 26, 2017 12:16 pm

@rexrainbow

Hello, @rexrainbow. Is it possible to make it work with Not official plugin Spritefont+? I suppose there's no way for me except using spritefont+ and scrolling behaviour.
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Wed Jun 28, 2017 1:22 am

@norman74

Is it your target spritefont+?
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jun 28, 2017 2:17 pm

@rexrainbow

Yes, this plugin
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Wed Jun 28, 2017 2:48 pm

@norman74

Try update this behavior, and run this test capx
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest