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="MetaMapWKB.loc"/>
        <Script file="MetaMapWKB.lua"/>

        <Button name="MetaKBMenu_ButtonTemplate"        virtual="true">
                <Size>
                        <AbsDimension   x="130" y="16"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight"     alphaMode="ADD" setAllPoints="true"     hidden="true"/>
                        </Layer>
                        <Layer level="ARTWORK">
                                <FontString     name="$parentText" inherits="GameFontGreen"     text="">
                                        <Anchors>
                                                <Anchor point="LEFT">
                                                        <Offset>
                                                                <AbsDimension   x="-20" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="$parentColorSwatch"       hidden="true">
                                <Size>
                                        <AbsDimension   x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT">
                                                <Offset><AbsDimension   x="-6" y="0"/></Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentSwatchBg">
                                                        <Size>
                                                                <AbsDimension   x="14" y="14"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT">
                                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Color r="1.0" g="1.0" b="1.0"/>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnEnter>
                                                getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r,       NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
                                        </OnEnter>
                                        <OnLeave>
                                                getglobal(this:GetName().."SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
                                        </OnLeave>
                                </Scripts>
                                <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:SetFrameLevel(10);
                        </OnLoad>
                        <OnClick>
                                MetaKBMenu_Select(this:GetID());
                        </OnClick>
                        <OnEnter>
                                getglobal(this:GetName().."Highlight"):Show();
                        </OnEnter>
                        <OnLeave>
                                getglobal(this:GetName().."Highlight"):Hide();
                        </OnLeave>
                </Scripts>
                <NormalFont     name="$parentNormalText" inherits="GameFontNormalSmall" justifyH="LEFT"/>
                <HighlightFont name="$parentHighlightText" inherits="GameFontHighlightSmall" justifyH="LEFT"/>
                <DisabledFont   name="$parentDisabledText" inherits="GameFontDisableSmall" justifyH="LEFT"/>
        </Button>

        <Button name="MetaKB_HeaderTemplate" virtual="true">
                <Size>
                        <AbsDimension   x="10" y="18"/>
                </Size>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentMiddle"   alphaMode="ADD" virtual="true">
                                        <Size>
                                                <AbsDimension   x="12" y="22"/>
                                        </Size>
                                        <TexCoords left="0.09375"       right="0.53125" top="0"  bottom="0.6875"/>
                                </Texture>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                getglobal(this:GetName().."Middle"):SetTexture("Interface\\Buttons\\UI-Panel-Button-Highlight");
                        </OnEnter>
                        <OnLeave>
                                getglobal(this:GetName().."Middle"):SetTexture("");
                        </OnLeave>
                        <OnClick>
                                PlaySound("igMainMenuOptionCheckBoxOn");
                                MetaKBList_SortBy(this.MetaMap_sortType, this.MetaMap_sortDone);
                                this.MetaMap_sortDone   =       not     this.MetaMap_sortDone;
                        </OnClick>
                </Scripts>
                <NormalFont     name="$parentText" inherits="GameFontNormal"/>
                <HighlightFont inherits="GameFontHighlight"/>
                </Button>

                <Button name="MetaKB_ScrollFrameButtonTemplate" topLevel="true" virtual="true">
                        <Size><AbsDimension     x="700" y="16"/></Size>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight"     alphaMode="ADD" setAllPoints="true"     hidden="true"/>
                                        </Layer>
                                </Layers>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString     name="$parentName" inherits="GameFontNormal" text="" justifyH="LEFT">
                                                        <Size>
                                                                <AbsDimension   x="175" y="12"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT">
                                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                                <FontString     name="$parentInfo1"     inherits="GameFontNormal"       text="" justifyH="LEFT">
                                                        <Size>
                                                                <AbsDimension   x="280" y="12"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentName"   relativePoint="RIGHT">
                                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                                <FontString     name="$parentInfo2"     inherits="GameFontNormal"       text="" justifyH="LEFT">
                                                        <Size>
                                                                <AbsDimension   x="120" y="12"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentInfo1" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                                <FontString     name="$parentCoords" inherits="GameFontNormal" text="" justifyH="LEFT">
                                                        <Size>
                                                                <AbsDimension   x="120" y="12"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="$parentInfo2" relativePoint="RIGHT">
                                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:RegisterForClicks("LeftButtonUp", "RightButtonUp")
                                        </OnLoad>
                                        <OnShow>
                                                this:SetHeight(METAKB_SCROLL_FRAME_BUTTON_HEIGHT)
                                                this:SetWidth(MetaKB_ScrollFrame:GetWidth())
                                        </OnShow>
                                        <OnClick>
                                                MetaKB_ScrollFrameButtonOnClick(arg1)
                                        </OnClick>
                                        <OnEnter>
                                                getglobal(this:GetName().."Highlight"):Show();
                                        </OnEnter>
                                        <OnLeave>
                                                getglobal(this:GetName().."Highlight"):Hide();
                                        </OnLeave>
                                </Scripts>
                                <NormalFont     name="$parentNormalText" inherits="GameFontNormal" justifyH="LEFT"/>
                        </Button>

        <Frame name="MetaKB_MainFrame" parent="UIParent">
                <Size><AbsDimension     x="10"  y="10"/></Size>
                <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMLEFT" relativeTo="UIParent"/>
                                <Offset><AbsDimension x="0" y="0"/></Offset>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                MetaKB_MainFrame_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                MetaKB_OnEvent(event);
                        </OnEvent>
                </Scripts>
        </Frame>

                <Frame name="MetaKB_OptionsFrame"       parent="MetaKB_HoldingFrame">
                        <Size><AbsDimension     x="480" y="280" /></Size>
                                <Anchors>
                                        <Anchor point="CENTER"/>
                                </Anchors>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <FontString     name="MetaKB_RangeText" inherits="GameFontHighlightSmall"       text="METAKB_OPTIONS_RANGETEXT">
                                                                <Anchors>
                                                                        <Anchor point="BOTTOMLEFT">
                                                                         <Offset><AbsDimension x="40" y="90"/></Offset>
                                                                        </Anchor>
                                                                 </Anchors>
                                                         </FontString>
                                                 </Layer>
                                        </Layers>
                                        <Frames>
                                                <CheckButton name="MetaKB_AlwaysOnCheckButton"  inherits="MetaMap_CheckButtonTemplate">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset><AbsDimension   x="40" y="-50"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_RETAIN);
                                                                </OnLoad>
                                                                <OnEnter>
                                                                        MetaMap_HelpOnEnter(METAKB_RETAIN, METAKB_RETAIN_HELP)
                                                                </OnEnter>
                                                                <OnClick>
                                                                        MetaMapOptions.WKBalwaysOn = not MetaMapOptions.WKBalwaysOn;
                                                                </OnClick>
                                                        </Scripts>
                                                </CheckButton>
                                         <CheckButton   name="MetaKB_BoundingBoxCheckButton" inherits="MetaMap_CheckButtonTemplate">
                                                 <Anchors>
                                                         <Anchor point="TOPLEFT">
                                                                 <Offset><AbsDimension x="40"   y="-80"/></Offset>
                                                         </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                         getglobal(this:GetName().."Text"):SetText(" "..METAKB_BOUNDING_BOX)
                                                                 </OnLoad>
                                                                 <OnEnter>
                                                                                MetaMap_HelpOnEnter(METAKB_BOUNDING_BOX,        METAKB_BOUNDING_BOX_HELP)
                                                                 </OnEnter>
                                                                 <OnClick>
                                                                                 MetaKB_ToggleBoundingBox()
                                                                        </OnClick>
                                                                </Scripts>
                                                </CheckButton>
                                                <CheckButton name="MetaKB_DsearchCheckButton"   inherits="MetaMap_CheckButtonTemplate">
                                                                <Anchors>
                                                                                <Anchor point="TOPLEFT">
                                                                                                <Offset><AbsDimension   x="40" y="-110" /></Offset>
                                                                                </Anchor>
                                                                </Anchors>
                                                                <Scripts>
                                                                                <OnLoad>
                                                                                                getglobal(this:GetName().."Text"):SetText("     "..METAKB_SET_DSEARCH)
                                                                                </OnLoad>
                                                                                <OnEnter>
                                                                                                MetaMap_HelpOnEnter(METAKB_SET_DSEARCH, METAKB_SET_DSEARCH_HELP)
                                                                                </OnEnter>
                                                                                <OnClick>
                                                                                                MetaKBOptions.Dsearch = not MetaKBOptions.Dsearch;
                                                                                </OnClick>
                                                                </Scripts>
                                                </CheckButton>
                                                <CheckButton name="MetaKB_SetMapShowCheckButton"        inherits="MetaMap_CheckButtonTemplate">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset><AbsDimension   x="40" y="-140"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_SET_MAPSHOW);
                                                                </OnLoad>
                                                                <OnEnter>
                                                                        MetaMap_HelpOnEnter(METAKB_SET_MAPSHOW, METAKB_SET_MAPSHOW_HELP)
                                                                </OnEnter>
                                                                <OnClick>
                                                                        MetaKBOptions.SetMapShow = not MetaKBOptions.SetMapShow;
                                                                </OnClick>
                                                        </Scripts>
                                                </CheckButton>
                                                <CheckButton name="MetaKB_ShowUpdatesCheckButton"       inherits="MetaMap_CheckButtonTemplate">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT">
                                                                        <Offset><AbsDimension   x="40" y="-170"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_SHOW_UPDATES);
                                                                </OnLoad>
                                                                <OnEnter>
                                                                        MetaMap_HelpOnEnter(METAKB_SHOW_UPDATES,        METAKB_SHOW_UPDATES_HELP)
                                                                </OnEnter>
                                                                <OnClick>
                                                                        MetaKB_ToggleShowUpdates();
                                                                </OnClick>
                                                        </Scripts>
                                                </CheckButton>
                                <CheckButton name="MetaKB_AutoTrackingCheckButton" inherits="MetaMap_CheckButtonTemplate">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension   x="260" y="-50" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_AUTO_TRACK);
                                                </OnLoad>
                                                <OnEnter>
                                                        MetaMap_HelpOnEnter(METAKB_AUTO_TRACK, METAKB_AUTO_TRACK_HELP);
                                                </OnEnter>
                                                <OnClick>
                                                        MetaKB_ToggleAutoTrack();
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_UseKBCheckButton"     inherits="MetaMap_CheckButtonTemplate">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension   x="260" y="-80" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_USE_KB);
                                                </OnLoad>
                                                <OnEnter>
                                                        MetaMap_HelpOnEnter(METAKB_USE_KB, METAKB_USE_KB_HELP);
                                                </OnEnter>
                                                <OnClick>
                                                        MetaKB_ToggleDbase();
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_SetTargetNoteCheckButton"     inherits="MetaMap_CheckButtonTemplate">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension   x="260" y="-110" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_TARGET_NOTE);
                                                </OnLoad>
                                                <OnEnter>
                                                        MetaMap_HelpOnEnter(METAKB_TARGET_NOTE, METAKB_TARGET_NOTE_HELP);
                                                </OnEnter>
                                                <OnClick>
                                                        MetaKB_ToggleSetNote();
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_EmbedCheckButton"     inherits="MetaMap_CheckButtonTemplate">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension   x="260" y="-140" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("     "..METAKB_EMBED_KB);
                                                </OnLoad>
                                                <OnEnter>
                                                        MetaMap_HelpOnEnter(METAKB_EMBED_KB, METAKB_EMBED_KB_HELP);
                                                </OnEnter>
                                                <OnClick>
                                                        MetaKB_DisplayFrame:GetParent():Hide();
                                                        MetaKBOptions.EmbedKB = not MetaKBOptions.EmbedKB;
                                                        for i=1, 35,1 do
                                                                getglobal("MetaKB_ScrollFrameButton"..i):Hide();
                                                        end
                                                        MetaKB_InitFrame();
                                                        MetaKB_VarsLoaded = false;
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_RangeCheck1" inherits="MetaMap_CheckButtonTemplate">
                                        <Size><AbsDimension     x="20" y="20"/></Size>
                                        <Anchors>
                                                <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="40" y="55"   /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("5 yards");
                                                </OnLoad>
                                                <OnClick>
                                                        MetaKB_ToggleSetRange(1);
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_RangeCheck2" inherits="MetaMap_CheckButtonTemplate">
                                        <Size><AbsDimension     x="20" y="20"/></Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="MetaKB_RangeCheck1">
                                                        <Offset><AbsDimension   x="50" y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("10   yards");
                                                </OnLoad>
                                                <OnClick>
                                                        MetaKB_ToggleSetRange(2);
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_RangeCheck3" inherits="MetaMap_CheckButtonTemplate">
                                        <Size><AbsDimension     x="20" y="20"/></Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="MetaKB_RangeCheck2">
                                                        <Offset><AbsDimension   x="60" y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("18   yards");
                                                </OnLoad>
                                                <OnClick>
                                                        MetaKB_ToggleSetRange(3);
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_RangeCheck4" inherits="MetaMap_CheckButtonTemplate">
                                        <Size><AbsDimension     x="20" y="20"/></Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="MetaKB_RangeCheck3">
                                                        <Offset><AbsDimension   x="60" y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("28   yards");
                                                </OnLoad>
                                                <OnClick>
                                                        MetaKB_ToggleSetRange(4);
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="MetaKB_RangeCheck5" inherits="MetaMap_CheckButtonTemplate">
                                        <Size><AbsDimension     x="20" y="20"/></Size>
                                        <Anchors>
                                                <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT"   relativeTo="MetaKB_RangeCheck4">
                                                        <Offset><AbsDimension   x="70" y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        getglobal(this:GetName().."Text"):SetText("Infinite");
                                                </OnLoad>
                                                <OnClick>
                                                        MetaKB_ToggleSetRange(5);
                                                </OnClick>
                                        </Scripts>
                                </CheckButton>
                        </Frames>
                <Scripts>
                        <OnLoad>
                                this:SetAllPoints("MetaFWM_HoldingFrame");
                        </OnLoad>
                        <OnShow>
                                MetaKB_HoldingFrameInfo:Hide();
                                MetaKB_HoldingFrameLoad:Hide();
                        </OnShow>
                </Scripts>
                </Frame>

                <Frame name="MetaKB_OuterFrame" toplevel="true" hidden="true" parent="UIParent" frameStrata="FULLSCREEN">
                        <Size><AbsDimension     x="725" y="380"/></Size>
                        <Anchors>
                                <Anchor point="CENTER"/>
                        </Anchors>
                        <Backdrop       edgeFile="Interface\DialogFrame\UI-DialogBox-Border"    tile="true">
                                <BackgroundInsets>
                                        <AbsInset       left="0" right="0" top="0" bottom="0"/>
                                </BackgroundInsets>
                                <TileSize>
                                        <AbsValue       val="32"/>
                                </TileSize>
                                <EdgeSize>
                                        <AbsValue       val="32"/>
                                </EdgeSize>
                        </Backdrop>
                        <Frames>
                                <Button name="MetaKB_HeaderBackground" enableMouse="false" toplevel="true">
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset><AbsDimension   x="0"    y="-6" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Layers>
                                                <Layer level="BACKGROUND">
                                                        <Texture name="$parentMiddle"   file="Interface\Buttons\UI-Panel-Button-Up" alphaMode="ADD"     virtual="true">
                                                                <Size>
                                                                        <AbsDimension   x="12" y="22"/>
                                                                </Size>
                                                                <TexCoords left="0.09375"       right="0.53125" top="0"  bottom="0.6875"/>
                                                        </Texture>
                                                </Layer>
                                        </Layers>
                                        <Scripts>
                                                <OnShow>
                                                        this:SetHeight(MetaKB_HeaderPanel:GetHeight());
                                                        this:SetWidth(MetaKB_HeaderPanel:GetWidth());
                                                </OnShow>
                                        </Scripts>
                                </Button>
                                <Frame name="MetaKB_DisplayFrameTitle">
                                        <Size><AbsDimension     x="320" y="48"/></Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset><AbsDimension   x="0"    y="30"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Layers>
                                                <Layer level="ARTWORK">
                                                        <Texture name="MetaKB_DisplayFrameTitleBackgroundTexture" file="Interface\ItemTextFrame\ItemText-Stone-BotLeft">
                                                        <TexCoords left="0"      right="1"       top="0"  bottom="0.16"/>
                                                        <Gradient       orientation="HORIZONTAL">
                                                                <MinColor       r="1"   g="0"    b="0"    />
                                                                <MaxColor       r="1"   g="0"    b="0"    />
                                                        </Gradient>
                                                        <Size><AbsDimension     x="285" y="20"/></Size>
                                                                <Anchors>
                                                                        <Anchor point="TOP">
                                                                                <Offset><AbsDimension   x="0"    y="-12"/></Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                        </Texture>
                                                </Layer>
                                                <Layer level="OVERLAY">
                                                        <Texture name="MetaKB_DisplayFrameTitleTexture" file="Interface\Glues\LoadingBar\Loading-BarBorder">
                                                                <Size><AbsDimension     x="320" y="48"/></Size>
                                                        </Texture>
                                                        <FontString     inherits="GameFontNormal"       text="METAKB_MAIN_HEADER">
                                                                <Anchors>
                                                                        <Anchor point="TOP"     relativeTo="MetaKB_DisplayFrameTitleTexture">
                                                                                <Offset><AbsDimension   x="0"    y="-17"/></Offset>
                                                                        </Anchor>
                                                                </Anchors>
                                                        </FontString>
                                                </Layer>
                                        </Layers>
                                </Frame>
                                <Frame name="MetaKB_Divider" enableMouse="false">
                                        <Size><AbsDimension     x="320" y="50"/></Size>
                                        <Backdrop       edgeFile="Interface\DialogFrame\UI-DialogBox-Border"    tile="true"></Backdrop>
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset><AbsDimension   x="0"    y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        this:SetWidth(this:GetParent():GetWidth());
                                                        this:SetHeight(50);
                                                        this:SetFrameLevel(this:GetParent():GetFrameLevel()+1);
                                                </OnLoad>
                                        </Scripts>
                                </Frame>
                        </Frames>
                        <Scripts>
                                <OnLoad>
                                        table.insert(UISpecialFrames, "MetaKB_OuterFrame")
                                </OnLoad>
                                <OnHide>
                                        MetaKB_DisplayFrame:Hide();
                                </OnHide>
                                <OnShow>
                                        MetaKB_DisplayFrame:Show();
                                </OnShow>
                        </Scripts>
                </Frame>

                <Frame name="MetaKB_DisplayFrame" parent="MetaMapContainerFrame" hidden="true" enableMouse="true">
                        <Size><AbsDimension     x="725" y="380"/></Size>
                        <Backdrop       bgFile="Interface\DialogFrame\UI-DialogBox-Background"  tile="true">
                                <BackgroundInsets>
                                        <AbsInset       left="0" right="0" top="0" bottom="0"/>
                                </BackgroundInsets>
                                <TileSize>
                                        <AbsValue       val="32"/>
                                </TileSize>
                                <EdgeSize>
                                        <AbsValue       val="32"/>
                                </EdgeSize>
                        </Backdrop>
                        <Anchors>
                                <Anchor point="CENTER"/>
                        </Anchors>
                        <Scripts>
                                <OnShow>
                                        if(not MetaKB_VarsLoaded) then
                                                MetaKB_InitFrame();
                                                MetaKB_VarsLoaded = true;
                                        end
                                        MetaKB_ShowAllZones = false;
                                        MetaKB_Search();
                                </OnShow>
                                <OnHide>
                                        MetaKB_ZoneSelectButton:SetText(METAKB_SHOW_ALLZONES);
                                </OnHide>
                        </Scripts>
                        <Frames>
                                <Frame name="MetaKB_HeaderPanel">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset><AbsDimension   x="0"    y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Frames>
                                                <Button name="MetaKB_Header1"   inherits="MetaKB_HeaderTemplate" text="METAKB_HEADER_NAME">
                                                        <Anchors>
                                                                <Anchor point="BOTTOMLEFT">
                                                                        <Offset>
                                                                                <AbsDimension   x="0" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        this.MetaMap_sortDone   =       true;
                                                                        this.MetaMap_sortType   =       METAKB_SORTBY_NAME;
                                                                </OnLoad>
                                                                <OnShow>
                                                                        this:SetHeight(MetaKB_HeaderPanel:GetHeight());
                                                                </OnShow>
                                                        </Scripts>
                                                </Button>
                                                <Button name="MetaKB_Header2"   inherits="MetaKB_HeaderTemplate" text="METAKB_HEADER_DESC">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="MetaKB_Header1" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension   x="-2" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        this.MetaMap_sortDone   =       true;
                                                                        this.MetaMap_sortType   =       METAKB_SORTBY_DESC;
                                                                </OnLoad>
                                                                <OnShow>
                                                                        this:SetHeight(MetaKB_HeaderPanel:GetHeight());
                                                                </OnShow>
                                                        </Scripts>
                                                </Button>
                                                <Button name="MetaKB_Header3"   inherits="MetaKB_HeaderTemplate" text="METAKB_HEADER_LEVEL">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="MetaKB_Header2" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension   x="-2" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        this.MetaMap_sortDone   =       true;
                                                                        this.MetaMap_sortType   =       METAKB_SORTBY_LEVEL;
                                                                </OnLoad>
                                                                <OnShow>
                                                                        this:SetHeight(MetaKB_HeaderPanel:GetHeight());
                                                                </OnShow>
                                                        </Scripts>
                                                </Button>
                                                <Button name="MetaKB_Header4"   inherits="MetaKB_HeaderTemplate" text="METAKB_HEADER_LOCATION">
                                                        <Anchors>
                                                                <Anchor point="LEFT" relativeTo="MetaKB_Header3" relativePoint="RIGHT">
                                                                        <Offset>
                                                                                <AbsDimension   x="-2" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        this.MetaMap_sortDone   =       true;
                                                                        this.MetaMap_sortType   =       METAKB_SORTBY_LOCATION;
                                                                </OnLoad>
                                                                <OnShow>
                                                                        this:SetHeight(MetaKB_HeaderPanel:GetHeight());
                                                                </OnShow>
                                                        </Scripts>
                                                </Button>
                                        </Frames>
                                </Frame>
                                <Frame name="MetaKB_FooterPanel">
                                        <Anchors>
                                                <Anchor point="BOTTOM">
                                                        <Offset><AbsDimension   x="0"    y="0" /></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Frames>
                                                <EditBox name="MetaKB_SearchEditBox" letters="25"       historyLines="0" autoFocus="false" ignoreArrows="true">
                                                        <Size><AbsDimension     x="110" y="20"/></Size>
                                                        <Anchors>
                                                                <Anchor point="LEFT">
                                                                        <Offset><AbsDimension   x="75"  y="0"/></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnLoad>
                                                                        this:SetTextColor(0,1,0)
                                                                </OnLoad>
                                                                <OnEscapePressed>
                                                                         this:ClearFocus();
                                                                </OnEscapePressed>
                                                                <OnEnterPressed>
                                                                        if(not MetaMapOptions.Dsearch) then
                                                                                MetaKB_Search(this:GetText());
                                                                        end
                                                                </OnEnterPressed>
                                                                <OnTextChanged>
                                                                        if(MetaMapOptions.Dsearch) then
                                                                                MetaKB_Search(this:GetText());
                                                                        end
                                                                </OnTextChanged>
                                                        </Scripts>
                                                        <Layers>
                                                                <Layer level="BACKGROUND">
                                                                        <Texture name="$parentLeft"     file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                                                <Size><AbsDimension     x="12" y="29"/></Size>
                                                                                <Anchors>
                                                                                        <Anchor point="TOPLEFT">
                                                                                                <Offset><AbsDimension   x="-11" y="2"/></Offset>
                                                                                        </Anchor>
                                                                                </Anchors>
                                                                                <TexCoords left="0"      right="0.09375" top="0"  bottom="1.0"/>
                                                                        </Texture>
                                                                        <Texture name="$parentMiddle"   file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                                                <Size><AbsDimension     x="100" y="29"/></Size>
                                                                                <Anchors>
                                                                                        <Anchor point="LEFT" relativeTo="$parentLeft"   relativePoint="RIGHT"/>
                                                                                </Anchors>
                                                                                <TexCoords left="0.09375"       right="0.90625" top="0"  bottom="1.0"/>
                                                                        </Texture>
                                                                        <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                                                                                <Size><AbsDimension     x="12" y="29"/></Size>
                                                                                <Anchors>
                                                                                        <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                                                                </Anchors>
                                                                                <TexCoords left="0.90625"       right="1.0"     top="0"  bottom="1.0"/>
                                                                        </Texture>
                                                                </Layer>
                                                                <Layer level="ARTWORK">
                                                                        <FontString     name="MetaKB_SearchFontString" inherits="GameFontNormal" text="METAKB_SEARCH_BOX">
                                                                                <Anchors>
                                                                                        <Anchor point="RIGHT"   relativeTo="$parentLeft">
                                                                                                <Offset><AbsDimension   x="-20" y="2"/></Offset>
                                                                                        </Anchor>
                                                                                </Anchors>
                                                                        </FontString>
                                                                        <FontString     name="MetaKB_ResultFontString" inherits="GameFontNormal" text="">
                                                                                <Anchors>
                                                                                        <Anchor point="LEFT"    relativeTo="$parentRight">
                                                                                                <Offset><AbsDimension   x="40"  y="2"/></Offset>
                                                                                        </Anchor>
                                                                                </Anchors>
                                                                        </FontString>
                                                                </Layer>
                                                        </Layers>
                                                <FontString     inherits="ChatFontNormal"/>
                                        </EditBox>
                                        <Button name="MetaKB_ZoneSelectButton" inherits="UIPanelButtonTemplate2" text="METAKB_SHOW_ALLZONES">
                                                <Size><AbsDimension     x="130" y="24"/></Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT">
                                                                        <Offset><AbsDimension   x="-130"        y="0" /></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnClick>
                                                                        MetaKB_ToggleAllZones()
                                                                </OnClick>
                                                        </Scripts>
                                                </Button>
                                        <Button name="MetaKB_CloseMainFrameButton" inherits="UIPanelButtonTemplate2" hidden="true" text="METAMAP_CLOSE_BUTTON">
                                                <Size><AbsDimension     x="80" y="24"/></Size>
                                                        <Anchors>
                                                                <Anchor point="RIGHT">
                                                                        <Offset><AbsDimension   x="-30" y="0" /></Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                        <Scripts>
                                                                <OnClick>
                                                                        MetaKB_ToggleFrame();
                                                                </OnClick>
                                                        </Scripts>
                                                </Button>
                                        </Frames>
                                </Frame>
                                <ScrollFrame name="MetaKB_ScrollFrame" inherits="FauxScrollFrameTemplate">
                                        <Size>
                                                <AbsDimension   x="692" y="332"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="MetaKB_HeaderPanel">
                                                        <Offset><AbsDimension   x="0"    y="0"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnShow>
                                                        this:SetAlpha(255)
                                                </OnShow>
                                                <OnVerticalScroll>
                                                        FauxScrollFrame_OnVerticalScroll(METAKB_SCROLL_FRAME_BUTTON_HEIGHT,     MetaKB_UpdateScrollFrame)
                                                </OnVerticalScroll>
                                        </Scripts>
                                        <FontString     inherits="MetaMap_FontStringTemplate"   justifyH="LEFT"/>
                                </ScrollFrame>
                                <Button name="MetaKB_ScrollFrameButton1" inherits="MetaKB_ScrollFrameButtonTemplate" id="1"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrame">
                                                        <Offset><AbsDimension   x="10" y="-3"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton2" inherits="MetaKB_ScrollFrameButtonTemplate" id="2"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton1" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton3" inherits="MetaKB_ScrollFrameButtonTemplate" id="3"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton2" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton4" inherits="MetaKB_ScrollFrameButtonTemplate" id="4"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton3" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton5" inherits="MetaKB_ScrollFrameButtonTemplate" id="5"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton4" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton6" inherits="MetaKB_ScrollFrameButtonTemplate" id="6"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton5" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton7" inherits="MetaKB_ScrollFrameButtonTemplate" id="7"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton6" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton8" inherits="MetaKB_ScrollFrameButtonTemplate" id="8"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton7" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton9" inherits="MetaKB_ScrollFrameButtonTemplate" id="9"     hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton8" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton10"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="10" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton9" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton11"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="11" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton10" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton12"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="12" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton11" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton13"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="13" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton12" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton14"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="14" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton13" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton15"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="15" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton14" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton16"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="16" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton15" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton17"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="17" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton16" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton18"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="18" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton17" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton19"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="19" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton18" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton20"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="20" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton19" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton21"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="21" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton20" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton22"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="22" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton21" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton23"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="23" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton22" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton24"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="24" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton23" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton25"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="25" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton24" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton26"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="26" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton25" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton27"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="27" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton26" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton28"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="28" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton27" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton29"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="29" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton28" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton30"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="30" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton29" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton31"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="31" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton30" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton32"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="32" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton31" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton33"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="33" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton32" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton34"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="34" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton33" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                                <Button name="MetaKB_ScrollFrameButton35"       inherits="MetaKB_ScrollFrameButtonTemplate"     id="35" hidden="true">
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="MetaKB_ScrollFrameButton34" relativePoint="BOTTOMLEFT">
                                                        <Offset><AbsDimension   x="0"    y="1"/></Offset>
                                                </Anchor>
                                        </Anchors>
                                </Button>
                        </Frames>
                </Frame>
 
        <Frame name="MetaKBMenu" enableMouse="true" hidden="true" toplevel="true" parent="UIParent" frameStrata="FULLSCREEN">
                <Size>
                        <AbsDimension   x="160" y="170"/>
                </Size>
                <Backdrop       bgFile="Interface\AddOns\MetaMap\Images\BGTexture" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
                        <BackgroundInsets>
                                <AbsInset       left="11"       right="12" top="12"     bottom="11"/>
                        </BackgroundInsets>
                        <TileSize>
                                <AbsValue       val="32"/>
                        </TileSize>
                        <EdgeSize>
                                <AbsValue       val="32"/>
                        </EdgeSize>
                </Backdrop>
                <Frames>
                        <Button name="MetaKBMenu_Option1" inherits="MetaKBMenu_ButtonTemplate" id="1" text="METAKB_QUICK_MENU_1">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension   x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option2" inherits="MetaKBMenu_ButtonTemplate" id="2" text="METAKB_QUICK_MENU_2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option1" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option3" inherits="MetaKBMenu_ButtonTemplate" id="3" text="METAKB_QUICK_MENU_3">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option2" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option4" inherits="MetaKBMenu_ButtonTemplate" id="4" text="METAKB_QUICK_MENU_4">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option3" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option5" inherits="MetaKBMenu_ButtonTemplate" id="5" text="METAKB_QUICK_MENU_5">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option4" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option6" inherits="MetaKBMenu_ButtonTemplate" id="6" text="METAKB_QUICK_MENU_6">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option5" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option7" inherits="MetaKBMenu_ButtonTemplate" id="7" text="METAKB_QUICK_MENU_7">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option6" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="MetaKBMenu_Option8" inherits="MetaKBMenu_ButtonTemplate" id="8" text="METAKB_QUICK_MENU_8">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="MetaKBMenu_Option7" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                </Frames>
                <Scripts>
                        <OnShow>
                                PlaySound("UChatScrollButton");
                        </OnShow>
                        <OnUpdate>
                                if (not MouseIsOver(this)) then
                                        this:Hide();
                                end
                        </OnUpdate>
                </Scripts>              
        </Frame>
</Ui>