Imgcut files
Appearance
An imgcut file is a file inside of ImageDataLocal or ImageDataServer which stores a set of regions / rectangles on a spritesheet for a texture.
Structure
The file starts with the text [imgcut] as a way to identify that this is an imgcut file.
On the next line it specifies the version? of the imgcut format used, which is always 0
The next line is the filename of the spritesheet, however this seems to be unused.
On the next line it specifies the total number of regions in this texture.
Each subsequent line defines the data for the region. Each column in the region has the following structure:
- X Position
- Y Position
- Width
- Height
- Comment (optional)
Examples
[imgcut]
0
super_cool_img_en.png
4
1,1,500,120,shadow
502,1,500,120,fire
1,121,300,20
123,142,50,50,bullet