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="MetaMapFWM.lua"/>

        <Frame name="MetaFWM_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>
                                this:RegisterEvent("ADDON_LOADED");
                        </OnLoad>
                        <OnEvent>
                                MetaFWM_OnEvent(event);
                        </OnEvent>
                </Scripts>
        </Frame>

        <Frame name="MetaMapFWM_Dialog" parent="MetaFWM_HoldingFrame">
                <Size><AbsDimension     x="480" y="280" /></Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Frames>
                        <CheckButton name="MetaMapFWM_persistCheckButton" inherits="MetaMap_CheckButtonTemplate">
                                <Size><AbsDimension     x="20" y="20"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset><AbsDimension   x="40" y="-45"  /></Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(METAMAPFWM_RETAIN);
                                        </OnLoad>
                                        <OnClick>
                                                MetaMapOptions.FWMretain = not MetaMapOptions.FWMretain;
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="MetaMapFWM_colorCheckButton" inherits="MetaMap_CheckButtonTemplate">
                                <Size><AbsDimension     x="20" y="20"/></Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset><AbsDimension   x="40" y="-75" /></Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText(METAMAPFWM_USECOLOR);
                                        </OnLoad>
                                        <OnClick>
                                                FWM_Options.FWMcolor = not FWM_Options.FWMcolor;
                                                WorldMapFrame_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <Button name="MetaMapFWM_SetcolorButton" inherits="UIPanelButtonTemplate2" text="METAMAPFWM_SETCOLOR">
                                 <Size><AbsDimension x="100" y="24"/></Size>
                                 <Anchors>
                                         <Anchor point="TOPLEFT">
                                                 <Offset><AbsDimension x="230" y="-75"  /></Offset>
                                         </Anchor>
                                 </Anchors>
                                 <Scripts>
                                        <OnClick>
                                                MetaMapFWM_Initcolor();
                                        </OnClick>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:SetAllPoints("MetaFWM_HoldingFrame");
                        </OnLoad>
                        <OnShow>
                                MetaFWM_HoldingFrameInfo:Hide();
                                MetaFWM_HoldingFrameLoad:Hide();
                        </OnShow>
                </Scripts>
        </Frame>
</Ui>