DoLocalize_UILabel called twice ... sometimes

More
10 years 1 month ago #880 by cedtat
Hello,

I need to implement a functionnality that will zoom size of fonts in my app.
I have made a quick modification in I2 in DoLocalize_UILabel to update font size when localisation is done (I use NGUI).

I could have used the callback but I was lazy and didn't want to add a callback for all the labels in my app :)

I have noticed that some labels were not properly resized and when logging information, I found out that the method mention above was called twice. I was wondering if it was an issue or if it supposed to work this way ?!

Thanks,
Cédric

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #881 by Frank
Hi,

I found out that the method mention above was called twice


The OnLocalize function was indeed been called a couple times at startup.

Version 2.6.0 b1 fixed a few of those, but I just verified another case that made the OnLocalize been called twice.
I added a new fix for that so that it never gets called twice :-)

Those changes are in version 2.6.0 b2 which can be downloaded from the beta community folder.

I could have used the callback but I was lazy and didn't want to add a callback for all the labels in my app :)


You will be pleased to know that Global Callbacks is one of the features I have for 2.7.0. I already did part of the integration, but I have to change the UI a bit to allow setting that in the editor.

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
Last edit: 10 years 1 month ago by Frank.

Please Log in or Create an account to join the conversation.

Time to create page: 0.156 seconds
Template by JoomlaShine