Another example (Clock button: \Blizzard_AddOns\Blizzard_TimeManager\Blizzard_TimeManager.xml):
Code:
<!-- Minimap button to access the TimeManagerButton -->
<Button name="TimeManagerClockButton" parent="Minimap">
<Size x="60" y="28"/>
<Anchors>
<Anchor point="CENTER">
<Offset x="0" y="-75"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture <!-- no texture name --> urgency="5" file="Interface\TimeManager\ClockBackground" setAllPoints="true">
<TexCoords left="0.015625" right="0.8125" top="0.015625" bottom="0.390625"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="TimeManagerClockTicker" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="CENTER">
<Offset x="3" y="1"/>
</Anchor>
</Anchors>
</FontString>
<Texture name="TimeManagerAlarmFiredTexture" urgency="5" file="Interface\TimeManager\ClockBackground" alphaMode="ADD" hidden="true" setAllPoints="true">
<TexCoords left="0.015625" right="0.8125" top="0.51625" bottom="0.890625"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad function="TimeManagerClockButton_OnLoad"/>
<OnEnter function="TimeManagerClockButton_OnEnter"/>
<OnLeave function="TimeManagerClockButton_OnLeave"/>
<OnUpdate function="TimeManagerClockButton_OnUpdate"/>
<OnClick function="TimeManagerClockButton_OnClick"/>
</Scripts>
</Button>
I guess my question is how do you find a texture object when there is no texture name (i.e., is there a default)? Might there be a way to do it backwards by looking up all of the texture objects using a certain texture file (e.g., Interface\TimeManager\ClockBackground)?