jalovatt / Lokasenna_GUI

Lua scripts for Reaper
42 stars 11 forks source link

Is it possible to render a dot? #2

Closed Triazic closed 4 years ago

Triazic commented 4 years ago

I'm building a UI that requires a grid of dots. I can kinda achieve this by create labels with periods (".") as the caption, but that's a bit shit.

Is it possible to render just a primitive object like a circle, rectangle, line etc? These do not need to be interactable. I would handle everything using just mouse co-ordinates.

jalovatt commented 4 years ago

Note: I recommend using v3 of the GUI for any new projects. It tides up a lot of v2's messy code and makes things like event handlers much easier to manage.

As for your question, you would have to override the Label's draw method to draw a dot and then bump any text over.