Advertisement
ironmoneyapproves

Accountant addon background fix for WoW 9.0

May 24th, 2021
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.72 KB | None | 0 0
  1. <!--
  2.     Accountant
  3.  
  4. -->
  5. <Ui xmlns="http://www.blizzard.com/wow/ui/"
  6.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7.     xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
  8.     <!-- Item Row Template -->
  9.     <Button name="AccountantTabTemplate"
  10.         inherits="CharacterFrameTabButtonTemplate" virtual="true">
  11.         <Scripts>
  12.             <OnClick>Accountant.Tab_OnClick(self);</OnClick>
  13.         </Scripts>
  14.     </Button>
  15.     <FontString name="AccountantTextTemplate" inherits="GameFontHighlightSmall" virtual="true">
  16.         <Size>
  17.             <AbsDimension x="100" y="10" />
  18.         </Size>
  19.     </FontString>
  20.     <FontString name="AccountantValueTemplate" inherits="GameFontHighlightSmall" virtual="true">
  21.         <Size>
  22.             <AbsDimension x="150" y="10" />
  23.         </Size>
  24.     </FontString>
  25.  
  26.     <Frame name="AccountantRowTemplate" virtual="true">
  27.         <Size>
  28.             <AbsDimension x="400" y="19" />
  29.         </Size>
  30.         <Layers>
  31.             <Layer level="BACKGROUND">
  32.                 <FontString name="$parentTitle" inherits="GameFontNormal" justifyH="LEFT" >
  33.                     <Size>
  34.                         <AbsDimension x="100" y="14" />
  35.                     </Size>
  36.                     <Anchors>
  37.                         <Anchor point="TOPLEFT"
  38.                             relativePoint="TOPLEFT">
  39.                             <Offset>
  40.                                 <AbsDimension x="5" y="-2" />
  41.                             </Offset>
  42.                         </Anchor>
  43.                     </Anchors>
  44.                 </FontString>
  45.                 <FontString name="$parentIn" inherits="GameFontHighlightSmall">
  46.                     <Size>
  47.                         <AbsDimension x="150" y="14" />
  48.                     </Size>
  49.                     <Anchors>
  50.                         <Anchor point="LEFT" relativeTo="$parentTitle"
  51.                             relativePoint="RIGHT">
  52.                             <Offset>
  53.                                 <AbsDimension x="0" y="0" />
  54.                             </Offset>
  55.                         </Anchor>
  56.                     </Anchors>
  57.                 </FontString>
  58.                 <FontString name="$parentOut" inherits="GameFontHighlightSmall">
  59.                     <Size>
  60.                         <AbsDimension x="150" y="14" />
  61.                     </Size>
  62.                     <Anchors>
  63.                         <Anchor point="LEFT" relativeTo="$parentIn"
  64.                             relativePoint="RIGHT">
  65.                             <Offset>
  66.                                 <AbsDimension x="0" y="0" />
  67.                             </Offset>
  68.                         </Anchor>
  69.                     </Anchors>
  70.                 </FontString>
  71.                 <Texture file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
  72.                     <Size>
  73.                         <AbsDimension x="480" y="19" />
  74.                     </Size>
  75.                     <Anchors>
  76.                         <Anchor point="TOPLEFT"
  77.                             relativePoint="TOPLEFT">
  78.                             <Offset>
  79.                                 <AbsDimension x="0" y="0" />
  80.                             </Offset>
  81.                         </Anchor>
  82.                     </Anchors>
  83.                 </Texture>
  84.             </Layer>
  85.         </Layers>
  86.     </Frame>
  87.  
  88.     <!-- Main Window / added inherits & onload -->
  89.     <Frame name="AccountantFrame" toplevel="true" enableMouse="true"
  90.         frameStrata="HIGH" movable="true" parent="UIParent" hidden="true" inherits="BackdropTemplate">
  91.         <Size>
  92.             <AbsDimension x="440" y="539" />
  93.         </Size>
  94.         <Anchors>
  95.             <Anchor point="TOPLEFT">
  96.                 <Offset>
  97.                     <AbsDimension x="400" y="-104" />
  98.                 </Offset>
  99.             </Anchor>
  100.         </Anchors>
  101.        
  102.         <!-- NEW BACKGROUND -->
  103.         <KeyValues>
  104.             <KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" type="global"/>
  105.         </KeyValues>
  106.        
  107.         <!-- ORIGINAL BACKGROUND   
  108.         <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
  109.             edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  110.             <BackgroundInsets>
  111.                 <AbsInset left="11" right="12" top="12" bottom="11" />
  112.             </BackgroundInsets>
  113.             <TileSize>
  114.                 <AbsValue val="32" />
  115.             </TileSize>
  116.             <EdgeSize>
  117.                 <AbsValue val="32" />
  118.             </EdgeSize>
  119.         </Backdrop>
  120.         -->
  121.        
  122.         <Layers>
  123.         <!--
  124.             <Layer level="BACKGROUND">
  125.                 <Texture name="AccountantFramePortrait">
  126.                     <Size>
  127.                         <AbsDimension x="60" y="60" />
  128.                     </Size>
  129.                     <Anchors>
  130.                         <Anchor point="TOPLEFT">
  131.                             <Offset>
  132.                                 <AbsDimension x="7" y="-6" />
  133.                             </Offset>
  134.                         </Anchor>
  135.                     </Anchors>
  136.                 </Texture>
  137.             </Layer>
  138.             -->
  139.             <Layer level="ARTWORK">
  140.                 <!-- Title of the frame -->
  141.                 <FontString name="$parentTitleText" inherits="GameFontHighlight" text="SOME_TITLE">
  142.                     <Size>
  143.                         <AbsDimension x="300" y="14" />
  144.                     </Size>
  145.                     <Anchors>
  146.                         <Anchor point="TOP" relativePoint="TOP">
  147.                             <Offset>
  148.                                 <AbsDimension x="30" y="-16" />
  149.                             </Offset>
  150.                         </Anchor>
  151.                     </Anchors>
  152.                 </FontString>
  153.                 <!-- 3 labels for template rows -->
  154.                 <FontString name="$parentSource" inherits="GameFontHighlight" justifyH = "CENTER">
  155.                     <Size>
  156.                         <AbsDimension x="100" y="14" />
  157.                     </Size>
  158.                     <Anchors>
  159.                         <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
  160.                             <Offset>
  161.                                 <AbsDimension x="24" y="-123" />
  162.                             </Offset>
  163.                         </Anchor>
  164.                     </Anchors>
  165.                 </FontString>
  166.                 <!--  -->
  167.                 <FontString name="$parentIn" inherits="GameFontHighlight" justifyH = "CENTER">
  168.                     <Size>
  169.                         <AbsDimension x="150" y="14" />
  170.                     </Size>
  171.                     <Anchors>
  172.                         <Anchor point="LEFT" relativeTo="$parentSource" relativePoint="RIGHT">
  173.                             <Offset>
  174.                                 <AbsDimension x="0" y="0" />
  175.                             </Offset>
  176.                         </Anchor>
  177.                     </Anchors>
  178.                 </FontString>
  179.                 <!--  -->
  180.                 <FontString name="$parentOut" inherits="GameFontHighlight" justifyH = "CENTER">
  181.                     <Size>
  182.                         <AbsDimension x="150" y="14" />
  183.                     </Size>
  184.                     <Anchors>
  185.                         <Anchor point="LEFT" relativeTo="$parentIn" relativePoint="RIGHT">
  186.                             <Offset>
  187.                                 <AbsDimension x="0" y="0" />
  188.                             </Offset>
  189.                         </Anchor>
  190.                     </Anchors>
  191.                 </FontString>
  192.                 <!-- Revenue -->
  193.                 <FontString name="$parentTotalIn" inherits="AccountantTextTemplate" justifyH = "LEFT">
  194.                     <Anchors>
  195.                         <Anchor point="TOPLEFT"
  196.                         relativeTo="$parent"
  197.                             relativePoint="TOPLEFT">
  198.                             <Offset>
  199.                                 <AbsDimension x="20" y="-65" />
  200.                             </Offset>
  201.                         </Anchor>
  202.                     </Anchors>
  203.                 </FontString>
  204.                 <!--  -->
  205.                 <FontString name="$parentTotalInValue" inherits="AccountantValueTemplate" justifyH = "RIGHT">
  206.                     <Anchors>
  207.                         <Anchor point="LEFT" relativeTo="$parentTotalIn" relativePoint="RIGHT">
  208.                             <Offset>
  209.                                 <AbsDimension x="0" y="0" />
  210.                             </Offset>
  211.                         </Anchor>
  212.                     </Anchors>
  213.                 </FontString>
  214.                 <!-- Expense -->
  215.                 <FontString name="$parentTotalOut" inherits="AccountantTextTemplate" justifyH = "LEFT">
  216.                     <Anchors>
  217.                         <Anchor point="TOP" relativeTo="$parentTotalIn" relativePoint="BOTTOM">
  218.                             <Offset>
  219.                                 <AbsDimension x="0" y="-3" />
  220.                             </Offset>
  221.                         </Anchor>
  222.                     </Anchors>
  223.                 </FontString>
  224.                 <!--  -->
  225.                 <FontString name="$parentTotalOutValue" inherits="AccountantValueTemplate" justifyH = "RIGHT">
  226.                     <Anchors>
  227.                         <Anchor point="LEFT" relativeTo="$parentTotalOut" relativePoint="RIGHT">
  228.                             <Offset>
  229.                                 <AbsDimension x="0" y="0" />
  230.                             </Offset>
  231.                         </Anchor>
  232.                     </Anchors>
  233.                 </FontString>
  234.                 <!-- Net of Revenue - Expense -->
  235.                 <FontString name="$parentTotalFlow" inherits="AccountantTextTemplate" justifyH = "LEFT">
  236.                     <Anchors>
  237.                         <Anchor point="TOP" relativeTo="$parentTotalOut" relativePoint="BOTTOM">
  238.                             <Offset>
  239.                                 <AbsDimension x="0" y="-3" />
  240.                             </Offset>
  241.                         </Anchor>
  242.                     </Anchors>
  243.                 </FontString>
  244.                 <!--  -->
  245.                 <FontString name="$parentTotalFlowValue" inherits="AccountantValueTemplate" justifyH = "RIGHT">
  246.                     <Anchors>
  247.                         <Anchor point="LEFT" relativeTo="$parentTotalFlow" relativePoint="RIGHT">
  248.                             <Offset>
  249.                                 <AbsDimension x="0" y="0" />
  250.                             </Offset>
  251.                         </Anchor>
  252.                     </Anchors>
  253.                 </FontString>
  254.                 <!--  -->
  255.                 <FontString name="$parentMoneyTotal" inherits="AccountantTextTemplate" justifyH = "LEFT">
  256.                     <Anchors>
  257.                         <Anchor point="TOP" relativeTo="$parentTotalFlow" relativePoint="BOTTOM">
  258.                             <Offset>
  259.                                 <AbsDimension x="0" y="-3" />
  260.                             </Offset>
  261.                         </Anchor>
  262.                     </Anchors>
  263.                 </FontString>
  264.                 <FontString name="$parentMoneyTotalValue" inherits="AccountantValueTemplate" justifyH = "RIGHT">
  265.                     <Anchors>
  266.                         <Anchor point="LEFT" relativeTo="$parentMoneyTotal" relativePoint="RIGHT">
  267.                             <Offset>
  268.                                 <AbsDimension x="0" y="0" />
  269.                             </Offset>
  270.                         </Anchor>
  271.                     </Anchors>
  272.                 </FontString>
  273.                 <!-- Week start -->
  274.                 <FontString name="$parentExtra" inherits="GameFontHighlightSmall">
  275.                     <Anchors>
  276.                         <Anchor point="TOP" relativePoint="TOPLEFT">
  277.                             <Offset>
  278.                                 <AbsDimension x="240" y="-39" />
  279.                             </Offset>
  280.                         </Anchor>
  281.                     </Anchors>
  282.                 </FontString>
  283.                 <!--  -->
  284.                 <FontString name="$parentExtraValue" inherits="GameFontNormalSmall">
  285.                     <Anchors>
  286.                         <Anchor point="TOP" relativeTo="$parentExtra"
  287.                             relativePoint="BOTTOM">
  288.                             <Offset>
  289.                                 <AbsDimension x="0" y="0" />
  290.                             </Offset>
  291.                         </Anchor>
  292.                     </Anchors>
  293.                 </FontString>
  294.                 <!-- near bottom of Window -->
  295.                 <FontString name="$parentCacheBox" inherits="GameFontNormalSmall" justifyH="LEFT">
  296.                     <Size>
  297.                         <AbsDimension x="200" y="16"/>
  298.                     </Size>
  299.                     <Anchors>
  300.                         <Anchor point="BOTTOMLEFT" relativeTo="$parent"
  301.                             relativePoint="BOTTOMLEFT">
  302.                             <Offset>
  303.                                 <AbsDimension x="15" y="30"/>
  304.                             </Offset>
  305.                         </Anchor>
  306.                     </Anchors>
  307.                 </FontString>
  308.             </Layer>
  309.         </Layers>
  310.  
  311.         <Frames>
  312.             <Frame name="Accountant_CharDropDown"
  313.                 inherits="UIDropDownMenuTemplate" id="1" hidden="false">
  314.                 <Size>
  315.                     <AbsDimension x="150" y="16"/>
  316.                 </Size>
  317.                 <Anchors>
  318.                     <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
  319.                         <Offset>
  320.                             <AbsDimension x="0" y="-10"/>
  321.                         </Offset>
  322.                     </Anchor>
  323.                 </Anchors>
  324.                 <Scripts>
  325.                     <OnShow>
  326.                         Accountant.CharDropDown_OnShow();
  327.                     </OnShow>
  328.                 </Scripts>
  329.             </Frame>
  330.             <Frame name="AccountantMoneyTotal" >
  331.                 <Anchors>
  332.                     <Anchor point="TOP" relativeTo="Accountant_CharDropDown"
  333.                         relativePoint="BOTTOM">
  334.                         <Offset>
  335.                             <AbsDimension x="10" y="0" />
  336.                         </Offset>
  337.                     </Anchor>
  338.                 </Anchors>
  339.             </Frame>
  340.             <CheckButton name="AccountantFrameAllianceToggleButton"
  341.                 inherits="OptionsCheckButtonTemplate">
  342.                 <Anchors>
  343.                     <Anchor point="TOPRIGHT" relativeTo="$parent"
  344.                         relativePoint="TOPRIGHT">
  345.                         <Offset>
  346.                             <AbsDimension x="-70" y="-70" />
  347.                         </Offset>
  348.                     </Anchor>
  349.                 </Anchors>
  350.                 <Scripts>
  351.                     <OnClick>Accountant.Button_Alliance_Toggle(self);</OnClick>
  352.                 </Scripts>
  353.             </CheckButton>
  354.             <CheckButton name="AccountantFrameHordeToggleButton"
  355.                 inherits="OptionsCheckButtonTemplate">
  356.                 <Anchors>
  357.                     <Anchor point="BOTTOMLEFT" relativeTo="AccountantFrameAllianceToggleButton"
  358.                         relativePoint="TOPLEFT">
  359.                         <Offset>
  360.                             <AbsDimension x="0" y="0" />
  361.                         </Offset>
  362.                     </Anchor>
  363.                 </Anchors>
  364.                 <Scripts>
  365.                     <OnClick>Accountant.Button_Horde_Toggle(self);</OnClick>
  366.                 </Scripts>
  367.             </CheckButton>
  368.             <Frame name="$parentRow1" inherits="AccountantRowTemplate">
  369.                 <Anchors>
  370.                     <Anchor point="TOPLEFT" relativeTo="$parent"
  371.                         relativePoint="TOPLEFT">
  372.                         <Offset>
  373.                             <AbsDimension x="21" y="-141" />
  374.                         </Offset>
  375.                     </Anchor>
  376.                 </Anchors>
  377.             </Frame>
  378.             <Frame name="$parentRow2" inherits="AccountantRowTemplate">
  379.                 <Anchors>
  380.                     <Anchor point="TOPLEFT" relativeTo="$parentRow1"
  381.                         relativePoint="BOTTOMLEFT">
  382.                         <Offset>
  383.                             <AbsDimension x="0" y="-1" />
  384.                         </Offset>
  385.                     </Anchor>
  386.                 </Anchors>
  387.             </Frame>
  388.             <Frame name="$parentRow3" inherits="AccountantRowTemplate">
  389.                 <Anchors>
  390.                     <Anchor point="TOPLEFT" relativeTo="$parentRow2"
  391.                         relativePoint="BOTTOMLEFT">
  392.                         <Offset>
  393.                             <AbsDimension x="0" y="-1" />
  394.                         </Offset>
  395.                     </Anchor>
  396.                 </Anchors>
  397.             </Frame>
  398.             <Frame name="$parentRow4" inherits="AccountantRowTemplate">
  399.                 <Anchors>
  400.                     <Anchor point="TOPLEFT" relativeTo="$parentRow3"
  401.                         relativePoint="BOTTOMLEFT">
  402.                         <Offset>
  403.                             <AbsDimension x="0" y="-1" />
  404.                         </Offset>
  405.                     </Anchor>
  406.                 </Anchors>
  407.             </Frame>
  408.             <Frame name="$parentRow5" inherits="AccountantRowTemplate">
  409.                 <Anchors>
  410.                     <Anchor point="TOPLEFT" relativeTo="$parentRow4"
  411.                         relativePoint="BOTTOMLEFT">
  412.                         <Offset>
  413.                             <AbsDimension x="0" y="-1" />
  414.                         </Offset>
  415.                     </Anchor>
  416.                 </Anchors>
  417.             </Frame>
  418.             <Frame name="$parentRow6" inherits="AccountantRowTemplate">
  419.                 <Anchors>
  420.                     <Anchor point="TOPLEFT" relativeTo="$parentRow5"
  421.                         relativePoint="BOTTOMLEFT">
  422.                         <Offset>
  423.                             <AbsDimension x="0" y="-1" />
  424.                         </Offset>
  425.                     </Anchor>
  426.                 </Anchors>
  427.             </Frame>
  428.             <Frame name="$parentRow7" inherits="AccountantRowTemplate">
  429.                 <Anchors>
  430.                     <Anchor point="TOPLEFT" relativeTo="$parentRow6"
  431.                         relativePoint="BOTTOMLEFT">
  432.                         <Offset>
  433.                             <AbsDimension x="0" y="-1" />
  434.                         </Offset>
  435.                     </Anchor>
  436.                 </Anchors>
  437.             </Frame>
  438.             <Frame name="$parentRow8" inherits="AccountantRowTemplate">
  439.                 <Anchors>
  440.                     <Anchor point="TOPLEFT" relativeTo="$parentRow7"
  441.                         relativePoint="BOTTOMLEFT">
  442.                         <Offset>
  443.                             <AbsDimension x="0" y="-1" />
  444.                         </Offset>
  445.                     </Anchor>
  446.                 </Anchors>
  447.             </Frame>
  448.             <Frame name="$parentRow9" inherits="AccountantRowTemplate">
  449.                 <Anchors>
  450.                     <Anchor point="TOPLEFT" relativeTo="$parentRow8"
  451.                         relativePoint="BOTTOMLEFT">
  452.                         <Offset>
  453.                             <AbsDimension x="0" y="-1" />
  454.                         </Offset>
  455.                     </Anchor>
  456.                 </Anchors>
  457.             </Frame>
  458.             <Frame name="$parentRow10" inherits="AccountantRowTemplate">
  459.                 <Anchors>
  460.                     <Anchor point="TOPLEFT" relativeTo="$parentRow9"
  461.                         relativePoint="BOTTOMLEFT">
  462.                         <Offset>
  463.                             <AbsDimension x="0" y="-1" />
  464.                         </Offset>
  465.                     </Anchor>
  466.                 </Anchors>
  467.             </Frame>
  468.             <Frame name="$parentRow11" inherits="AccountantRowTemplate">
  469.                 <Anchors>
  470.                     <Anchor point="TOPLEFT" relativeTo="$parentRow10"
  471.                         relativePoint="BOTTOMLEFT">
  472.                         <Offset>
  473.                             <AbsDimension x="0" y="-1" />
  474.                         </Offset>
  475.                     </Anchor>
  476.                 </Anchors>
  477.             </Frame>
  478.             <Frame name="$parentRow12" inherits="AccountantRowTemplate">
  479.                 <Anchors>
  480.                     <Anchor point="TOPLEFT" relativeTo="$parentRow11"
  481.                         relativePoint="BOTTOMLEFT">
  482.                         <Offset>
  483.                             <AbsDimension x="0" y="-1" />
  484.                         </Offset>
  485.                     </Anchor>
  486.                 </Anchors>
  487.             </Frame>
  488.             <Frame name="$parentRow13" inherits="AccountantRowTemplate">
  489.                 <Anchors>
  490.                     <Anchor point="TOPLEFT" relativeTo="$parentRow12"
  491.                         relativePoint="BOTTOMLEFT">
  492.                         <Offset>
  493.                             <AbsDimension x="0" y="-1" />
  494.                         </Offset>
  495.                     </Anchor>
  496.                 </Anchors>
  497.             </Frame>
  498.             <Frame name="$parentRow14" inherits="AccountantRowTemplate">
  499.                 <Anchors>
  500.                     <Anchor point="TOPLEFT" relativeTo="$parentRow13"
  501.                         relativePoint="BOTTOMLEFT">
  502.                         <Offset>
  503.                             <AbsDimension x="0" y="-1" />
  504.                         </Offset>
  505.                     </Anchor>
  506.                 </Anchors>
  507.             </Frame>
  508.             <Frame name="$parentRow15" inherits="AccountantRowTemplate">
  509.                 <Anchors>
  510.                     <Anchor point="TOPLEFT" relativeTo="$parentRow14"
  511.                         relativePoint="BOTTOMLEFT">
  512.                         <Offset>
  513.                             <AbsDimension x="0" y="-1" />
  514.                         </Offset>
  515.                     </Anchor>
  516.                 </Anchors>
  517.             </Frame>
  518.  
  519.             <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
  520.                 <Anchors>
  521.                     <Anchor point="TOPRIGHT" relativeTo="$parent"
  522.                         relativePoint="TOPRIGHT">
  523.                         <Offset>
  524.                             <AbsDimension x="-8" y="-8" />
  525.                         </Offset>
  526.                     </Anchor>
  527.                 </Anchors>
  528.             </Button>
  529.             <Button name="$parentTab1" inherits="AccountantTabTemplate" id="1">
  530.                 <Anchors>
  531.                     <Anchor point="BOTTOMLEFT">
  532.                         <Offset>
  533.                             <AbsDimension x="15" y="46" />
  534.                         </Offset>
  535.                     </Anchor>
  536.                 </Anchors>
  537.             </Button>
  538.             <Button name="$parentTab2" inherits="AccountantTabTemplate" id="2">
  539.                 <Anchors>
  540.                     <Anchor point="LEFT" relativeTo="$parentTab1"
  541.                         relativePoint="RIGHT">
  542.                         <Offset>
  543.                             <AbsDimension x="-15" y="0" />
  544.                         </Offset>
  545.                     </Anchor>
  546.                 </Anchors>
  547.             </Button>
  548.             <Button name="$parentTab3" inherits="AccountantTabTemplate" id="3">
  549.                 <Anchors>
  550.                     <Anchor point="LEFT" relativeTo="$parentTab2"
  551.                         relativePoint="RIGHT">
  552.                         <Offset>
  553.                             <AbsDimension x="-15" y="0" />
  554.                         </Offset>
  555.                     </Anchor>
  556.                 </Anchors>
  557.             </Button>
  558.             <Button name="$parentTab4" inherits="AccountantTabTemplate" id="4">
  559.                 <Anchors>
  560.                     <Anchor point="LEFT" relativeTo="$parentTab3"
  561.                         relativePoint="RIGHT">
  562.                         <Offset>
  563.                             <AbsDimension x="-15" y="0" />
  564.                         </Offset>
  565.                     </Anchor>
  566.                 </Anchors>
  567.             </Button>
  568.             <Button name="$parentTab5" inherits="AccountantTabTemplate" id="5">
  569.                 <Anchors>
  570.                     <Anchor point="BOTTOMRIGHT"
  571.                         relativePoint="BOTTOMRIGHT">
  572.                         <Offset>
  573.                             <AbsDimension x="-40" y="46" />
  574.                         </Offset>
  575.                     </Anchor>
  576.                 </Anchors>
  577.             </Button>
  578.             <Frame name="$parentCacheAmount" inherits="MoneyInputFrameTemplate">
  579.                 <Anchors>
  580.                     <Anchor point="TOPLEFT" relativeTo="$parentCacheBox"
  581.                         relativePoint="BOTTOMLEFT">
  582.                         <Offset>
  583.                             <AbsDimension x="0" y="0" />
  584.                         </Offset>
  585.                     </Anchor>
  586.                 </Anchors>
  587.             </Frame>
  588.             <Button name="$parentCacheUpdate" inherits="UIPanelButtonTemplate" >
  589.                 <Size>
  590.                     <AbsDimension x="80" y="22"/>
  591.                 </Size>
  592.                 <Anchors>
  593.                     <Anchor point="LEFT" relativeTo="$parentCacheAmount" relativePoint="RIGHT">
  594.                         <Offset>
  595.                             <AbsDimension x="0" y="0"/>
  596.                         </Offset>
  597.                     </Anchor>
  598.                 </Anchors>
  599.                 <Scripts>
  600.                     <OnClick>Accountant.CacheBoxUpdate();</OnClick>
  601.                 </Scripts>
  602.             </Button>
  603.         </Frames>
  604.         <Scripts>
  605.             <OnLoad inherit="prepend">             
  606.                 -- Make Frame Moveable.
  607.                 tinsert(UISpecialFrames, "AccountantFrame");
  608.                 UIPanelWindows["AccountantFrame"] = { area = "left", pushable = 11 };
  609.                 self:RegisterForDrag("LeftButton");
  610.  
  611.                 -- Setup
  612.                 Accountant.RegisterEvents(self);
  613.             </OnLoad>
  614.             <OnShow>Accountant.OnShow();</OnShow>
  615.             <OnHide>Accountant.OnHide();</OnHide>
  616.             <OnEvent>Accountant.OnEvent(event, arg1);</OnEvent>
  617.             <OnDragStart>self:StartMoving();</OnDragStart>
  618.             <OnDragStop>self:StopMovingOrSizing();</OnDragStop>
  619.             <OnMouseUp>self:StopMovingOrSizing();</OnMouseUp>
  620.         </Scripts>
  621.     </Frame>
  622.     <GameTooltip name="AccountantTooltip" inherits="GameTooltipTemplate"
  623.         parent="UIParent" hidden="true" />
  624.  
  625.     <!-- Button on Minimap -->
  626.  
  627. </Ui>
  628.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement