Author Topic: UISlicedFilledSprite?  (Read 5327 times)

Hidden

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
UISlicedFilledSprite?
« on: May 16, 2013, 09:40:04 AM »
Has a sliced and filled sprite been tried? I'm trying to add it to the UISprite at the moment but wanted to check if its been done already?

Cheers

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlicedFilledSprite?
« Reply #1 on: May 16, 2013, 10:50:44 AM »
Create a regular sprite, and change its type.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UISlicedFilledSprite?
« Reply #2 on: May 16, 2013, 10:57:00 AM »
Both sliced and filled has not been done, as far as I remember. I seem to recall there was some talk about a filled/tiled combination at some point, but I can't remember if anything came of it.

sintua

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 63
    • View Profile
Re: UISlicedFilledSprite?
« Reply #3 on: June 24, 2013, 11:20:43 AM »
I ran into this same problem again today.
The problem with the progress bar is that the sliced sprite's minimum width keeps it from smoothly , since it jumps from 0 to the slicedsprites minimum width. Filled sprite can't be sliced or tiled, which limits the sort of assets you can use for this. The only way this works is to hardcode a sprite to the exact size you want, or use a slicedsprite that doesn't have any sliced sides in the direction you want the progress bar to flow.
I for one would love to see fillsprite become something other than a sprite type, to be applied to any sprite.