You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
I'm trying to implement a kind of GUI for my project, but sometimes I have to go into a graphics editor to create textures, a few simple primitives, which slows down the GUI design.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
I propose a new base node type, like ColorPolygon, which will be responsible for rendering simple primitives, with it we could render primitives like circle, quadrilateral, lines or a custom object.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The new node will have methods for displaying polygons in GUI space, this is a kind of analogue of Polygon2D, only for GUI, also we can add several other nodes that will inherit from the new node, such as ColorCircle, ColorRect, ColorLine, etc.
Most likely, this improvement will break compatibility, since the new ColorRect node will be inherited from the new node, with the help of which the rectangle will be drawn.
We can also get a new option for ColorRect, such as fill, and also its absence, as well as other new primitives.
I might look into this once I get the hang of the Control codebase within the engine.
If this enhancement will not be used often, can it be worked around with a few lines of script?
As far as I know no, there are no functions in Control methods for rendering custom primitives as is in 2D, such as Polygon2D, or functions for simple drawing in _draw().
Is there a reason why this should be core and not an add-on in the asset library?
This is a useful feature that already has an analogue in 2D, but is missing in the GUI.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
Level editor for game
Describe the problem or limitation you are having in your project
I'm trying to implement a kind of GUI for my project, but sometimes I have to go into a graphics editor to create textures, a few simple primitives, which slows down the GUI design.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
I propose a new base node type, like
ColorPolygon
, which will be responsible for rendering simple primitives, with it we could render primitives like circle, quadrilateral, lines or a custom object.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
The new node will have methods for displaying polygons in GUI space, this is a kind of analogue of
Polygon2D
, only for GUI, also we can add several other nodes that will inherit from the new node, such asColorCircle
,ColorRect
,ColorLine
, etc.Most likely, this improvement will break compatibility, since the new
ColorRect
node will be inherited from the new node, with the help of which the rectangle will be drawn.We can also get a new option for
ColorRect
, such as fill, and also its absence, as well as other new primitives.I might look into this once I get the hang of the Control codebase within the engine.
If this enhancement will not be used often, can it be worked around with a few lines of script?
As far as I know no, there are no functions in
Control
methods for rendering custom primitives as is in 2D, such asPolygon2D
, or functions for simple drawing in_draw()
.Is there a reason why this should be core and not an add-on in the asset library?
This is a useful feature that already has an analogue in 2D, but is missing in the GUI.
The text was updated successfully, but these errors were encountered: