XML:IGHH: Difference between revisions

m
copy edit
m (should have used vanilla/ path)
m (copy edit)
Line 1: Line 1:
{{XML_File_Header | type=IGHH | prev=HPge | next=IPge | name=In-game HUD }}
{{XML_File_Header | type=IGHH | prev=HPge | next=IPge | name=In-game HUD }}


===general information===
==General information==
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* IGHH is '''global'''. (It can be found in AE/AEInstaller/vanilla/level0_Final.dat)
* IGHH is '''global''' (it can be found in AE/AEInstaller/vanilla/level0_Final.dat).
* There's only one IGHH.  
* There's only one IGHH in Oni.
* HPge and IGHH becomes displayed at the same time.
* The [[XML:HPge|HPge]] and IGHH get displayed at the same time.
* In the following description '''"HUD"''' refers to the health gauge, weapon display, compass, etc., and '''"HUD explanation"''' refers to the image holding the green lines.
* In the following description, '''"HUD"''' refers to the health gauge, weapon display, compass, etc., and '''"HUD explanation"''' refers to the guide image with the green lines.


==File structure==
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=100px | XML tag
!width=100px | XML tag
!width=100px| content type
!width=100px | Content type
! description
! description
|-
|-
| <IGHH id="...">
| <IGHH id="...">
| integer
| integer
| instance id, should be 0
| instance ID, should be 0
|-
|-
| <LeftTexture>
| <LeftTexture>
Line 27: Line 28:
| <LeftX>
| <LeftX>
| integer
| integer
| Horizontal relative position of left HUD explanation image (left white boarder) to left HUD image (left red boarder).
| Horizontal relative position of left HUD explanation image (left white border) to left HUD image (left red border).
|-
|-
| <LeftY>
| <LeftY>
| integer
| integer
| Vertical relative position of left HUD explanation image (bottom white boarder) to left HUD image (bottom red border).
| Vertical relative position of left HUD explanation image (bottom white border) to left HUD image (bottom red border).
|-
|-
| <RightX>
| <RightX>
| integer
| integer
| Horizontal relative position of right HUD explanation image (right white boarder) to right HUD image (right red border).
| Horizontal relative position of right HUD explanation image (right white border) to right HUD image (right red border).
|-
|-
| <RightY>
| <RightY>
| integer
| integer
| Vertical relative position of right HUD explanation image (bottom white boarder) to right HUD image (bottom red border).
| Vertical relative position of right HUD explanation image (bottom white border) to right HUD image (bottom red border).
|-
|-
| <LeftCount>
| <LeftCount>
| integer
| integer
| Amount of elements (<IGHHLabels>) attached to left HUD explanation image.
| Number of elements (<IGHHLabels>) attached to left HUD explanation image.
|-
|-
| <RightCount>
| <RightCount>
| integer
| integer
| Amount of elements (<IGHHLabels>) attached to right HUD explanation image.
| Number of elements (<IGHHLabels>) attached to right HUD explanation image.
|-
|-
| <Labels>
| <Labels>
| -
| -
| You can have N <IGHHLabels> whereby N is an integer (int32).
| You can have N <IGHHLabels> where N is an integer (int32).
|-
|-
| <IGHHLabels>
| <IGHHLabels>
| -
| -
| Holds <Text>, <X> and <Y> tag.
| Holds <Text>, <X> and <Y> tags.
|-
|-
| <Text>
| <Text>
| char[64]
| char[64]
| Legend of a HUD item, for example "BALLISTIC AMMO".
| Legend text for a HUD item, for example "BALLISTIC AMMO".
|-
|-
|valign=top| <X>
|valign=top| <X>
|valign=top| integer
|valign=top| integer
|
|
[[Image:HPge.png|thumb|200px|right|[[XML:HPge|help page]] plus IGHH illustration]]
[[Image:HPge.png|thumb|200px|right|Help page plus IGHH illustration.]]


'''For left HUD:'''
'''For left HUD:'''
: Horizontal relative position of text to left HUD explanation image (right white boarder).
: Horizontal relative position of text to left HUD explanation image (right white border).
: For example it's 77 px for "BALLISTIC AMMO".
: For example it's 77 px for "BALLISTIC AMMO".


'''For right HUD:'''
'''For right HUD:'''
: Horizontal relative position of text to right HUD explanation image (left white boarder).
: Horizontal relative position of text to right HUD explanation image (left white border).
: For example it's 19 px for "OVERPOWER HEALTH".
: For example it's 19 px for "OVERPOWER HEALTH".
|-
|-
|valign="top"| <Y>
|valign="top"| <Y>
|valign="top"| integer
|valign="top"| integer
| Vertical relative position of text to the right/left HUD explanation image (top white boarder).
| Vertical relative position of text to the right/left HUD explanation image (top white border).
: For example it's 8 px for "BALLISTIC AMMO" and 26 px for "OVERPOWER HEALTH".
: For example it's 8 px for "BALLISTIC AMMO" and 26 px for "OVERPOWER HEALTH".
|}
|}


{{XML}}
{{XML}}