Quantcast
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
    <Frame name="DJBagsItemContainerTemplate" inherits="DJBagsContainerTemplate" virtual="true">
        <Layers>
            <Layer level="ARTWORK">
                <FontString name="$parentName" parentKey="name" inherits="GameFontHighlight">
                    <Anchors>
                        <Anchor point="TOPLEFT">
                            <Offset>
                                <AbsDimension x="0" y="-5"/>
                            </Offset>
                        </Anchor>
                        <Anchor point="TOPRIGHT">
                            <Offset>
                                <AbsDimension x="0" y="-5"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <Frame name="$parentTextHover">
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPLEFT" />
                    <Anchor point="BOTTOMRIGHT" relativeTo="$parentName" relativePoint="BOTTOMRIGHT" />
                </Anchors>
                <Scripts>
                    <OnEnter>
                        if self:GetParent().name:IsTruncated() or self:GetParent().name:GetText() ~= self:GetParent().name.text then
                            GameTooltip:SetOwner(self, 'ANCHOR_CURSOR')
                            GameTooltip:SetText(self:GetParent().name.text)
                            GameTooltip:Show()
                        end
                    </OnEnter>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                    <OnMouseUp>
                        if IsAltKeyDown() and button == 'RightButton' then
                            DJBagsSettingsContainer:Open()
                        end
                    </OnMouseUp>
                </Scripts>
            </Frame>
        </Frames>
        <Scripts>
            <OnMouseUp>
                if IsAltKeyDown() and button == 'RightButton' then
                    DJBagsSettingsContainer:Open()
                end
            </OnMouseUp>
        </Scripts>
    </Frame>
</Ui>