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">
  <!-- Multiple Languages -->
  <Script file="Localization.lua" />

  <!-- Main Scripting File -->
  <Script file="Kalented.lua" />

  <!-- Kalented Expand Frame -->
  <Button name="Kalented_Button_Expand" toplevel="true" parent="TalentFrame">
    <Size>
      <AbsDimension x="16" y="256" />
    </Size>

    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="TalentFrame" relativePoint="TOPRIGHT">
        <offset>
          <AbsDimension x="-33" y="-38" />
        </offset>
      </Anchor>
    </Anchors>

    <Layers>
      <Layer level="ARTWORK">
        <Texture name="Kalented_Texture" />
      </Layer>
    </Layers>

    <Scripts>
      <OnClick>
        if ( Kalented_Frame:IsVisible() ) then
          this:SetPoint("TOPLEFT", this:GetParent():GetName(), "TOPRIGHT", -33, -38);
          HideUIPanel(Kalented_Frame);
        else
          this:SetPoint("TOPLEFT", this:GetParent():GetName(), "TOPRIGHT", 284, -38);
          ShowUIPanel(Kalented_Frame);
        end
      </OnClick>
    </Scripts>
    
    <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" />
  </Button>

  <!-- Kalented Frame -->
  <Frame name="Kalented_Frame" enableMouse="true" toplevel="true" parent="TalentFrame" hidden="true">
    <Size>
      <AbsDimension x="318" y="355" />
    </Size>

    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="TalentFrame" relativePoint="TOPRIGHT">
        <Offset>
          <AbsDimension x="-33" y="-35" />
        </Offset>
      </Anchor>
    </Anchors>
    
    <Layers>
      <Layer level="BACKGROUND">
        <Texture file="Interface\AddOns\Kalented\images\talented">
          <TexCoords left="0" right="0.62109375" top="0" bottom="0.693359375" />
        </Texture>
      </Layer>

      <Layer level="ARTWORK">
        <Texture name="Kalented_Background_TopLeft">
          <Size>
            <AbsDimension x="245" y="194" />
          </Size>

          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="-58" />
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>

        <Texture name="Kalented_Background_TopRight">
          <Size>
            <AbsDimension x="64" y="194" />
          </Size>

          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="Kalented_Background_TopLeft" relativePoint="TOPRIGHT">
              <Offset>
                <AbsDimension x="0" y="0" />
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>

        <Texture name="Kalented_Background_BottomLeft">
          <Size>
            <AbsDimension x="256" y="128" />
          </Size>

          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="Kalented_Background_TopLeft" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="0" y="0" />
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>

        <Texture name="Kalented_Background_BottomRight">
          <Size>
            <AbsDimension x="64" y="128" />
          </Size>

          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="Kalented_Background_TopLeft" relativePoint="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="0" y="0" />
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
      </Layer>

      <Layer level="OVERLAY">
        <FontString inherits="GameFontNormal" text="KALENTED_TEXT_TITLE">
          <Anchors>
            <Anchor point="TOP">
              <Offset>
                <AbsDimension x="0" y="-4" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString name="Kalented_Text_Spent" inherits="GameFontNormalSmall" text="KALENTED_TEXT_SPENT">
          <Anchors>
            <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="10" y="12" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString name="Kalented_Text_Points" inherits="GameFontNormalSmall" text="KALENTED_TEXT_POINTS">
          <Anchors>
            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="295" y="12" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>

    <Frames>
      <button name="Kalented_Button_Reset" inherits="UIPanelButtonTemplate" text="KALENTED_TEXT_RESET">
        <Size>
          <AbsDimension x="100" y="22" />
        </Size>

        <Anchors>
          <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
            <Offset>
              <AbsDimension x="-8" y="-28" />
            </Offset>
          </Anchor>
        </Anchors>
        
        <Scripts>
          <OnClick>
            Kalented_Reset_OnClick(false);
          </OnClick>
        </Scripts>
      </button>

      <button name="Kalented_Button_Transfer" inherits="UIPanelButtonTemplate" text="KALENTED_TEXT_TRANSFER">
        <Size>
          <AbsDimension x="100" y="22" />
        </Size>

        <Anchors>
          <Anchor point="RIGHT" relativeTo="Kalented_Button_Reset" relativePoint="LEFT">
            <Offset>
              <AbsDimension x="0" y="0" />
            </Offset>
          </Anchor>
        </Anchors>
        
        <Scripts>
          <OnClick>
            Kalented_Reset_OnClick(true);
          </OnClick>
        </Scripts>
      </button>

      <ScrollFrame name="Kalented_Scroll_Frame" inherits="UIPanelScrollFrameTemplate">
        <Size>
          <AbsDimension x="266" y="267" />
        </Size>

        <Anchors>
          <Anchor point="TOPRIGHT">
            <Offset>
              <AbsDimension x="-33" y="-60" />
            </Offset>
          </Anchor>
        </Anchors>

        <Layers>
          <Layer level="ARTWORK">
            <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
              <Size>
                <AbsDimension x="31" y="256" />
              </Size>

              <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
                  <Offset>
                    <AbsDimension x="-1" y="5" />
                  </Offset>
                </Anchor>
              </Anchors>

              <TexCoords left="0" right="0.484375" top="0" bottom="1.0" />
            </Texture>

            <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
              <Size>
                <AbsDimension x="31" y="106" />
              </Size>

              <Anchors>
                <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
                  <Offset>
                    <AbsDimension x="-1" y="-2" />
                  </Offset>
                </Anchor>
              </Anchors>

              <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625" />
            </Texture>
          </Layer>
        </Layers>

        <ScrollChild>
          <Frame name="Kalented_Scroll_ChildFrame">
            <Size>
              <AbsDimension x="320" y="50" />
            </Size>

            <Anchors>
              <anchor point="TOPLEFT" />
            </Anchors>

            <Layers>
              <Layer level="BACKGROUND">
                <Texture name="Kalented_Scroll_Branch1" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch2" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch3" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch4" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch5" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch6" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch7" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch8" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch9" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch10" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch11" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch12" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch13" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch14" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch15" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch16" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch17" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch18" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch19" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch20" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch21" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch22" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch23" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch24" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch25" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch26" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch27" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch28" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch29" inherits="TalentBranchTemplate" />
                <Texture name="Kalented_Scroll_Branch30" inherits="TalentBranchTemplate" />
              </Layer>
            </Layers>

            <Frames>
              <Button name="Kalented_Scroll_Talent1" inherits="Kalented_Template_Button" id="1" />
              <Button name="Kalented_Scroll_Talent2" inherits="Kalented_Template_Button" id="2" />
              <Button name="Kalented_Scroll_Talent3" inherits="Kalented_Template_Button" id="3" />
              <Button name="Kalented_Scroll_Talent4" inherits="Kalented_Template_Button" id="4" />
              <Button name="Kalented_Scroll_Talent5" inherits="Kalented_Template_Button" id="5" />
              <Button name="Kalented_Scroll_Talent6" inherits="Kalented_Template_Button" id="6" />
              <Button name="Kalented_Scroll_Talent7" inherits="Kalented_Template_Button" id="7" />
              <Button name="Kalented_Scroll_Talent8" inherits="Kalented_Template_Button" id="8" />
              <Button name="Kalented_Scroll_Talent9" inherits="Kalented_Template_Button" id="9" />
              <Button name="Kalented_Scroll_Talent10" inherits="Kalented_Template_Button" id="10" />
              <Button name="Kalented_Scroll_Talent11" inherits="Kalented_Template_Button" id="11" />
              <Button name="Kalented_Scroll_Talent12" inherits="Kalented_Template_Button" id="12" />
              <Button name="Kalented_Scroll_Talent13" inherits="Kalented_Template_Button" id="13" />
              <Button name="Kalented_Scroll_Talent14" inherits="Kalented_Template_Button" id="14" />
              <Button name="Kalented_Scroll_Talent15" inherits="Kalented_Template_Button" id="15" />
              <Button name="Kalented_Scroll_Talent16" inherits="Kalented_Template_Button" id="16" />
              <Button name="Kalented_Scroll_Talent17" inherits="Kalented_Template_Button" id="17" />
              <Button name="Kalented_Scroll_Talent18" inherits="Kalented_Template_Button" id="18" />
              <Button name="Kalented_Scroll_Talent19" inherits="Kalented_Template_Button" id="19" />
              <Button name="Kalented_Scroll_Talent20" inherits="Kalented_Template_Button" id="20" />

              <Frame name="Kalented_Scroll_ArrowFrame" setAllPoints="true">
                <Layers>
                  <Layer level="OVERLAY">
                    <Texture name="Kalented_Scroll_Arrow1" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow2" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow3" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow4" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow5" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow6" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow7" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow8" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow9" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow10" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow11" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow12" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow13" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow14" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow15" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow16" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow17" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow18" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow19" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow20" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow21" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow22" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow23" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow24" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow25" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow26" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow27" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow28" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow29" inherits="TalentArrowTemplate" />
                    <Texture name="Kalented_Scroll_Arrow30" inherits="TalentArrowTemplate" />
                  </Layer>
                </Layers>
              </Frame>
            </Frames>
          </Frame>
        </ScrollChild>
      </ScrollFrame>
    </Frames>
    
    <Scripts>
      <OnLoad>
        Kalented_OnLoad();
      </OnLoad>

      <OnEvent>
        Kalented_OnEvent(event, arg1);
      </OnEvent>

      <OnShow>
        Kalented_Update();
      </OnShow>

      <OnUnload>
        Kalented_OnUnload();
      </OnUnload>
    </Scripts>
  </Frame>

</ui>

Generated by GNU Enscript 1.6.5.90.