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/
                        C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">

  <Script file="LazyRogueMinimap.lua"/>

  <Frame name="LazyRogueMinimapFrame" parent="Minimap" enableMouse="false" frameStrata="MEDIUM" hidden="true">
    <Size>
      <AbsDimension x="33" y="33"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER" relativeTo="Minimap" relativePoint="CENTER"/>
    </Anchors>
    <Frames>
      <Button name="LazyRogueMinimapButton">
        <Size>
          <AbsDimension x="33" y="33"/>
        </Size>
        <Anchors>
          <Anchor point="CENTER"/>
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <Texture name="LazyRogueMinimapIcon" file="Interface\AddOns\LazyRogue\img\lr">
              <Size>
                <AbsDimension x="18" y="18"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="7" y="-6"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </Texture>
          </Layer>
          <Layer level="OVERLAY">
            <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
              <Size>
                <AbsDimension x="52" y="52"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT"/>
              </Anchors>
            </Texture>
          </Layer>
        </Layers>
        <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
        <Scripts>
          <OnLoad>
            lrmm.OnLoad()
            this:RegisterForDrag("RightButton")
            this.dragme = false
          </OnLoad>
          <OnDragStart> 
            this.dragme = true
          </OnDragStart> 
          <OnDragStop>
            this.dragme = false
          </OnDragStop>
          <OnUpdate>
            if (this.dragme == true) then
               lrmm.Button_BeingDragged()
            end
          </OnUpdate>
          <OnEnter>
            lrmm.OnEnter()
          </OnEnter>
          <OnLeave>
            GameTooltip:Hide()
          </OnLeave>
          <OnClick>
            lrmm.OnClick(arg1)
          </OnClick>
          <OnEvent>
            lrmm.OnEvent()
          </OnEvent>
        </Scripts>
      </Button>
    </Frames>
  </Frame>

  <Frame name="LazyRogueMinimapMenu" inherits="UIDropDownMenuTemplate" id="1" hidden="false">
    <Size>
      <AbsDimension x="0" y="0"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="LazyRogueMinimapButton" relativePoint="CENTER">
        <Offset>
          <AbsDimension x="300" y="0"/>
        </Offset>
      </Anchor>
    </Anchors>
    <Scripts>
      <OnLoad>
        this:SetFrameLevel(0)
        UIDropDownMenu_SetWidth(180)
      </OnLoad>
      <OnShow>
        UIDropDownMenu_Initialize(this, lrmm.Menu_Initialize, "MENU")
      </OnShow>
    </Scripts>
  </Frame>

</Ui>