-
Notifications
You must be signed in to change notification settings - Fork 25
TazUO.XML Gumps
ℹ️ v3.15.0 and up required.
This feature will expand over time, it is not finished.
Your xml files will go under /TazUO/Data/XmlGumps/
and must be named ----.xml
<?xml version="1.0"?>
<gump>
<colorbox hue="1" width="400" height="200" alpha="0.65"/>
<colorbox hue="32" width="400" height="20" alpha="0.65"/>
<text x="15" y="2" hue="0">XML Gump</text>
<text x="15" y="22" hue="32">With some more text for an example</text>
<image id="9819" hue="0" x="10" y="50"/>
</gump>
ℹ️ Text element is the only exception here, it does not have all of these applied
x
Left position
y
Top position
width
Width of the element
height
Height of the element
acceptmouseinput
true/false (false will act like mouse pass through to whatever is behind it)
canmove
true/false (If false, dragging on this element will not move the gump as a whole)
x
Left position
y
Top position
width
Width of the element
size
Font size
font
Name of the font(Must be installed in your fonts folder of TazUO)
hue
Hue for the font
updates
true/false weather or not this needs to be updated, only use this when necessary to keep resource usage down.
The following can be used inside your text, for example: Hits {hp}/{maxhp}
{charname}
{hp}
{maxhp}
{mana}
{maxmana}
{stam}
{maxstam}
{weight}
{maxweight}
{str}
{dex}
{int}
{damagemin}
{damagemax}
{hci}
{di}
{ssi}
{defchance}
{sdi}
{fc}
{fcr}
{lmc}
{lrc}
{phyres}
{phyresmax}
{fireres}
{fireresmax}
{coldres}
{coldresmax}
{poisonres}
{poisonresmax}
{energyres}
{energyresmax}
{maxstats}
{luck}
{gold}
{pets}
{petsmax}
hue
Hue for the color
alpha
Transparency from 0-1 (0.5 is 50% transparency)
id
The graphic id, you can get this from UOFiddler or similar programs
hue
The hue for the image(0 is original hue)
background_image
The background image of the progress bar
foreground_image
The foreground image of the progress bar
background_hue
foreground_hue
value
The current value of the progress bar, can use any of the Text Options or a plain number
max_value
The max value of the progress bar, can use any of the Text Options or a plain number
updates
true/false If you want the progress bar to update if you expect the value to change
An example:
<image_progress_bar background_image="40" foreground_image="41" value="{hp}" max_value="{maxhp}" x="15" y="57" updates="true"/>