Page MenuHomeFeedback Tracker

[Feature Request] add more params than color to drawLine/drawLine3D/drawPolygon commands
Feedback, NormalPublic

Description

I really hope I'm in the right area here.

The drawLine and drawPolygon commands were very nice additions, although it would be very nice to have some parameters available to customize the ui-item.

For Lines:

  • thickness,
  • style (line, dotted,cut-lines etc) or texture

For Polygons:

  • Border Thickness
  • Texture / Fill (as currently available in drawRectangle command).

Would be nice in sense of uniformity of the draw-command-family and also help to make great looking UI's easily.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Ingame UI
Steps To Reproduce

None

Event Timeline

A drawTriangle command will be available from Monday on DEV https://community.bistudio.com/wiki/drawTriangle which allows to construct a filled polygon from filled triangles

Wow that is agreat news! I'll have to figure some things out but that will do, thank you! Looking forward to more design options!

Plato added a subscriber: Plato.Jan 14 2021, 7:56 PM

It would also be nice if drawPolygon could be extended to drawPolygon3D for drawing in the world as well. Something similar to how eden editor draws a solid color base for selected objects.

dedmen added a subscriber: dedmen.Jun 21 2024, 2:08 PM

drawLine3D can easily get width. Style no

dedmen changed the task status from New to Feedback.Jul 5 2024, 10:55 AM

Width/thickness is done.
Style we won't do.

Polygon border thickness, drawPolygon just draws multiple lines. So you can use drawLine with thickness.

Polygons texture fill:
https://community.bistudio.com/wiki/drawPolygon

Unlike with other draw* commands and due to complexity, this command does not support filling of the polygon with color. Use drawTriangle command to construct and fill polygon shape as a workaround.

It doesn't have UV coordinates for texture fill though.