...
Some elements are a bit easier to find in the XML than others... basically what you are looking for are three things:
1. The label for the particular element
2. The label-name for the texture file used
3. A batch of coordinated coded as <TexCoords>
For example, the close button on the mobile health bar in the Third Dawn texture pack is as follows:
Code:
<Button name="$parentCloseButton" backgroundtexture="UO_Core" highlighttexture="UO_Core" texturescale="1.28" layer="popup">
<Size>
<AbsPoint x="9" y="9" />
</Size>
<Anchors>
<Anchor point="topright" relativePoint="topright" />
</Anchors>
<EventHandlers>
<EventHandler event="OnLButtonUp" function="MobileHealthBar.CloseWindow" />
<EventHandler event="OnMouseOver" function="MobileHealthBar.CloseButton_OnMouseOver" />
</EventHandlers>
<TexCoords>
<Normal x="208" y="56" />
<NormalHighlit x="231" y="56" />
<Pressed x="208" y="56" />
<PressedHighlit x="231" y="56" />
<Disabled x="208" y="56" />
</TexCoords>
</Button>
In that, you have the following:
1. The object label: Button name="$parentCloseButton"
2. The texture file label: backgroundtexture="UO_Core" (in this case, UO_Core references the file CoreTextures.DDS)
3. The texture coordinates: <TexCoords>
<Normal x="208" y="56" />
<NormalHighlit x="231" y="56" />
<Pressed x="208" y="56" />
<PressedHighlit x="231" y="56" />
<Disabled x="208" y="56" />
</TexCoords>
So in this example, the Close Button is found in CoreTextures.DDS at locations 208,56 and 231,56 depending on state of use.
Other elements follow this same pattern with the X,Y values being the top left of the image.