Can I make a Texture button with a Patch9Frame functionnality ?

linkoboylinkoboy Posts: 2Member
in GUI

Hi,

I would like to do several texture buttons with several size with a "9 patch frame" texture on it, the texturebutton class offers for example scale of the texture, but it stretch the texture and I would not, and I can't specify patch margin in it.

I would like a button like the green one (9 patched independent of the size with no stretch) in the image below.

Is there a way to do this ?
Regards,

linkoboy

Comments

  • greyspotgreyspot Posts: 2Member

    I believe 9 patch is being added to Godot 3.0 so you'll have to do it manually for the time being.

Sign In or Register to comment.