FreeFormLine

From Crumbled World Wiki
Revision as of 13:42, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:FreeFormLineExampleCode}} ==Inheritance== Panel ==Constructor== {| class="wikitable" !|function !|description |- |FreeFormLine() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |addLine(Vec2 p1, Vec2 p2, float lineWitdh, Vec3 color1, Vec3 color2, Vec3 color3) |Add line |- | |FreeFormButton:addLine(Vec2 p1,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FreeFormLineExampleCode

Inheritance

Panel

Constructor

function description
FreeFormLine()

Functions

return function description
addLine(Vec2 p1, Vec2 p2, float lineWitdh, Vec3 color1, Vec3 color2, Vec3 color3) Add line
addLine(Vec2 p1, Vec2 p2) Add line
addLineDesign(float offset1, float offset2, Vec3 volor1, Vec3 color2) Add line
removeLine(Vec2 p1, Vec2 p2) remove a line if similar is found
rebuildMesh() Rebuild the mesh. Note this is only needed when panel has been built else this is done during panel resize events