Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AeornFlippout on August 27, 2014, 05:31:51 PM

Title: Emoticon aspect ratio
Post by: AeornFlippout on August 27, 2014, 05:31:51 PM
Our emoticons seem to be only showing up in our font with a square shape. Is this by design - or should we expect that the shape it would take in the label would match the aspect ratio of the source image?
Title: Re: Emoticon aspect ratio
Post by: ArenMook on August 28, 2014, 08:51:51 PM
You can adjust this by adjusting the padding of the sprite in question. Select the sprite in the atlas and tweak them to see the result right away.
Title: Re: Emoticon aspect ratio
Post by: AeornFlippout on August 29, 2014, 09:32:22 AM
Hmm, I'm not seeing that changing the padding affects the shape of the Emoticons, only the offset within the label and the overall size.
I'm also not seeing it update until I restart the game.

Is this a feature that only works with dynamic fonts or something?
Title: Re: Emoticon aspect ratio
Post by: ArenMook on August 30, 2014, 09:14:18 AM
It won't change the shape. The shape is whatever the sprite is. If you choose a rectangular shape, it will also be rectangular. Padding lets you control the spacing around the emoticon, which is what I meant.

The changes to the emoticon sprite should update the emoticons within text right away -- at least they do on my end (and I just double-checked to confirm).
Title: Re: Emoticon aspect ratio
Post by: AeornFlippout on August 30, 2014, 10:58:08 AM
Ahh - indeed you're right. It turns out I had a rogue transform scale on one of the objects in the hierarchy.
Sorry for the false alarm :(