Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: artfabrique on January 27, 2015, 05:31:21 PM

Title: [BUG NGUI 3.7.8] UISprite type "Advanced"+"tiled" sides=corner geometry fails.
Post by: artfabrique on January 27, 2015, 05:31:21 PM
Here is the screenshot:
(http://service.crazypanda.ru/v/clip2net/E/U/LVP5Xt2QRY.png)

I need sides & center to be tiled, but corners disappear because of wrong geometry.
I've found there was a "fix"
"- FIX: Sliced sprite corners will no longer be drawn if sides were chosen to be hidden."
Somehow corners diappear when sides set to tiled.
Also i thiknk there shouldb a separate option for the corners.
Title: Re: [BUG NGUI 3.7.8] UISprite type "Advanced"+"tiled" sides=corner geometry fails.
Post by: artfabrique on January 27, 2015, 06:10:45 PM
Fixed it adding condition to corners logic in UIBasicSprite.cs:
(http://service.crazypanda.ru/v/clip2net/p/g/xECV9HFpjS.png)

line 946:
  1. (y == 0 && bottomType == AdvancedType.Tiled) || (y == 2 && topType == AdvancedType.Tiled) ||
  2. (x == 0 && leftType == AdvancedType.Tiled) || (x == 2 && rightType == AdvancedType.Tiled))
  3.  
Title: Re: [BUG NGUI 3.7.8] UISprite type "Advanced"+"tiled" sides=corner geometry fails.
Post by: ArenMook on January 28, 2015, 02:13:26 AM
This is already fixed in 3.7.9. All you had to do was update.
Title: Re: [BUG NGUI 3.7.8] UISprite type "Advanced"+"tiled" sides=corner geometry fails.
Post by: artfabrique on January 28, 2015, 03:14:52 AM
Ah! i see.. )