Jump to content

OBD:IGHH: Difference between revisions

583 bytes added ,  26 September 2007
m
screenshot wanted ^_^
m (design)
m (screenshot wanted ^_^)
Line 10: Line 10:
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0    | level 0 }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0    | level 0 }}
{{OBDtr| 0x08 | char[28] |00FF00| AD DE      | dead  | unused }}
{{OBDtr| 0x08 | char[28] |00FF00| AD DE      | dead  | unused }}
{{OBDtr| 0x24 | link    |00FFFF| 01 65 10 00 | 4197  | link to 04197-left_help.[[OBD:TXMP|TXMP]] }}
{{OBDtr| 0x24 | link    |00FFFF| 01 65 10 00 | 4197  | left HUD image (04197-left_help.[[TXMP]]) }}
{{OBDtr| 0x28 | link    |00FFFF| 01 66 10 00 | 4198  | link to 04198-right_help.[[OBD:TXMP|TXMP]] }}
{{OBDtr| 0x28 | link    |00FFFF| 01 66 10 00 | 4198  | right HUD image (04198-right_help.[[TXMP]]) }}
{{OBDtr| 0x2C | int32   |FF00FF| 37 00 00 00 | 55    | the left HUD image starts 55 pixel from the left screen border }}
{{OBDtr| 0x2C | int16   |FF00FF| 37 00       | 55    | horizontal offset of left HUD image to left screen border, in pixels }}
{{OBDtr| 0x30 | int32   |FF00FF| D5 FF 00 00 | -42  | the left HUD image starts 42 pixel from the right screen border * }}
{{OBDtr| 0x2E | int16    |FF00FF| 00 00      | 0    | unknown; vertical offset of left HUD image, or padding? }}
{{OBDtr| 0x34 | int32    |FF8000| 06 00 00 00 | 6    | amount of elements at the left side }}
{{OBDtr| 0x30 | int16   |FF00FF| D5 FF       | -42  | horizontal offset of right HUD image to right screen border, in pixels }}
{{OBDtr| 0x38 | int32    |FF8000| 07 00 00 00 | 7    | amount of elements at the right side }}
{{OBDtr| 0x32 | int16    |FF00FF| 00 00      | 0    | unknown; vertical offset of right HUD image, or padding? }}
{{OBDtr| 0x3C | int32    |FF8000| 0D 00 00 00 | 13    | array size (sum of all elements) }}
{{OBDtr| 0x34 | int32    |FF8000| 06 00 00 00 | 6    | amount of elements attached to left HUD image }}
{{OBDtr| 0x38 | int32    |FF8000| 07 00 00 00 | 7    | amount of elements attached to right HUD image }}
{{OBDtr| 0x3C | int32    |FF8000| 0D 00 00 00 | 13    | array size (elements for both parts of the HUD) }}
{{OBDtrBK}}
{{OBDtrBK}}
{{OBDtr2|0x00 | char[64] |FFC8C8| BALLISTIC AMMO      | space for words (the fist 00 is the stop byte) }}
{{OBDtr2|0x00 | char[64] |FFC8C8| BALLISTIC AMMO      | null-terminated string (legend of a HUD item) }}
{{OBDtr| 0x40 | int16    |FFFFC8| 4D 00      | 77    | the word starts 77 pixel from the left border of the left HUD image }}
{{OBDtr| 0x40 | int16    |FFFFC8| 4D 00      | 77    | the legend starts 77 pixels from the left border of the left HUD image }}
{{OBDtr| 0x42 | int16    |FFFFC8| 08 00      | 8    | the word starts 8 pixel from the top border of the left HUD image }}
{{OBDtr| 0x42 | int16    |FFFFC8| 08 00      | 8    | the legend starts 8 pixels from the top border of the left HUD image }}
|}
|}


 
;Right HUD
*65535 - 65493 = 42. This is a little bit special. Every HUD pic is located in an invisible window. And every window has a size (width) of 65535 pixel. That's one way to make sure, that the HUD pics are always at the same place in connection to the different screen resolutions.
:The offset at 0x30 is a signed integer, and specifies the distance between the right edge of the screen and the left edge of the HUD image.
;Element placement
:The integers at 0x40 are all positive. The interpretation is different depending on the part of the HUD the element is attached to.
:For the left/right HUD, this is the horizontal distance between the left/right edge of the HUD image and the left/right edge of the legend.
:Thus the legend attached to the left HUD is to its right and the legend attached to the right HUD is to its left (screenshot wanted).




{{OBD_File_Footer | type=IGHH | prev=IDXA | next=IGPA | name=IGUI (In-Game User Interface) HUD (Head-Up Display) | family=Global}}
{{OBD_File_Footer | type=IGHH | prev=IDXA | next=IGPA | name=IGUI (In-Game User Interface) HUD (Head-Up Display) | family=Global}}