kestorr

Slice Engine.

Recommended Posts

I think he means something like a 9 patch, also called 9 slice, functionality.

I implemented something like this to create dialogs or buttons whose size can be easily changed in code instead of redrawing the whole thing. My approach was to draw these into BitmapData objects and save them into the cache to be used as textures later. I bet someone may have a better idea on how to do this, but this one works quite well.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.