FreeFormLine: Difference between revisions
From Crumbled World Wiki
(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,...") |
(No difference)
|
Latest revision as of 13:42, 5 July 2025
Inheritance
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 |