- Get the widget https://github.com/wagonrepairer/spring ... vgdraw.lua
- Put SVG images in luaui/images/svgdraw (Here's an example file - unzip it).
- Convert objects to paths. (Using Inkscape, Path > Object to Path )
- NO longer needed -
Convert curves to line segments. (Using Inkscape, Extensions > Modify Paths > Flatten Beziers) - In the game, type A list of your image names will show in the console, numbered from 1 to 9.
Code: Select all
/luaui svgdraw
- Position the mouse cursor and hit the key on your number pad corresponding to the image you wish to draw.
- Fun.
Provided as a service I will describe how to convert a raster image (bmp, png, etc) to SVG using Inkscape. Once you do so you can proceed to the steps above.
- Drag and drop your image into a new SVG file.
- Path > Trace Bitmap
- Uncheck Smooth, check Remove background.
- Under Options, uncheck smooth corners.
- Click on Update.
- Delete the original raster image.
Works without chili util header now.
Works directly on units now.
Using bezier flattening by hokomoko.