Difference between revisions of "Riven PLST resources"
From A look inside The Link @ wiki
(import) |
(woops, forgot that!) |
||
| (One intermediate revision by the same user not shown) | |||
| 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" | ||
| Line 16: | Line 18: | ||
|} | |} | ||
| − | Like in [[Riven BLST resources|BLST]]s, the records must be "activated" from a script, using command 39. | + | Like in [[Riven BLST resources|BLST]]s, the records must be "activated" from a script, using command 39. The first record is automatically enabled when entering the card, though: some cards have no PLST activation commands at all. |
Latest revision as of 11:31, 2 September 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. The first record is automatically enabled when entering the card, though: some cards have no PLST activation commands at all.