Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: mdeletrain on October 03, 2012, 05:01:17 AM
-
Hi,
I'm proposing a patch that add the ability to customize an UILabel's shadow offset.
It can be applied over v2.2.1.
-
Thanks, but you will already see this feature in 2.2.2 that will be released shortly.
Your patch only affects shadows, and not outline. It defaults to top-right, instead of bottom-right. And for some reason "mLastShadowPosition" is a Color.
-
Oh yeah, and I have no idea what "mTruncate" is.
-
Oops, it seems I've made something wired while exporting my patch...
Next one should be the good one ;) !
Edit : Oops again, it will be available in next release, so I won't bother exporting a good patch
-
Well, as for the weirdness, we use a local clone of NGUI over which we commit custom changes on a branch that we sync regularly with master.
As I find it quite awful not to use stock code, I started the process of exporting atomic patches of changes that have been made and that could be of any benefit to everyone. I could list them if you'd like to have a look.
Unfortunately, there's a bunch of code review to be performed before submitting patches, since not all (by far) our changes deserves to be kept.
Now, concerning this particular patch :
- the Color type is due to a merge error (I should I've check before sending :-[)
- the mTruncate field is here to allow the display of ellipsis in the case of truncated text. It appears in the patch because this feature has been committed before the shadow one.
-
2.2.2 is out with the modifiable distance feature among others.
-
Yeah, thanks !
-
I'm using the shadow offset, and it looks great in the Unity Editor but doesn't render properly when I export it for Flash. I'm currently using Unity 3.5.6. Does anyone know if it is supported in Unity 4?
-
What version of NGUI? 2.2.3 had some fixes regarding colors in flash.
-
This is with NGUI 2.2.3. The UILabels show up in the Flash build -- I'm just not seeing the shadows.