Changes

295 bytes added ,  06:19, 9 January 2015
no edit summary
Line 65: Line 65:  
| 0xC
 
| 0xC
 
| 0x4
 
| 0x4
| Must be <4. Top screen draw type: 0 = none, 1 = solid color(see below), 2 = extension of val1(see below), 3 = texture.
+
| Must be <4. Top screen draw type: 0 = none, 1 = solid color, 2 = solid color (plus optional texture, see below), 3 = texture.
 
|-
 
|-
 
| 0x10
 
| 0x10
 
| 0x4
 
| 0x4
| Top screen frame type, when draw-type is 3: 0 = texture1, 1 = texture0, 3 = texture1.
+
| Top screen frame type, when draw-type is 3: 0 = texture1, 1 = texture0, 3 = texture1. Also affects scrolling speed: 0 = scroll top and bottom screen in sync with each other, 1 = no scroll, 3 = scroll top screen more slowly than bottom screen for a perspective effect.
 
|-
 
|-
 
| 0x14
 
| 0x14
 
| 0x4
 
| 0x4
| Offset for the top screen solid color data.
+
| Offset for the top screen solid color data. Length of data is either 5 or 7, depending on whether the top screen's draw type is 1 or 2.
 
|-
 
|-
 
| 0x18
 
| 0x18
Line 81: Line 81:  
| 0x1C
 
| 0x1C
 
| 0x4
 
| 0x4
| Additional top-screen texture offset, used with draw-type val2. This is optional when using draw-type val2.
+
| Additional top-screen texture offset, used with draw-type has value 2. This is optional when using draw-type val2.
 
|-
 
|-
 
| 0x20
 
| 0x20
Line 250: Line 250:  
The filesize is aligned to 0x10-bytes. The filesize must be at least 0xC4-bytes, due to padding/alignment the first block of data after the header is normally located at 0xD0.
 
The filesize is aligned to 0x10-bytes. The filesize must be at least 0xC4-bytes, due to padding/alignment the first block of data after the header is normally located at 0xD0.
   −
With the solid-color data, there's 5-bytes located at the solid-color data offset. With draw-type val2, there's 7-bytes located here. The first 4-bytes located here is RGBA8888 pixel data, the rest is unknown.
+
With the solid-color data, there's 5-bytes located at the solid-color data offset. With draw-type has value 2, there's 7-bytes located here. The first 4-bytes located here is RGBA8888 pixel data, the rest is unknown.
    
With draw-type val2, texture5 is also used(this likely isn't used for the entire top-screen). With draw-type val2, an extra texture with the same format/dimensions as texture5 can be used, when the additional texture offset field is set.
 
With draw-type val2, texture5 is also used(this likely isn't used for the entire top-screen). With draw-type val2, an extra texture with the same format/dimensions as texture5 can be used, when the additional texture offset field is set.
33

edits