GMWolf
aka fel666
GM.9patch
marketplace link: https://marketplace.yoyogames.com/assets/5027/gm9patch
GM.9path helps you easilly define 9patch sprites, by simply adding borders in the sprite editor.
Define any number of stretchable / non-stretchable regions.
Defining your 9patch
Defining you 9patch is as easy as adding '_9p' at the end of the sprite name, and adding a border of stretchable and non stretchable region around the image.
Need a section in the middle to stay unstretched? No problem, GM.9patch supports any number of patched regions!
Easily fit text in your sprite by defining the content regions in the sprite editor!
This is compatible with the 9patch format used in android developemnt, making it ideal to reuse androif resources.
Draw you 9patch easily with
or add text with
Extended versions also available to change rotation, colour and alpha.
marketplace link: https://marketplace.yoyogames.com/assets/5027/gm9patch
GM.9path helps you easilly define 9patch sprites, by simply adding borders in the sprite editor.
Define any number of stretchable / non-stretchable regions.
Defining you 9patch is as easy as adding '_9p' at the end of the sprite name, and adding a border of stretchable and non stretchable region around the image.
Need a section in the middle to stay unstretched? No problem, GM.9patch supports any number of patched regions!
Easily fit text in your sprite by defining the content regions in the sprite editor!
This is compatible with the 9patch format used in android developemnt, making it ideal to reuse androif resources.
Draw you 9patch easily with
Code:
draw_9patch(sprite, subimage, x, y, width, height);
Code:
draw_9patch_text(sprite, subimage, x, y, width, height, text)
Last edited: