Imgcut files: Difference between revisions
Appearance
Fieryhenry (talk | contribs) No edit summary |
Fieryhenry (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
| File name = An imgcut file | | File name = An imgcut file | ||
| Pack name = [[ImageDataLocal]] or [[ImageDataServer]] | | Pack name = [[ImageDataLocal]] or [[ImageDataServer]] | ||
| Short description = stores a set of regions / rectangles on a spritesheet for a [[ | | Short description = stores a set of regions / rectangles on a spritesheet for a [[texture]]. | ||
| Structure = The file starts with the text <code>[imgcut]</code> as a way to identify that this is an imgcut file. | | Structure = The file starts with the text <code>[imgcut]</code> as a way to identify that this is an imgcut file, although it is unused by the game. | ||
On the next line it specifies the version | On the next line it specifies the version of the imgcut format used, which is always <code>0</code> and is also unused by the game. | ||
The next line is the filename of the spritesheet, | The next line is the filename of the spritesheet, which again is also unused. | ||
On the next line it specifies the total number of regions in this texture. | On the next line it specifies the total number of regions in this texture. | ||
Latest revision as of 08:42, 8 September 2025
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, although it is unused by the game.
On the next line it specifies the version of the imgcut format used, which is always 0 and is also unused by the game.
The next line is the filename of the spritesheet, which again is also 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