Author Topic: Scaling 3-sliced sprite  (Read 1507 times)

S3XY

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Scaling 3-sliced sprite
« on: August 11, 2016, 04:01:44 AM »
I wonder if theres a way to scale the height of a 3 sliced sprite without losing the proportion of the borders?



Scaling witdh works perfectly. I don't want to touch the transform scale.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling 3-sliced sprite
« Reply #1 on: August 13, 2016, 03:48:04 PM »
Not unless you write a custom widget for that. Sliced sprites keep the dimensions of the corners as-is, and adjust 1 of the 2 dimensions of the sides. Only the center resizes freely.

S3XY

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Scaling 3-sliced sprite
« Reply #2 on: August 19, 2016, 06:27:32 AM »
Thx, i made a solution where i took one square and two circle sprites and arrange/scale them automatically.