XML:IGHH: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
m (oops, forgot this disambig page existed)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{XML_File_Header | type=IGHH | prev=HPge | next=IPge | name=In-game HUD }}
{{XML_File_Header | prev=IDXA | type=IGHH | next=IGPA | name=IGUI HUD Help}}


===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 edition/GameDataFolder/'''level0_'''... )
*"IGUI" stands for "In-game User Interface". "HUD" stands for "heads-up display".
* There's only one IGHH.  
* IGHH is '''global''' (it can be found in AE/AEInstaller/vanilla/level0_Final.dat).
* HPge and IGHH becomes displayed at the same time.
* There's only one IGHH in Oni.
* 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.
* 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 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 29:
| <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) to.
| 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 image.
| Number of elements (<IGHHLabels>) attached to left HUD explanation image.
|-
|-
| <RightCount>
| <RightCount>
| integer
| integer
| Amount of elements (<IGHHLabels>) attached to right HUD 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
|
|
{| border=0 cellspacing=0 cellpadding=0 style="float:right"
[[Image:HPge.png|thumb|200px|right|Help page plus IGHH illustration.]]
| [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/HPge.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/HPge_tn.png]
|}


'''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}}

Latest revision as of 19:06, 27 March 2021

IGHH : IGUI HUD Help
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

IDXA << Other file types >> IGPA

switch to OBD page

General information

  • The XML on this page is compatible with OniSplit v0.9.61.0.
  • "IGUI" stands for "In-game User Interface". "HUD" stands for "heads-up display".
  • 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".