Skip to content
Discord

Get help, share scripts, and follow updates with the PowerKuy Community.

Join the server

Draw Lists ​

Growlauncher exposes two ready to use draw lists: ImGui.BG for the background layer and ImGui.FG for the foreground layer. Both are Lua tables whose methods forward the layer index as the first native argument, so call them with a colon.

lua
function ondraw()
    local layer = ImGui.FG
    -- call layer methods here
end

Methods ​

MethodDescription
AddLineDraw a line
AddRectDraw a rectangle outline
AddRectFilledDraw a filled rectangle
AddRectFilledMultiColorDraw a filled rectangle with gradients
AddCircleDraw a circle outline
AddCircleFilledDraw a filled circle
AddNgonDraw a regular polygon outline
AddNgonFilledDraw a filled regular polygon
AddTextDraw text

Notes ​

  • The Lua wrapper ignores return values, so the methods return nothing.
  • Argument order follows the ImGui draw list API. Parameter names and types for this build are not verified yet.
  • ImGui.GetBackgroundDrawList() and ImGui.GetForegroundDrawList() are described on the Misc page, but they are not part of the binding table in Growlauncher 7.0.38. Use ImGui.BG and ImGui.FG instead.
  • NewDrawList(index) and ImVec2/ImVec4 are defined by the embedded Lua helper that creates both lists.

Join our community for support and updates!