Author Topic: [BUG NGUI 3.7.8] UISprite type "Advanced"+"tiled" sides=corner geometry fails.  (Read 5121 times)

artfabrique

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 45
    • View Profile
Here is the screenshot:


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.
« Last Edit: January 27, 2015, 05:58:09 PM by artfabrique »

artfabrique

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 45
    • View Profile
Fixed it adding condition to corners logic in UIBasicSprite.cs:


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.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
This is already fixed in 3.7.9. All you had to do was update.

artfabrique

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 45
    • View Profile
Ah! i see.. )