XML:IGHH: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(IGHH + cat + temp)
 
m (Adapted description to the illustration.)
Line 2: Line 2:


===general information===
===general information===
{| border=0 cellspacing=20 cellpadding=0 style="float:right"
| [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/HPge.jpg http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/HPge_tn.jpg]
|}
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* IGHH is global. (It can be found in edition/GameDataFolder/level0_... )
* IGHH is '''global'''. (It can be found in edition/GameDataFolder/'''level0_'''... )
* There's only one IGHH.  
* There's only one IGHH.  
* HPge and IGHH becomes displayed at the same time.
* HPge and IGHH becomes 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.


{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
Line 29: Line 27:
| <LeftX>
| <LeftX>
| integer
| integer
| Horizontal offset of left HUD image to left screen border.
| Horizontal distance of left HUD image (left red boarder) to left HUD explanation image (left white boarder).
|-
|-
| <LeftY>
| <LeftY>
| integer
| integer
| Vertical offset of left HUD image to bottom screen border.
| Vertical distance of left HUD image (bottom red border) to left HUD explanation image (bottom white boarder).
|-
|-
|valign=top| <RightX>
| <RightX>
|valign=top| integer
| integer
| Horizontal offset of right HUD image to right screen border.
| Horizontal distance of right HUD image (right red border) to right HUD explanation image (right white boarder).
 
(The offset specifies the distance between the right edge of the screen and the left edge of the HUD image.)
|-
|-
| <RightY>
| <RightY>
| integer
| integer
| vertical offset of right HUD image to bottom screen border.
| Vertical distance of right HUD image (bottom red border) to right HUD explanation image (bottom white boarder).
|-
|-
| <LeftCount>
| <LeftCount>
Line 59: Line 55:
| <IGHHLabels>
| <IGHHLabels>
| -
| -
|
| Holds text, x and y tag.
|-
|-
| <Text>
| <Text>
| char[64]
| char[64]
| Legend of a HUD item, e.g. ''BALLISTIC AMMO''.
| Legend of a HUD item, for example "BALLISTIC AMMO".
|-
|-
|valign=top| <X>
|valign=top| <X>
|valign=top| integer
|valign=top| integer
| The legend starts 77 pixels from the left border of the left HUD image.
|
{| border=0 cellspacing=0 cellpadding=0 style="float:right"
| [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 right HUD:'''
: Horizontal distance of right HUD explanation image (right white boarder) to the text.
: For example it's 77 px for "BALLISTIC AMMO".


The integers at 0x40 are all positive. The interpretation is different depending on the part of the HUD the element is attached to.<br>
'''For left HUD:'''
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.<br>
: Horizontal distance of left HUD explanation image (left white boarder) to the text.
Thus the legend attached to the left HUD is to its right and the legend attached to the right HUD is to its left.
: For example it's 19 px for "OVERPOWER HEALTH".
|-
|-
| <Y>
|valign="top"| <Y>
| integer
|valign="top"| integer
| The legend starts 8 pixels from the top border of the left HUD image.
| Vertical distance of right/left HUD explanation image (top white boarder) to the text.
: For example it's 8 px for "BALLISTIC AMMO" and 26 px for "OVERPOWER HEALTH".
|}
|}




{{XML}}
{{XML}}

Revision as of 14:20, 15 November 2012

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 code on this page is compatible with onisplit v0.9.61.0
  • IGHH is global. (It can be found in edition/GameDataFolder/level0_... )
  • There's only one IGHH.
  • HPge and IGHH becomes 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.
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 distance of left HUD image (left red boarder) to left HUD explanation image (left white boarder).
<LeftY> integer Vertical distance of left HUD image (bottom red border) to left HUD explanation image (bottom white boarder).
<RightX> integer Horizontal distance of right HUD image (right red border) to right HUD explanation image (right white boarder).
<RightY> integer Vertical distance of right HUD image (bottom red border) to right HUD explanation image (bottom white boarder).
<LeftCount> integer Amount of elements (<IGHHLabels>) attached to left HUD image.
<RightCount> integer Amount of elements (<IGHHLabels>) attached to right HUD image.
<Labels> - You can have N <IGHHLabels> whereby N is an integer (int32).
<IGHHLabels> - Holds text, x and y tag.
<Text> char[64] Legend of a HUD item, for example "BALLISTIC AMMO".
<X> integer
HPge_tn.png

For right HUD:

Horizontal distance of right HUD explanation image (right white boarder) to the text.
For example it's 77 px for "BALLISTIC AMMO".

For left HUD:

Horizontal distance of left HUD explanation image (left white boarder) to the text.
For example it's 19 px for "OVERPOWER HEALTH".
<Y> integer Vertical distance of right/left HUD explanation image (top white boarder) to the text.
For example it's 8 px for "BALLISTIC AMMO" and 26 px for "OVERPOWER HEALTH".