Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jfperusse_indie

Pages: [1]
NGUI 3 Documentation / Re: UIPopupList
« on: May 14, 2015, 12:18:16 PM »
Hi ArenMook,

When using the UIPopupList, we end up with buttons that are way too large (currently using SciFi Font - Normal, Font Size 80).

The problem seems to be in UIPopupList.cs, "public void Show ()", here:

  1. x = Mathf.Max(x, (max.x - min.x) * dynScale - (bgPadding.x + padding.x) * 2f);

It seems like dynScale should not be used here since min/max already used the proper rendered size of the text.

Removing dynScale makes our button fit the text perfectly.

Could you confirm that this is the proper fix? We are using the latest version of NGUI (3.8.2).


Pages: [1]