[Plugin] tag text

Post your completed addons to share with the community

Post » Sat Nov 28, 2015 9:22 am

@Animate

This capx shows how to add color and bold font.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Sat Nov 28, 2015 9:38 am

@DavidA13

It works fine while set position XY in WebGL = No.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Sat Nov 28, 2015 10:16 am

@Rexu

It works fine in my test capx. Could you provide your test capx?
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Thu Dec 03, 2015 11:55 pm

@rexrainbow
Here you go:
https://drive.google.com/file/d/0B7mtMT ... sp=sharing

Also the height is a bit too high.
Image
B
23
S
5
G
5
Posts: 143
Reputation: 3,762

Post » Fri Dec 04, 2015 8:07 am

Update: Fix bug of getting text width and text height


@Rexu
Thanks for your capx.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Fri Dec 04, 2015 12:28 pm

What's with the wait(0) twice? Why doesn't it work without waits.
Image
B
23
S
5
G
5
Posts: 143
Reputation: 3,762

Post » Sat Dec 05, 2015 2:24 am

@Rexu

Text would be rendered in a render stage of C2 engine, the render stage comes after logic stage. After rendering, text width and height could be got. So it needs 1 wait(0).
run event -> render -> run event ...

But I had no idea why it needs 2 wait(0) under "on start of layout".
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Sat Dec 05, 2015 10:27 am

There should be system condition "On finished rendering" or something like this then.
Image
B
23
S
5
G
5
Posts: 143
Reputation: 3,762

Post » Mon Dec 07, 2015 9:54 am

Update: Add property "Force render", set it to "Yes" could render text after text setting. So that text width and text height could be read without any action wait 0.


@Rexu
Ignore action: wait 0 if set "Force render" to "Yes". It had been tested by your sample capx.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Fri Dec 11, 2015 11:20 am

Do not support the letter-spacing?
B
37
S
11
G
1
Posts: 80
Reputation: 3,325

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: norman74 and 1 guest