# export_ui_kit

Export 9-slice UI elements (buttons, frames, panels) with the files an engine draws them by,  
and return a download link to the zip.

A deterministic file operation: no model runs and no Creative Units are spent. Every element must  
carry 9-slice insets, recorded when it was generated with \`nine\_slice\` or made as a 9-slice copy;  
they are used as stored, so the corners never scale and the edges and center, made to tile when  
the insets were recorded, repeat without a seam in Unity, Godot and CSS; PixiJS and Phaser, read from  
the JSON, stretch them instead. The zip holds a README with the engine's import steps and each  
element's insets.

## Parameters

| Parameter             | Type              | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------- | ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| file\_idsrequired     | string (uuid)\[\] | —       | The UI elements (buttons, frames, panels, tabs), in the order the kit lists them: workspace file ids of images that carry 9-slice insets, from a generation run with \`nine\_slice\` or a 9-slice copy.                                                                                                                                                                                                              |
| enginerequired        | enum              | —       | UNITY: one atlas with the .meta that slices it into sprites, each with its 9-slice border. GODOT: one atlas with a StyleBoxTexture .tres per element, for themes and NinePatchRect. CSS: one image per element and a stylesheet with a border-image rule for each. JSON: one atlas with a TexturePacker JSON (hash) description carrying each frame's borders, for PixiJS and Phaser.One of: UNITY, GODOT, CSS, JSON |
| padding               | integer0–32       | 2       | Transparent pixels between elements on an atlas. Ignored for CSS, which keeps one image each.                                                                                                                                                                                                                                                                                                                        |
| name                  | string0–120 chars | —       | Name of the kit: the zip's folder and the files in it.                                                                                                                                                                                                                                                                                                                                                               |
| workspace\_idrequired | string (uuid)     | —       | The user's workspace id.                                                                                                                                                                                                                                                                                                                                                                                             |
