XML:IGHH: Difference between revisions

From OniGalore
Jump to navigation Jump to search
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}}

Revision as of 14:08, 18 March 2021

IGHH : In-game HUD
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

HPge << Other file types >> IPge

switch to OBD page

General information

  • 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).
  • There's only one IGHH in Oni.
  • The 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 guide image with the green lines.

File structure

XML tag Content type description
<IGHH id="..."> integer instance ID, should be 0
<LeftTexture> link TXMPfilename.oni (without file suffix .oni); "TXMPleft_help" in vanilla Oni/AE
<RightTexture> link TXMPfilename.oni (without file suffix .oni); "TXMPright_help" in vanilla Oni/AE
<LeftX> integer Horizontal relative position of left HUD explanation image (left white border) to left HUD image (left red border).
<LeftY> integer Vertical relative position of left HUD explanation image (bottom white border) to left HUD image (bottom red border).
<RightX> integer Horizontal relative position of right HUD explanation image (right white border) to right HUD image (right red border).
<RightY> integer Vertical relative position of right HUD explanation image (bottom white border) to right HUD image (bottom red border).
<LeftCount> integer Number of elements (<IGHHLabels>) attached to left HUD explanation image.
<RightCount> integer Number of elements (<IGHHLabels>) attached to right HUD explanation image.
<Labels> - You can have N <IGHHLabels> where N is an integer (int32).
<IGHHLabels> - Holds <Text>, <X> and <Y> tags.
<Text> char[64] Legend text for a HUD item, for example "BALLISTIC AMMO".
<X> integer
Help page plus IGHH illustration.

For left HUD:

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

For right HUD:

Horizontal relative position of text to right HUD explanation image (left white border).
For example it's 19 px for "OVERPOWER HEALTH".
<Y> integer 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".