WoWInterface SVN ZoneLevel

[/] [ZoneLevel/] [ZoneLevel.xml] - Rev 38

Compare with Previous | Blame | View Log

<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="ZoneLevelBase" frameStrata="MEDIUM" toplevel="true" enableMouse="true" movable="true" parent="UIParent" clampedToScreen="true">
                <Size><AbsDimension x="20" y="20"/></Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <TitleRegion setAllPoints="true"/>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="ZoneLevelGrey" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0.25" right="0.5" top="0" bottom="0.5"/>
                                </Texture>
                                <Texture name="ZoneLevelGreen" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0" right="0.25" top="0" bottom="0.5"/>
                                </Texture>
                                <Texture name="ZoneLevelYellow" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0" right="0.25" top="0.5" bottom="1"/>
                                </Texture>
                                <Texture name="ZoneLevelRed" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0.25" right="0.5" top="0.5" bottom="1"/>
                                </Texture>
                                <Texture name="ZoneLevelCity" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0.5" right="0.75" top="0.5" bottom="1"/>
                                </Texture>
                                <Texture name="ZoneLevelBad" file="Interface\AddOns\ZoneLevel\ZoneLevelIcons">
                                        <TexCoords left="0.5" right="0.75" top="0" bottom="0.5"/>
                                </Texture>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>ZoneLevel_OnLoad();tinsert(UISpecialFrames,"MyFrame");</OnLoad>
                        <OnEvent>ZoneLevel_OnEvent();</OnEvent>
                        <OnEnter>ZoneLevel_ShowTooltip();</OnEnter>
                        <OnLeave>GameTooltip:Hide();</OnLeave>
            <OnMouseDown>
                                if(button == "LeftButton" and not MyFrame:Hide() and zoneLevelLocked)then
                  MyFrame:Show()
                                end
                        </OnMouseDown>
                </Scripts>
        </Frame>
</Ui>

Compare with Previous | Blame