Previous File TypePSPC FILENext File Type
Part Specification - Message File

HexTranslationMeaning
01 39 00 005700057-level_3_part.PSpc
01 00 00 063level 3
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
40 0064x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
41 0065x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
40 0064x-coordinate on the texture
20 0032y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
40 0064x-coordinate on the texture
20 0032y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
80 00128x-coordinate on the texture
20 0032y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
00 000x-coordinate on the texture
00 000y-coordinate on the texture
01 38 00 0056link to 00056-h_03.TXMP
AD DEdeadnot used

What's stored There are 9 rectangles stored in PSpc: 4 corners, 4 sides and one interior rectangle. Typically all 9 are used (to draw buttons for example) or only one is used (the top left corner, to draw checkboxes for example). There are cases where the top left corner and the interior rectangle are present which indicates that the code can choose what part to draw. The reason for using 9 rectangles is to allow drawing of buttons (and anything else that has a border) in various sizes without distorting the image. * the corners are never rescaled * horizontal sides can be stretched horizontally * vertical sides can be stretched vertically * the interior can be stretched both ways Of course that means that the sides and the interior must be "special" images that can be stretched without visible distortion. How it is stored Each 2 int16 fields makes a texture coordinate. The first 9 texture are coordinates are the top left coordinate of each of the 9 rectangles and the next 9 coordinates are the bottom right coordinate of each of the 9 rectangles. When both coordinates are 0 then the rectangle is not used. The order of the coordinates is top bottom and left to right.


Previous File TypeBack to File TypesNext File Type

Back to main page