Well, did some work on those yesterday since we need to edit them if we actually want to add new factions (not only replace them).
In case you don't know a thing about them, the .sd files can be found in the data/ui folder and describe the images associated with ui elements (i.e. they describe which part of one of the stratpages/battlepages a ui element can be found in).
Note: This thread is meant first of all as a note to myself, but I thought somebody might be interested in it
Well, a short file definiton:
Code:
bytes content
0-3 long: 6, probably a version id or something
4-7 long: the number of pages in this file
8-11 long: the number of entries for ui elements
n times: files
0-3 long: string length for the file name
variable filename
0 0x00
1-4 long: width of the page
5-8 long: height of the page
9-12 long: length of the following bitmap
width*height/8 monochrome bitmap to signify cursor state (have a bitwise 1 here, you get a highlight)
m times: ui elements
0-3 long: string length
variable ui tag
0-1 short: file id of the page they are specified in
2-3 short: x position of the top left corner in the page
4-5 short: x position of the bottom right corner
6-7 short: y position (top left)
8-9 short: y position (top right)
10-15 0x010000000000
Bookmarks