draw_nine_patch #6746
Shadowblitz16
started this conversation in
2D
draw_nine_patch
#6746
Replies: 1 comment 5 replies
-
This already exists as This could probably be exposed as a high-level function in CanvasItem, like In 3.x, use VisualServer instead of RenderingServer. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the project you are working on
I am trying to extend the control node into a widget class that suits my needs better
However I need to be able to draw a nine patch
Describe the problem or limitation you are having in your project
I don't exactly know how to draw a nine patch and a draw function/method would be nice to have
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It allows people to quickly draw nine patches from any canvas node
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Idk what the api will looks like but perferablity it would take a rectangle and patch margin and a x and y stretch mode
If this enhancement will not be used often, can it be worked around with a few lines of script?
It would be used in cases built in nodes do not cut it and we need to draw a nine patch
Is there a reason why this should be core and not an add-on in the asset library?
drawing functions are already part of the engine this would just be a addition
Beta Was this translation helpful? Give feedback.
All reactions