vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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">
        <Script file="MetaMapZSM.lua"/>

        <Button name="MetaMapZSM_ZoneShiftButtonTemplate" inherits="UIPanelButtonTemplate2" hidden="true" virtual="true">
                <Size><AbsDimension x="220" y="24"/></Size>
                        <Layers>
                                <Layer level="ARTWORK">
                                        <FontString     name="$parentVersion" inherits="GameFontNormal" hidden="true" text=""/>
                                        <FontString     name="$parentSkipShift" inherits="GameFontDisableSmall" text="METAMAPZSM_SKIP_SHIFT">
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                         <Offset><AbsDimension x="0" y="10"/></Offset>
                                                        </Anchor>
                                                 </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                 <Scripts>
                        <OnClick>
                                MetaMapZSM_OnClick(tonumber(getglobal(this:GetName().."Version"):GetText()), this:GetID());
                        </OnClick>
                </Scripts>
        </Button>

        <Frame name="MetaMap_ZoneShiftFrame"    parent="MetaMap_ZoneShiftDialog">
                <Size><AbsDimension     x="480" y="280" /></Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString     name="MetaMapZSM_InfoHeader" inherits="GameFontHighlight"       text="">
                                        <Anchors>
                                                <Anchor point="TOP">
                                                 <Offset><AbsDimension x="0" y="-25"/></Offset>
                                                </Anchor>
                                         </Anchors>
                                </FontString>
                                <FontString     name="MetaMapZSM_InfoFooter" inherits="GameFontDisableSmall"    text="METAMAPZSM_UPDATE_INFO">
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                 <Offset><AbsDimension x="0" y="10"/></Offset>
                                                </Anchor>
                                         </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="MetaMapZSM_ZoneShiftButton1" inherits="MetaMapZSM_ZoneShiftButtonTemplate" id="1">
                                 <Anchors>
                                                <Anchor point="TOPLEFT">
                                                 <Offset><AbsDimension x="50" y="-60"   /></Offset>
                                         </Anchor>
                                 </Anchors>
                        </Button>
                        <Button name="MetaMapZSM_ZoneShiftButton2" inherits="MetaMapZSM_ZoneShiftButtonTemplate" id="2">
                                 <Anchors>
                                                <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MetaMapZSM_ZoneShiftButton1">
                                                 <Offset><AbsDimension x="0" y="-40"     /></Offset>
                                         </Anchor>
                                 </Anchors>
                        </Button>
                        <Button name="MetaMapZSM_ZoneShiftButton3" inherits="MetaMapZSM_ZoneShiftButtonTemplate" id="3">
                                 <Anchors>
                                                <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MetaMapZSM_ZoneShiftButton2">
                                                 <Offset><AbsDimension x="0" y="-40"     /></Offset>
                                         </Anchor>
                                 </Anchors>
                        </Button>
                        <Button name="MetaMapZSM_ZoneShiftButton4" inherits="MetaMapZSM_ZoneShiftButtonTemplate" id="4">
                                 <Anchors>
                                                <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MetaMapZSM_ZoneShiftButton3">
                                                 <Offset><AbsDimension x="0" y="-40"     /></Offset>
                                         </Anchor>
                                 </Anchors>
                        </Button>
                        <Button name="MetaMapZSM_ZoneShiftButton5" inherits="MetaMapZSM_ZoneShiftButtonTemplate" id="5">
                                 <Anchors>
                                                <Anchor point="LEFT" relativePoint="LEFT" relativeTo="MetaMapZSM_ZoneShiftButton4">
                                                 <Offset><AbsDimension x="0" y="-40"     /></Offset>
                                         </Anchor>
                                 </Anchors>
                        </Button>
                        <Button name="MetaMapZSM_Update" inherits="UIPanelButtonTemplate2" text="METAMAPZSM_UPDATE_VERSION">
                                 <Size><AbsDimension x="120" y="24"/></Size>
                                 <Anchors>
                                                <Anchor point="BOTTOM">
                                                 <Offset><AbsDimension x="0" y="30"      /></Offset>
                                         </Anchor>
                                 </Anchors>
                                 <Scripts>
                                        <OnClick>
                                                MetaMapOptions.ZoneShiftVersion = MetaMapZSM_CurrentVersion;
                                                MetaMapZSM_Init();
                                        </OnClick>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:SetWidth(MetaMap_DialogFrame:GetWidth()-20);
                                this:SetHeight(MetaMap_DialogFrame:GetHeight()-20);
                        </OnLoad>
                        <OnShow>
                                MetaMapZSM_Init();
                        </OnShow>
                </Scripts>
        </Frame>
</Ui>