Difference between revisions of "Riven PLST resources"
From A look inside The Link @ wiki
(import) |
(explained the record structure) |
||
| Line 1: | Line 1: | ||
<noinclude>{{Riven}}</noinclude> | <noinclude>{{Riven}}</noinclude> | ||
| − | PLSTs are bitmap lists: they tell which bitmap to draw and where to draw it. The record structure is: | + | PLSTs are bitmap lists: they tell which bitmap to draw and where to draw it within the card. |
| + | |||
| + | Each PLST resource is a list of records; it starts with an unsigned short record count, followed by that many records. The record structure is: | ||
{| class="structure" | {| class="structure" | ||
Revision as of 19:29, 8 February 2008
| Riven | |||
| Mohawk | Overview | ||
| BLST | CARD | FLST | HSPT |
| MLST | NAME | PLST | RMAP |
| SFXE | SLST | tBMP | tMOV |
| tWAV | VARS | VERS | ZIPS |
| Scripts | Variables | ||
| External commands | |||
PLSTs are bitmap lists: they tell which bitmap to draw and where to draw it within the card.
Each PLST resource is a list of records; it starts with an unsigned short record count, followed by that many records. The record structure is:
| unsigned short | index | Record index, starting from 1 |
| unsigned short | bitmap_id | Resource ID of the corresponding tBMP bitmap |
| unsigned short | left | Rectangle to draw the bitmap into, in pixels |
| unsigned short | top | |
| unsigned short | right | |
| unsigned short | bottom |
Like in BLSTs, the records must be "activated" from a script, using command 39.