Advertisement
Guest User

Untitled

a guest
Nov 27th, 2012
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 55.85 KB | None | 0 0
  1. <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">
  2.    
  3.     <!-- TOOLTIP -->
  4.  
  5.     <GameTooltip virtual="true" name="ArkScanTooltipTemplate" inherits="GameTooltipTemplate">
  6.         <Scripts>
  7.             <Onload>
  8.                 GameTooltip_OnLoad( self )
  9.                 self:SetOwner( UIParent, "ANCHOR_NONE" )
  10.             </Onload>
  11.             <OnTooltipAddMoney>
  12.                 <!-- override -->
  13.             </OnTooltipAddMoney>
  14.             <OnTooltipCleared>
  15.                 <!-- override -->
  16.             </OnTooltipCleared>
  17.         </Scripts>
  18.     </GameTooltip>
  19.    
  20.    
  21.     <!-- FONTS -->
  22.    
  23.     <Font virtual="true" name="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  24.         <FontHeight>
  25.             <AbsValue val="12" />
  26.         </FontHeight>
  27.         <Color r="1.0" g="0.82" b="0" />
  28.     </Font>
  29.    
  30.     <Font virtual="true" name="ARKINV_GameFontHighlight" inherits="ARKINV_GameFontNormal" outline="NORMAL">
  31.         <Color r="1.0" g="1.0" b="1.0" />
  32.     </Font>
  33.    
  34.     <Font virtual="true" name="ARKINV_GameFontDisable" inherits="ARKINV_GameFontNormal" outline="NORMAL">
  35.         <Color r="0.5" g="0.5" b="0.5" />
  36.     </Font>
  37.    
  38.     <Font virtual="true" name="ARKINV_GameFontNormalSmall" inherits="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  39.         <FontHeight>
  40.             <AbsValue val="10" />
  41.         </FontHeight>
  42.     </Font>
  43.  
  44.     <Font virtual="true" name="ARKINV_GameFontNormalLarge" inherits="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  45.         <FontHeight>
  46.             <AbsValue val="16" />
  47.         </FontHeight>
  48.     </Font>
  49.  
  50.     <Font virtual="true" name="ARKINV_GameFontNormalHuge" inherits="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  51.         <FontHeight>
  52.             <AbsValue val="20" />
  53.         </FontHeight>
  54.     </Font>
  55.    
  56.     <Font virtual="true" name="ARKINV_NewItemFont" font="Fonts\ARIALN.TTF" outline="NORMAL">
  57.         <FontHeight>
  58.             <AbsValue val="11" />
  59.         </FontHeight>
  60.         <Color r="1" g="1" b="1" />
  61.     </Font>
  62.  
  63.     <Font virtual="true" name="ARKINV_TableRowFont" inherits="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  64.         <FontHeight>
  65.             <AbsValue val="14" />
  66.         </FontHeight>
  67.     </Font>
  68.  
  69.     <Font virtual="true" name="ARKINV_DataEntryFont" inherits="ARKINV_GameFontNormal" font="Fonts\FRIZQT__.TTF" outline="NORMAL">
  70.         <FontHeight>
  71.             <AbsValue val="14" />
  72.         </FontHeight>
  73.         <Color r="1" g="1" b="1" />
  74.     </Font>
  75.  
  76.     <Font virtual="true" name="ARKINV_DataEntryLabelFont" inherits="ARKINV_DataEntryFont" outline="NORMAL">
  77.         <Color r="0" g="1" b="0" />
  78.     </Font>
  79.  
  80.     <Font virtual="true" name="ARKINV_DataEntryFontDisable" inherits="ARKINV_TableRowFont" outline="NORMAL">
  81.         <Color r="0.5" g="0.5" b="0.5" />
  82.     </Font>
  83.  
  84.  
  85. <!-- TEXTURES -->
  86.  
  87.     <Texture virtual="true" name="ARKINV_TextureUnknown" file="Interface\Icons\INV_Misc_QuestionMark">
  88.         <Size x="20" y="20"  />
  89.     </Texture>
  90.    
  91.     <Texture virtual="true" name="ARKINV_TextureHighlight" setAllPoints="true" hidden="true">
  92.         <Color r="1" g="1" b="0" a="0.2" />
  93.     </Texture>
  94.    
  95.     <Texture virtual="true" name="ARKINV_TextureSelected" inherits="ARKINV_TextureHighlight" hidden="true">
  96.         <Color r="1" g="1" b="1" a="0.2" />
  97.     </Texture>
  98.  
  99.     <Texture virtual="true" name="ARKINV_TextureTransparent" inherits="ARKINV_TextureHighlight">
  100.         <Color r="0" g="0" b="0" a="0" />
  101.     </Texture>
  102.  
  103.  
  104. <!-- EDITBOX -->
  105.  
  106.     <EditBox virtual="true" name="ARKINV_TemplateEditBoxNoLabel" inherits="InputBoxTemplate" historyLines="0" autoFocus="false">
  107.        
  108.         <FontString name="$parentNeedsToBeHere" inherits="ARKINV_DataEntryFont" />
  109.        
  110.         <Scripts>
  111.        
  112.             <OnEscapePressed>
  113.                 self:ClearFocus( )
  114.             </OnEscapePressed>
  115.            
  116.         </Scripts>
  117.        
  118.     </EditBox>
  119.  
  120.     <EditBox virtual="true" name="ARKINV_TemplateEditBox" inherits="ARKINV_TemplateEditBoxNoLabel">
  121.  
  122.         <Layers>
  123.        
  124.             <Layer level="ARTWORK">
  125.            
  126.                 <FontString name="$parentLabel" inherits="ARKINV_DataEntryLabelFont">
  127.                     <Anchors>
  128.                         <Anchor point="RIGHT" relativePoint="LEFT" x="-10" y="0" />
  129.                     </Anchors>
  130.                 </FontString>
  131.                
  132.             </Layer>
  133.            
  134.         </Layers>
  135.        
  136.     </EditBox>
  137.  
  138.  
  139. <!-- FRAMES -->
  140.  
  141.     <Frame virtual="true" name="ARKINV_Border">
  142.         <Anchors>
  143.             <Anchor point="TOPLEFT" />
  144.             <Anchor point="BOTTOMRIGHT" />
  145.         </Anchors>
  146.     </Frame>
  147.    
  148.     <Frame virtual="true" name="ARKINV_BorderHighlight" hidden="true">
  149.         <Layers>
  150.             <Layer level="BACKGROUND">
  151.                 <Texture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD" />
  152.             </Layer>
  153.         </Layers>
  154.     </Frame>
  155.    
  156.     <Frame virtual="true" name="ARKINV_BorderPulse" inherits="ARKINV_BorderHighlight">
  157.         <Animations>
  158.             <AnimationGroup parentKey="glow" looping="REPEAT">
  159.                 <Alpha change="-1.0" duration="0.6" order="1"/>
  160.                 <Alpha change="1.0" duration="0.6" order="2"/>
  161.             </AnimationGroup>
  162.         </Animations>
  163.         <Scripts>
  164.             <OnShow>
  165.                 self.glow:Play( )
  166.             </OnShow>
  167.         </Scripts>
  168.     </Frame>
  169.    
  170.     <Frame virtual="true" name="ARKINV_TemplateFrameBasic">
  171.         <Frames>
  172.             <Frame name="$parentArkBorder" inherits="ARKINV_Border" />
  173.         </Frames>
  174.     </Frame>
  175.    
  176.     <Frame virtual="true" name="ARKINV_TemplateFrameStandard" inherits="ARKINV_TemplateFrameBasic">
  177.        
  178.         <Size x="20" y="34" />
  179.        
  180.         <Layers>
  181.             <Layer level="BACKGROUND">
  182.                 <Texture name="$parentBackground">
  183.                     <Anchors>
  184.                         <Anchor point="TOPLEFT" x="3" y="-3" />
  185.                         <Anchor point="BOTTOMRIGHT" x="-3" y="3" />
  186.                     </Anchors>
  187.                     <Color r="0" g="0" b="0" a="0.9" />
  188.                 </Texture>
  189.             </Layer>
  190.         </Layers>
  191.        
  192.     </Frame>
  193.  
  194.     <Button virtual="true" name="ARKINV_TemplateButton" inherits="OptionsButtonTemplate">
  195.         <Size x="18" y="18" />
  196.         <Scripts>
  197.             <OnLeave>
  198.                 ArkInventory.GameTooltipHide( )
  199.             </OnLeave>
  200.         </Scripts>
  201.     </Button>
  202.    
  203.     <Button virtual="true" name="ARKINV_TemplateButtonLocation" inherits="ARKINV_TemplateButton">
  204.         <Size x="20" y="20" />
  205.         <NormalTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  206.         <PushedTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  207.         <DisabledTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  208.         <HighlightTexture file="Interface\Icons\INV_Misc_QuestionMark" alphaMode="ADD" />
  209.         <Scripts>
  210.             <OnLoad>
  211.                 self:RegisterForClicks( "LeftButtonUp", "RightButtonUp" )
  212.             </OnLoad>
  213.             <OnClick>
  214.                 ArkInventory.MenuLocationOpen( self:GetParent( ):GetParent( ) )
  215.             </OnClick>
  216.             <OnEnter>
  217.                 ArkInventory.GameTooltipSetText( self, ArkInventory.Global.Location[self:GetID( )].Name )
  218.             </OnEnter>
  219.         </Scripts>
  220.     </Button>
  221.  
  222.     <Button virtual="true" name="ARKINV_TemplateButtonAction">
  223.         <Size x="20" y="20" />
  224.         <NormalTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  225.         <PushedTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  226.         <DisabledTexture file="Interface\Icons\INV_Misc_QuestionMark" />
  227.         <HighlightTexture file="Interface\Icons\INV_Misc_QuestionMark" alphaMode="ADD" />
  228.         <Scripts>
  229.             <OnLoad>
  230.                 self:RegisterForClicks( "LeftButtonUp", "RightButtonUp" )
  231.             </OnLoad>
  232.             <OnLeave>
  233.                 ArkInventory.GameTooltipHide( )
  234.             </OnLeave>
  235.         </Scripts>
  236.     </Button>
  237.  
  238.     <Button virtual="true" name="ARKINV_TemplateButtonItem" inherits="ContainerFrameItemButtonTemplate" hidden="true">
  239.        
  240.         <!-- <NormalTexture name="$parentNormalTexture" urgency="5" file="" /> -->
  241.        
  242.         <Frames>
  243.            
  244.             <Frame name="$parentArkBorder" inherits="ARKINV_Border" />
  245.            
  246.             <Frame name="$parentArkNew">
  247.            
  248.                 <Anchors>
  249.                     <Anchor point="TOPLEFT" x="0" y="-2" />
  250.                     <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="-12" />
  251.                 </Anchors>
  252.                
  253.                 <Layers>
  254.                     <Layer level="BORDER">
  255.                         <FontString name="$parentText" inherits="ARKINV_NewItemFont" justifyH="CENTER" hidden="true" />
  256.                     </Layer>
  257.                 </Layers>
  258.                
  259.             </Frame>
  260.            
  261.         </Frames>
  262.        
  263.         <Scripts>
  264.        
  265.             <OnLoad>
  266.                 ArkInventory.Frame_Item_OnLoad( self )
  267.             </OnLoad>
  268.            
  269.             <OnEnter>
  270.                 ArkInventory.Frame_Item_OnEnter( self )
  271.             </OnEnter>
  272.            
  273.             <OnDragStart>
  274.                 ArkInventory.Frame_Item_OnDrag( self )
  275.             </OnDragStart>
  276.            
  277.             <OnReceiveDrag>
  278.                 ArkInventory.Frame_Item_OnDrag( self )
  279.             </OnReceiveDrag>
  280.            
  281.             <OnMouseUp>
  282.                 ArkInventory.Frame_Item_OnMouseUp( self, button )
  283.             </OnMouseUp>
  284.            
  285.         </Scripts>
  286.        
  287.     </Button>
  288.    
  289.     <Button virtual="true" name="ARKINV_TemplateButtonVaultItem" inherits="ARKINV_TemplateButtonItem" hidden="true">
  290.        
  291.         <Scripts>
  292.            
  293.             <OnClick>
  294.                 ArkInventory.Frame_Vault_Item_OnClick( self, button, down )
  295.             </OnClick>
  296.            
  297.             <OnDragStart>
  298.                 ArkInventory.Frame_Vault_Item_OnClick( self )
  299.             </OnDragStart>
  300.            
  301.             <OnReceiveDrag>
  302.                 ArkInventory.Frame_Vault_Item_OnClick( self )
  303.             </OnReceiveDrag>
  304.            
  305.         </Scripts>
  306.        
  307.     </Button>
  308.  
  309.     <Button virtual="true" name="ARKINV_TemplateButtonMountItem" inherits="ARKINV_TemplateButtonItem" hidden="true">
  310.        
  311.         <Frames>
  312.            
  313.             <Frame parentKey="active" inherits="ARKINV_BorderPulse" setAllPoints="true" />
  314.            
  315.         </Frames>
  316.        
  317.         <Scripts>
  318.            
  319.             <OnClick>
  320.                 ArkInventory.Frame_Item_Mount_OnClick( self, button, down )
  321.             </OnClick>
  322.            
  323.             <OnDragStart>
  324.                 ArkInventory.Frame_Item_Mount_OnDragStart( self )
  325.             </OnDragStart>
  326.            
  327.             <OnReceiveDrag>
  328.                 -- do nothing
  329.             </OnReceiveDrag>
  330.            
  331.         </Scripts>
  332.        
  333.     </Button>
  334.    
  335.     <Button virtual="true" name="ARKINV_TemplateButtonBattlepetItem" inherits="ARKINV_TemplateButtonItem" hidden="true">
  336.        
  337.         <Frames>
  338.            
  339.             <Frame parentKey="active" inherits="ARKINV_BorderPulse" setAllPoints="true" />
  340.            
  341.             <Frame parentKey="slotted" inherits="ARKINV_BorderHighlight" setAllPoints="true" />
  342.            
  343.             <Frame parentKey="dead" hidden="true">
  344.                 <Size x="26" y="26" />
  345.                 <Anchors>
  346.                     <Anchor point="CENTER" />
  347.                 </Anchors>
  348.                 <Layers>
  349.                     <Layer level="OVERLAY">
  350.                         <Texture file="Interface\PetBattles\DeadPetIcon" />
  351.                     </Layer>
  352.                 </Layers>
  353.             </Frame>
  354.            
  355.             <Frame parentKey="favorite" hidden="true">
  356.                 <Size x="26" y="26" />
  357.                 <Anchors>
  358.                     <Anchor point="TOPLEFT" x="-8" y="8" />
  359.                 </Anchors>
  360.                 <Layers>
  361.                     <Layer level="OVERLAY">
  362.                         <Texture file="Interface\PetBattles\PetJournal">
  363.                             <TexCoords left="0.11328125" right="0.16210938" top="0.02246094" bottom="0.04687500" />
  364.                         </Texture>
  365.                     </Layer>
  366.                 </Layers>
  367.             </Frame>
  368.            
  369.            
  370.             <Frame parentKey="locked" hidden="true">
  371.                 <Size x="26" y="26" />
  372.                 <Anchors>
  373.                     <Anchor point="CENTER" />
  374.                 </Anchors>
  375.                 <Layers>
  376.                     <Layer level="OVERLAY">
  377.                         <Texture file="Interface\PetBattles\PetBattle-LockIcon" />
  378.                     </Layer>
  379.                 </Layers>
  380.             </Frame>
  381.            
  382.         </Frames>
  383.            
  384.         <Scripts>
  385.            
  386.             <OnClick>
  387.                 ArkInventory.Frame_Item_Battlepet_OnClick( self, button, down )
  388.             </OnClick>
  389.            
  390.             <OnDragStart>
  391.                 ArkInventory.Frame_Item_Battlepet_OnDragStart( self )
  392.             </OnDragStart>
  393.            
  394.             <OnReceiveDrag>
  395.                 -- do nothing
  396.             </OnReceiveDrag>
  397.            
  398.         </Scripts>
  399.        
  400.     </Button>
  401.    
  402.     <Button virtual="true" name="ARKINV_TemplateButtonViewOnlyItem" inherits="ARKINV_TemplateButtonItem" hidden="true">
  403.  
  404.         <Scripts>
  405.        
  406.             <OnClick>
  407.                 -- do nothing
  408.             </OnClick>
  409.            
  410.             <OnDragStart>
  411.                 -- do nothing
  412.             </OnDragStart>
  413.            
  414.             <OnReceiveDrag>
  415.                 -- do nothing
  416.             </OnReceiveDrag>
  417.            
  418.             <OnMouseUp>
  419.                 ArkInventory.Frame_Item_OnMouseUp( self, button )
  420.             </OnMouseUp>
  421.  
  422.         </Scripts>
  423.  
  424.     </Button>
  425.  
  426.     <Button virtual="true" name="ARKINV_TemplateButtonItemTainted" inherits="ContainerFrameItemButtonTemplate" hidden="true">
  427.        
  428.         <!-- <NormalTexture name="$parentNormalTexture" urgency="5" file="" /> -->
  429.        
  430.         <Layers>
  431.             <Layer level="OVERLAY">
  432.                 <Texture name="$parentTainted" setAllPoints="true" hidden="false">
  433.                     <Color r="0.7" g="0.1" b="1.0" a="0.4" />
  434.                 </Texture>
  435.             </Layer>
  436.         </Layers>
  437.        
  438.         <Frames>
  439.            
  440.             <Frame name="$parentArkBorder" inherits="ARKINV_Border" />
  441.            
  442.         </Frames>
  443.        
  444.         <Scripts>
  445.            
  446.             <OnLoad>
  447.                 ArkInventory.Frame_Item_Tainted_OnLoad( self )
  448.             </OnLoad>
  449.            
  450.             <OnEnter>
  451.                 ArkInventory.Frame_Tainted_OnEnter( self )
  452.             </OnEnter>
  453.            
  454.             <OnClick>
  455.                 -- do nothing
  456.             </OnClick>
  457.            
  458.             <OnDragStart>
  459.                 -- do nothing
  460.             </OnDragStart>
  461.            
  462.             <OnReceiveDrag>
  463.                 -- do nothing
  464.             </OnReceiveDrag>
  465.            
  466.             <OnMouseUp>
  467.                 -- do nothing
  468.             </OnMouseUp>
  469.            
  470.         </Scripts>
  471.        
  472.     </Button>
  473.    
  474.     <Button virtual="true" name="ARKINV_TemplateButtonBarEdit" inherits="ARKINV_TemplateButtonItem" hidden="true">
  475.  
  476.         <Size x="30" y="30" />
  477.        
  478.         <Anchors>
  479.             <Anchor point="TOPLEFT" />
  480.         </Anchors>
  481.  
  482.         <Layers>
  483.             <Layer level="BORDER">
  484.                 <FontString name="$parentEditText" inherits="ARKINV_GameFontNormalHuge" justifyH="CENTER" justifyV="MIDDLE">
  485.                     <Anchors>
  486.                         <Anchor point="CENTER" />
  487.                     </Anchors>
  488.                 </FontString>
  489.             </Layer>
  490.         </Layers>
  491.  
  492.         <Scripts>
  493.            
  494.             <OnLoad>
  495.                 ArkInventory.Frame_Bar_OnLoad( self )
  496.                 SetItemButtonTexture( self, [[Interface\Buttons\WHITE8X8]] )
  497.                 SetItemButtonTextureVertexColor( self, 0.5, 0.1, 0.1, 0.3 )
  498.             </OnLoad>
  499.            
  500.             <OnEnter>
  501.                 ArkInventory.GameTooltipSetText( self, string.format( ArkInventory.Localise["MENU_BAR_TITLE"], self:GetID( ) ) )
  502.             </OnEnter>
  503.            
  504.             <OnDragStart>
  505.                 <!-- over-ride template -->
  506.             </OnDragStart>
  507.            
  508.             <OnReceiveDrag>
  509.                 <!-- over-ride template -->
  510.             </OnReceiveDrag>
  511.            
  512.             <OnUpdate>
  513.                 <!-- over-ride template -->
  514.             </OnUpdate>
  515.            
  516.             <OnEvent>
  517.                 <!-- over-ride template -->
  518.             </OnEvent>
  519.            
  520.             <OnMouseUp>
  521.                 ArkInventory.MenuBarOpen( self )
  522.             </OnMouseUp>
  523.        
  524.             <OnShow>
  525.                 _G[string.format( "%s%s", self:GetName( ), "EditText" )]:SetText( self:GetID( ) )
  526.             </OnShow>
  527.            
  528.             <OnClick>
  529.                 <!-- over-ride template -->
  530.             </OnClick>
  531.  
  532.         </Scripts>
  533.        
  534.     </Button>
  535.  
  536.     <Button virtual="true" name="ARKINV_TemplateButtonClose" inherits="ARKINV_TemplateButton">
  537.         <Size x="20" y="20" />
  538.         <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up">
  539.             <TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
  540.         </NormalTexture>
  541.         <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down">
  542.             <TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
  543.         </PushedTexture>
  544.         <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD">
  545.             <TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75" />
  546.         </HighlightTexture>
  547.     </Button>
  548.  
  549.     <Button virtual="true" name="ARKINV_TemplateButtonClear" inherits="ARKINV_TemplateButton">
  550.         <Size x="20" y="20" />
  551.         <NormalTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up" />
  552.         <PushedTexture file="Interface\Buttons\UI-GroupLoot-Pass-Down" />
  553.         <HighlightTexture file="Interface\Buttons\UI-GroupLoot-Pass-Highlight" alphaMode="ADD" />
  554.         <Scripts>
  555.             <OnClick>
  556.                 local filter = _G[string.format( "%s%s", self:GetParent( ):GetName( ), "Filter" )]
  557.                 if filter then
  558.                     filter:SetText( "" )
  559.                     filter:ClearFocus( )
  560.                 end
  561.             </OnClick>
  562.             <OnEnter>
  563.                 ArkInventory.GameTooltipSetText( self, ArkInventory.Localise["CLEAR"] )
  564.             </OnEnter>
  565.         </Scripts>
  566.        
  567.     </Button>
  568.    
  569.     <Button virtual="true" name="ArkInventory_ChangerPlayerMainTemplate" inherits="PaperDollItemSlotButtonTemplate">
  570.    
  571.         <NormalTexture name="$parentNormalTexture" file="" />
  572.        
  573.         <Frames>
  574.             <Frame name="$parentArkBorder" inherits="ARKINV_Border" />
  575.         </Frames>
  576.    
  577.         <Scripts>
  578.  
  579.             <OnLoad>
  580.                 ArkInventory.Frame_Changer_Primary_OnLoad( self )
  581.             </OnLoad>
  582.            
  583.             <OnEvent>
  584.                 <!-- over-ride template -->
  585.             </OnEvent>
  586.            
  587.             <OnShow>
  588.                 <!-- over-ride template -->
  589.             </OnShow>
  590.  
  591.             <OnHide>
  592.                 <!-- over-ride template -->
  593.             </OnHide>
  594.  
  595.             <OnClick>
  596.                 ArkInventory.Frame_Changer_Primary_OnClick( self, button, down )
  597.             </OnClick>
  598.            
  599.             <OnDragStart>
  600.                 <!-- over-ride template -->
  601.             </OnDragStart>
  602.  
  603.             <OnReceiveDrag>
  604.                 ArkInventory.Frame_Changer_Primary_OnClick( self )
  605.             </OnReceiveDrag>
  606.            
  607.             <OnEnter>
  608.                 ArkInventory.Frame_Changer_Primary_OnEnter( self )
  609.             </OnEnter>
  610.            
  611.             <OnLeave>
  612.                 ArkInventory.Frame_Changer_Generic_OnLeave( self )
  613.             </OnLeave>
  614.  
  615.         </Scripts>
  616.  
  617.     </Button>
  618.    
  619.     <Button virtual="true" name="ArkInventory_ChangerBankMainTemplate" inherits="ArkInventory_ChangerPlayerMainTemplate">
  620.  
  621.         <Scripts>
  622.  
  623.             <OnLoad>
  624.                 ArkInventory.Frame_Changer_Primary_OnLoad( self )
  625.             </OnLoad>
  626.            
  627.             <OnClick>
  628.                 ArkInventory.Frame_Changer_Primary_OnClick( self, button, down )
  629.             </OnClick>
  630.  
  631.             <OnReceiveDrag>
  632.                 ArkInventory.Frame_Changer_Primary_OnClick( self )
  633.             </OnReceiveDrag>
  634.            
  635.             <OnEnter>
  636.                 ArkInventory.Frame_Changer_Primary_OnEnter( self )
  637.             </OnEnter>
  638.  
  639.         </Scripts>
  640.        
  641.     </Button>
  642.    
  643.     <Button virtual="true" name="ArkInventory_ChangerVaultTabTemplate" inherits="ArkInventory_ChangerPlayerMainTemplate" hidden="true">
  644.    
  645.         <Scripts>
  646.    
  647.             <OnLoad>
  648.                 ArkInventory.Frame_Changer_Vault_Tab_OnLoad( self )
  649.             </OnLoad>
  650.            
  651.             <OnClick>
  652.                 ArkInventory.Frame_Changer_Vault_Tab_OnClick( self, button, down )
  653.             </OnClick>
  654.  
  655.             <OnReceiveDrag>
  656.                 ArkInventory.Frame_Changer_Vault_Tab_OnClick( self )
  657.             </OnReceiveDrag>
  658.            
  659.             <OnEnter>
  660.                 ArkInventory.Frame_Changer_Vault_Tab_OnEnter( self )
  661.             </OnEnter>
  662.            
  663.         </Scripts>
  664.            
  665.     </Button>
  666.    
  667.     <Button virtual="true" name="ArkInventory_ChangerVaultActionTemplate" inherits="ARKINV_TemplateButton" hidden="true">
  668.        
  669.         <Size x="30" y="30" />
  670.        
  671.         <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up" />
  672.        
  673.         <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down" />
  674.        
  675.         <Scripts>
  676.            
  677.             <OnLoad>
  678.                 ArkInventory.Frame_Changer_Vault_Action_OnLoad( self )
  679.             </OnLoad>
  680.            
  681.             <OnClick>
  682.                 ArkInventory.Frame_Changer_Vault_Action_OnClick( self, button, down )
  683.             </OnClick>
  684.            
  685.             <OnReceiveDrag>
  686.                 -- do nothing
  687.             </OnReceiveDrag>
  688.            
  689.             <OnEnter>
  690.                 ArkInventory.Frame_Changer_Vault_Action_OnEnter( self )
  691.             </OnEnter>
  692.            
  693.         </Scripts>
  694.            
  695.     </Button>
  696.    
  697.     <Button virtual="true" name="ArkInventory_ChangerGenericExtraTemplate" inherits="ArkInventory_ChangerPlayerMainTemplate">
  698.        
  699.         <Scripts>
  700.            
  701.             <OnLoad>
  702.                 ArkInventory.Frame_Changer_Secondary_OnLoad( self )
  703.             </OnLoad>
  704.            
  705.             <OnClick>
  706.                 ArkInventory.Frame_Changer_Secondary_OnClick( self, button, down )
  707.             </OnClick>
  708.            
  709.             <OnDragStart>
  710.                 ArkInventory.Frame_Changer_Secondary_OnDragStart( self )
  711.             </OnDragStart>
  712.            
  713.             <OnReceiveDrag>
  714.                 ArkInventory.Frame_Changer_Secondary_OnReceiveDrag( self )
  715.             </OnReceiveDrag>
  716.            
  717.             <OnEnter>
  718.                 ArkInventory.Frame_Changer_Secondary_OnEnter( self )
  719.             </OnEnter>
  720.            
  721.         </Scripts>
  722.        
  723.     </Button>
  724.    
  725.     <Button virtual="true" name="ArkInventory_ChangerBattlepetTemplate" inherits="ARKINV_TemplateButtonBattlepetItem" hidden="false">
  726.         <Scripts>
  727.            
  728.             <OnLoad>
  729.                 ArkInventory.Frame_Changer_Battlepet_OnLoad( self )
  730.             </OnLoad>
  731.            
  732.             <OnClick>
  733.                 ArkInventory.Frame_Changer_Battlepet_OnClick( self )
  734.             </OnClick>
  735.            
  736.             <OnDragStart>
  737.                 ArkInventory.Frame_Changer_Battlepet_OnDragStart( self )
  738.             </OnDragStart>
  739.            
  740.             <OnReceiveDrag>
  741.                 ArkInventory.Frame_Changer_Battlepet_OnClick( self )
  742.             </OnReceiveDrag>
  743.            
  744.             <OnEnter>
  745.                 ArkInventory.Frame_Changer_Battlepet_OnEnter( self )
  746.             </OnEnter>
  747.            
  748.             <OnLeave>
  749.                 ArkInventory.Frame_Changer_Battlepet_OnLeave( self )
  750.             </OnLeave>
  751.            
  752.         </Scripts>
  753.        
  754.     </Button>
  755.    
  756.    
  757.    
  758.    
  759.     <Frame virtual="true" name="ARKINV_TemplateFrameBar" inherits="ARKINV_TemplateFrameStandard">
  760.  
  761.         <Size x="20" y="20" />
  762.  
  763.         <Layers>
  764.             <Layer level="BORDER">
  765.                 <FontString name="$parentLabel" inherits="ARKINV_GameFontNormal" justifyH="LEFT" hidden="true">
  766.                     <Anchors>
  767.                         <Anchor point="TOPLEFT" x="4" y="-4" />
  768.                         <Anchor point="RIGHT" x="-4" y="0" />
  769.                     </Anchors>
  770.                 </FontString>
  771.             </Layer>
  772.         </Layers>
  773.        
  774.         <Frames>
  775.             <Button name="$parentEdit" inherits="ARKINV_TemplateButtonBarEdit" hidden="true" />
  776.         </Frames>
  777.        
  778.         <Scripts>
  779.             <OnLoad>
  780.                 ArkInventory.Frame_Bar_OnLoad( self )
  781.             </OnLoad>
  782.         </Scripts>
  783.  
  784.     </Frame>
  785.    
  786.     <Frame virtual="true" name="ARKINV_TemplateFrameBag">
  787.  
  788.         <Size x="1" y="1" />
  789.  
  790.         <Anchors>
  791.             <Anchor point="TOPLEFT" />
  792.         </Anchors>
  793.        
  794.         <Scripts>
  795.             <OnLoad>
  796.                 ArkInventory.Frame_Bag_OnLoad( self )
  797.             </OnLoad>
  798.         </Scripts>
  799.        
  800.     </Frame>
  801.    
  802.     <Frame virtual="true" name="ARKINV_TemplateFrameMainTitle" inherits="ARKINV_TemplateFrameStandard">
  803.  
  804.         <Size x="400" y="40" />
  805.  
  806.         <Anchors>
  807.             <Anchor point="TOPLEFT" />
  808.             <Anchor point="RIGHT" />
  809.         </Anchors>
  810.        
  811.         <Frames>
  812.        
  813.             <Button name="$parentLocation0" inherits="ARKINV_TemplateButtonAction">
  814.                 <Size x="42" y="42" />
  815.                 <Anchors>
  816.                     <Anchor point="TOPLEFT" x="8" y="-8" />
  817.                 </Anchors>
  818.                 <Scripts>
  819.                     <OnClick>
  820.                         ArkInventory.MenuMainOpen( self )
  821.                     </OnClick>
  822.                     <OnEnter>
  823.                         ArkInventory.GameTooltipSetText( self, ArkInventory.Localise["MENU"] )
  824.                     </OnEnter>
  825.                 </Scripts>
  826.             </Button>
  827.            
  828.             <Button name="$parentClose" inherits="ARKINV_TemplateButtonClose">
  829.                 <Anchors>
  830.                     <Anchor point="TOPRIGHT" x="-8" y="-8" />
  831.                 </Anchors>
  832.                 <Scripts>
  833.                     <OnClick>
  834.                         ArkInventory.Frame_Main_Hide( self:GetParent( ):GetParent( ):GetID( ) )
  835.                     </OnClick>
  836.                 </Scripts>
  837.             </Button>
  838.            
  839.            
  840.             <!-- top action button row -->
  841.             <Button name="$parentActionButton11" inherits="ARKINV_TemplateButtonAction">
  842.                 <Anchors>
  843.                     <Anchor point="RIGHT" relativeTo="$parentClose" relativePoint="LEFT" x="-3" y="0" />
  844.                 </Anchors>
  845.             </Button>
  846.            
  847.             <Button name="$parentActionButton12" inherits="ARKINV_TemplateButtonAction">
  848.                 <Anchors>
  849.                     <Anchor point="RIGHT" relativeTo="$parentActionButton11" relativePoint="LEFT" x="-3" y="0" />
  850.                 </Anchors>
  851.             </Button>
  852.            
  853.             <Button name="$parentActionButton13" inherits="ARKINV_TemplateButtonAction">
  854.                 <Anchors>
  855.                     <Anchor point="RIGHT" relativeTo="$parentActionButton12" relativePoint="LEFT" x="-3" y="0" />
  856.                 </Anchors>
  857.             </Button>
  858.            
  859.             <Button name="$parentActionButton14" inherits="ARKINV_TemplateButtonAction">
  860.                 <Anchors>
  861.                     <Anchor point="RIGHT" relativeTo="$parentActionButton13" relativePoint="LEFT" x="-3" y="0" />
  862.                 </Anchors>
  863.             </Button>
  864.            
  865.            
  866.             <!-- bottom action button row -->
  867.             <Button name="$parentActionButton21" inherits="ARKINV_TemplateButtonAction">
  868.                 <Anchors>
  869.                     <Anchor point="TOP" relativeTo="$parentActionButton11" relativePoint="BOTTOM" x="0" y="-2" />
  870.                 </Anchors>
  871.             </Button>
  872.            
  873.             <Button name="$parentActionButton22" inherits="ARKINV_TemplateButtonAction">
  874.                 <Anchors>
  875.                     <Anchor point="RIGHT" relativeTo="$parentActionButton21" relativePoint="LEFT" x="-3" y="0" />
  876.                 </Anchors>
  877.             </Button>
  878.            
  879.             <Button name="$parentActionButton23" inherits="ARKINV_TemplateButtonAction">
  880.                 <Anchors>
  881.                     <Anchor point="RIGHT" relativeTo="$parentActionButton22" relativePoint="LEFT" x="-3" y="0" />
  882.                 </Anchors>
  883.             </Button>
  884.  
  885.             <Button name="$parentActionButton24" inherits="ARKINV_TemplateButtonAction">
  886.                 <Anchors>
  887.                     <Anchor point="RIGHT" relativeTo="$parentActionButton23" relativePoint="LEFT" x="-3" y="0" />
  888.                 </Anchors>
  889.             </Button>
  890.            
  891.            
  892.             <Frame>
  893.                 <Layers>
  894.                     <Layer level="ARTWORK">
  895.                         <FontString name="$parentWho" inherits="ARKINV_GameFontNormalHuge" justifyH="LEFT" text="?">
  896.                             <Anchors>
  897.                                 <Anchor point="TOP" relativeTo="$parentLocation0" relativePoint="TOP" />
  898.                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentLocation0" relativePoint="BOTTOMRIGHT" />
  899.                                 <Anchor point="RIGHT" relativeTo="$parentActionButton24" relativePoint="LEFT" />
  900.                             </Anchors>
  901.                         </FontString>
  902.                     </Layer>
  903.                 </Layers>
  904.             </Frame>
  905.  
  906.         </Frames>
  907.  
  908.     </Frame>
  909.  
  910.     <Frame virtual="true" name="ARKINV_TemplateFrameMainSearch" inherits="ARKINV_TemplateFrameStandard">
  911.  
  912.         <Size x="2" y="40" />
  913.  
  914.         <Anchors>
  915.             <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT" x="0" y="4" />
  916.             <Anchor point="RIGHT" />
  917.         </Anchors>
  918.        
  919.         <Frames>
  920.        
  921.             <Button name="$parentClear" inherits="ARKINV_TemplateButtonClear">
  922.                 <Anchors>
  923.                     <Anchor point="RIGHT" x="-8" y="0" />
  924.                 </Anchors>
  925.             </Button>
  926.            
  927.             <EditBox name="$parentFilter" inherits="ARKINV_TemplateEditBox" letters="80">
  928.            
  929.                 <Size x="2" y="20" />
  930.                
  931.                 <Anchors>
  932.                     <Anchor point="LEFT" x="120" y="0" />
  933.                     <Anchor point="RIGHT" relativeTo="$parentClear" relativePoint="LEFT" x="-2" y="0" />
  934.                 </Anchors>
  935.                
  936.                 <Scripts>
  937.                    
  938.                     <OnLoad>
  939.                         ArkInventory.UiSetEditBoxLabel( self, string.format( "%s:", ArkInventory.Localise["SEARCH"] ) )
  940.                     </OnLoad>
  941.                    
  942.                     <OnShow>
  943.                         self:SetText( "" )
  944.                         self:ClearFocus( )
  945.                     </OnShow>
  946.                    
  947.                     <OnCursorChanged>
  948.                         ArkInventory.Frame_Main_Search( self:GetParent( ):GetParent( ):GetName( ) )
  949.                     </OnCursorChanged>
  950.                    
  951.                     <OnEnterPressed>
  952.                         self:ClearFocus( )
  953.                     </OnEnterPressed>
  954.                    
  955.                 </Scripts>
  956.                
  957.             </EditBox>
  958.            
  959.         </Frames>
  960.        
  961.     </Frame>
  962.    
  963.     <Frame virtual="true" name="ARKINV_TemplateFrameMainContainer" inherits="ARKINV_TemplateFrameStandard">
  964.  
  965.         <Size x="400" y="40" />
  966.  
  967.         <Anchors>
  968.             <Anchor point="TOPLEFT" relativeTo="$parentSearch" relativePoint="BOTTOMLEFT" x="0" y="4" />
  969.             <Anchor point="RIGHT" />
  970.         </Anchors>
  971.  
  972.         <Frames>
  973.             <Frame name="$parentBar" />
  974.             <Frame name="$parentBag" />
  975.         </Frames>
  976.  
  977.         <Scripts>
  978.             <OnLoad>
  979.                 ArkInventory.Frame_Container_OnLoad( self )
  980.             </OnLoad>
  981.         </Scripts>
  982.  
  983.     </Frame>
  984.    
  985.     <Frame virtual="true" name="ARKINV_TemplateFrameMainChanger" inherits="ARKINV_TemplateFrameStandard" hidden="false">
  986.  
  987.         <Size x="1" y="58" />
  988.  
  989.         <Anchors>
  990.             <Anchor point="TOPLEFT" relativeTo="$parentContainer" relativePoint="BOTTOMLEFT" x="0" y="3" />
  991.             <Anchor point="RIGHT" />
  992.         </Anchors>
  993.  
  994.     </Frame>
  995.    
  996.     <Frame virtual="true" name="ARKINV_CurrencyTracking" hidden="true">
  997.         <Size x="1" y="1" />
  998.         <Layers>
  999.             <Layer level="ARTWORK">
  1000.                 <Texture parentKey="icon" name="$parentIcon" inherits="ARKINV_TextureUnknown" hidden="false">
  1001.                     <Anchors>
  1002.                         <Anchor point="TOPLEFT" />
  1003.                     </Anchors>
  1004.                 </Texture>
  1005.                 <FontString parentKey="count" name="$parentCount" text="NO DATA" inherits="ARKINV_GameFontNormalLarge" hidden="false">
  1006.                     <Anchors>
  1007.                         <Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT" />
  1008.                     </Anchors>
  1009.                 </FontString>
  1010.             </Layer>
  1011.         </Layers>
  1012.         <Scripts>
  1013.             <OnLoad>
  1014.                 self:SetHeight( self.icon:GetHeight( ) )
  1015.             </OnLoad>
  1016.             <OnEnter>
  1017.                 ArkInventory.GameTooltipSetHyperlink( self, GetCurrencyLink( self.currencyID ) )
  1018.             </OnEnter>
  1019.             <OnLeave>
  1020.                 ArkInventory.GameTooltipHide( )
  1021.             </OnLeave>
  1022.             <OnMouseUp>
  1023.                 if ( IsModifiedClick("CHATLINK") ) then
  1024.                     HandleModifiedItemClick( GetCurrencyLink( self.currencyID ) )
  1025.                 else
  1026.                     ToggleCharacter( "TokenFrame" )
  1027.                 end
  1028.             </OnMouseUp>
  1029.         </Scripts>
  1030.     </Frame>
  1031.    
  1032.     <Frame virtual="true" name="ARKINV_TemplateFrameMainStatus" inherits="ARKINV_TemplateFrameStandard" hidden="false">
  1033.        
  1034.         <Anchors>
  1035.             <Anchor point="TOPLEFT" relativeTo="$parentChanger" relativePoint="BOTTOMLEFT" x="0" y="3" />
  1036.             <Anchor point="RIGHT" />
  1037.         </Anchors>
  1038.        
  1039.         <Layers>
  1040.             <Layer level="ARTWORK">
  1041.                
  1042.                 <FontString name="$parentEmptyText" inherits="ARKINV_GameFontNormalLarge" justifyH="LEFT" text="NO DATA">
  1043.                     <Anchors>
  1044.                         <Anchor point="LEFT" x="10" y="0" />
  1045.                     </Anchors>
  1046.                     <Color r="1" g="1" b="1" a="1" />
  1047.                 </FontString>
  1048.                
  1049.             </Layer>
  1050.         </Layers>
  1051.        
  1052.         <Frames>
  1053.            
  1054.             <Frame name="$parentGold" inherits="ArkInventory_SmallMoneyFrameTemplate">
  1055.                 <Anchors>
  1056.                     <Anchor point="RIGHT" />
  1057.                 </Anchors>
  1058.                 <Scripts>
  1059.                     <OnLoad>
  1060.                         ArkInventory.SmallMoneyFrame_OnLoad( self, "STATIC" )
  1061.                     </OnLoad>
  1062.                 </Scripts>
  1063.             </Frame>
  1064.            
  1065.             <Frame name="$parentTracking1" inherits="ARKINV_CurrencyTracking" hidden="true">
  1066.                     <Anchors>
  1067.                         <Anchor point="LEFT" relativeTo="$parentEmptyText" relativePoint="RIGHT" x="20" y="0" />
  1068.                     </Anchors>
  1069.             </Frame>
  1070.        
  1071.             <Frame name="$parentTracking2" inherits="ARKINV_CurrencyTracking" hidden="true">
  1072.                 <Anchors>
  1073.                     <Anchor point="LEFT" relativeTo="$parentTracking1" relativePoint="RIGHT" />
  1074.                 </Anchors>
  1075.             </Frame>
  1076.        
  1077.             <Frame name="$parentTracking3" inherits="ARKINV_CurrencyTracking" hidden="true">
  1078.                 <Anchors>
  1079.                     <Anchor point="LEFT" relativeTo="$parentTracking2" relativePoint="RIGHT" />
  1080.                 </Anchors>
  1081.             </Frame>
  1082.            
  1083.         </Frames>
  1084.        
  1085.     </Frame>
  1086.  
  1087.     <Frame virtual="true" name="ARKINV_TemplateFrameMainLog" inherits="ARKINV_TemplateFrameStandard" hidden="true">
  1088.  
  1089.         <Anchors>
  1090.             <Anchor point="TOPLEFT" relativeTo="$parentContainer" />
  1091.             <Anchor point="BOTTOMRIGHT" relativeTo="$parentContainer" />
  1092.         </Anchors>
  1093.    
  1094.         <Layers>
  1095.             <Layer level="ARTWORK">
  1096.                 <FontString name="$parentText" inherits="ARKINV_GameFontNormal" text="Height" hidden="true">
  1097.                     <Anchor point="TOPLEFT" />
  1098.                 </FontString>
  1099.             </Layer>
  1100.         </Layers>
  1101.  
  1102.         <Frames>
  1103.        
  1104.             <ScrollingMessageFrame name="$parentList" fade="false" enableMouse="true">
  1105.                 <Anchors>
  1106.                     <Anchor point="TOPLEFT" x="10" y="-10" />
  1107.                     <Anchor point="BOTTOMRIGHT" x="-40" y="10" />
  1108.                 </Anchors>
  1109.                 <FontString inherits="ARKINV_TableRowFont" JustifyH="LEFT" />
  1110.                 <Scripts>
  1111.                     <OnHyperlinkClick>
  1112.                         SetItemRef( link, text, button, chatFrame )
  1113.                     </OnHyperlinkClick>
  1114.                     <OnMouseWheel>
  1115.                         ArkInventory.ScrollingMessageFrame_ScrollWheel( self:GetParent( ), "List", delta )
  1116.                     </OnMouseWheel>
  1117.                 </Scripts>
  1118.             </ScrollingMessageFrame>
  1119.  
  1120.             <Button name="$parentScrollUp" inherits="ARKINV_TemplateButtonAction">
  1121.                 <Size x="30" y="30" />
  1122.                 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Up" />
  1123.                 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Down" />
  1124.                 <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Disabled" />
  1125.                 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" />
  1126.                 <Anchors>
  1127.                     <Anchor point="TOPLEFT" relativeTo="$parentList" relativePoint="TOPRIGHT" x="5" y="0" />
  1128.                 </Anchors>
  1129.                 <Scripts>
  1130.                     <OnClick>
  1131.                         ArkInventory.ScrollingMessageFrame_Scroll( self:GetParent( ), "List", "up" )
  1132.                     </OnClick>
  1133.                 </Scripts>
  1134.             </Button>
  1135.  
  1136.  
  1137.             <Button name="$parentScrollDown" inherits="ARKINV_TemplateButtonAction">
  1138.                 <Size x="30" y="30" />
  1139.                 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up" />
  1140.                 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down" />
  1141.                 <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled" />
  1142.                 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" />
  1143.                 <Anchors>
  1144.                     <Anchor point="BOTTOMLEFT" relativeTo="$parentList" relativePoint="BOTTOMRIGHT" x="5" y="0" />
  1145.                 </Anchors>
  1146.                 <Scripts>
  1147.                     <OnClick>
  1148.                         ArkInventory.ScrollingMessageFrame_Scroll( self:GetParent( ), "List", "down" )
  1149.                     </OnClick>
  1150.                 </Scripts>
  1151.             </Button>
  1152.  
  1153.         </Frames>
  1154.    
  1155.     </Frame>
  1156.  
  1157.     <Frame virtual="true" name="ARKINV_TemplateFrameMainInfo" inherits="ARKINV_TemplateFrameStandard" hidden="true">
  1158.        
  1159.         <Anchors>
  1160.             <Anchor point="TOPLEFT" relativeTo="$parentContainer" />
  1161.             <Anchor point="BOTTOMRIGHT" relativeTo="$parentContainer" />
  1162.         </Anchors>
  1163.    
  1164.         <Frames>
  1165.            
  1166.             <ScrollFrame name="$parentScroll" inherits="UIPanelScrollFrameTemplate">
  1167.                
  1168.                 <Anchors>
  1169.                     <Anchor point="TOP" x="0" y="-10" />
  1170.                     <Anchor point="LEFT" x="5" y="0" />
  1171.                     <Anchor point="RIGHT" x="-30" y="0" />
  1172.                     <Anchor point="BOTTOM" x="0" y="40" />
  1173.                 </Anchors>
  1174.                
  1175.                 <ScrollChild>
  1176.                    
  1177.                     <EditBox name="$parentInfo" historyLines="0" multiLine="true" autoFocus="false">
  1178.                        
  1179.                         <Size x="1" y="1" />
  1180.                        
  1181.                         <Anchors>
  1182.                             <Anchor point="TOPLEFT" />
  1183.                             <Anchor point="BOTTOMRIGHT" />
  1184.                         </Anchors>
  1185.                        
  1186.                         <FontString inherits="ARKINV_DataEntryFont" />
  1187.                        
  1188.                         <Scripts>
  1189.                            
  1190.                             <OnEscapePressed>
  1191.                                 self:ClearFocus( )
  1192.                             </OnEscapePressed>
  1193.                            
  1194.                             <OnTextChanged>
  1195.                                 ScrollingEdit_OnTextChanged( self )
  1196.                                 ArkInventory.Frame_Vault_Info_Changed( self )
  1197.                             </OnTextChanged>
  1198.                            
  1199.                             <OnCursorChanged>
  1200.                                 ScrollingEdit_OnCursorChanged( self, x, y, w, h )
  1201.                             </OnCursorChanged>
  1202.                            
  1203.                             <OnUpdate>
  1204.                                 ScrollingEdit_OnUpdate( self, elapsed )
  1205.                             </OnUpdate>
  1206.                            
  1207.                             <OnShow>
  1208.                                 self:SetWidth( self:GetParent( ):GetWidth( ) )
  1209.                             </OnShow>
  1210.                            
  1211.                         </Scripts>
  1212.                        
  1213.                     </EditBox>
  1214.                    
  1215.                 </ScrollChild>
  1216.                
  1217.                 <Scripts>
  1218.                     <OnMouseDown>
  1219.                         local obj = _G[self:GetName( ).."Info"]
  1220.                         if CanEditGuildTabInfo( GetCurrentGuildBankTab( ) ) then
  1221.                             obj:SetFocus( )
  1222.                         else
  1223.                             obj:ClearFocus( )
  1224.                         end
  1225.                     </OnMouseDown>
  1226.                     <OnMouseUp>
  1227.                         local obj = _G[self:GetName( ).."Info"]
  1228.                         if CanEditGuildTabInfo( GetCurrentGuildBankTab( ) ) then
  1229.                             obj:SetFocus( )
  1230.                         else
  1231.                             obj:ClearFocus( )
  1232.                         end
  1233.                     </OnMouseUp>
  1234.                 </Scripts>
  1235.                
  1236.             </ScrollFrame>
  1237.            
  1238.             <Button name="$parentSave" inherits="UIPanelButtonTemplate" text="SAVE_CHANGES" hidden="false">
  1239.                
  1240.                 <Size x="1" y="22" />
  1241.                
  1242.                 <Anchors>
  1243.                     <Anchor point="TOP" relativeTo="$parentScroll" relativePoint="BOTTOM" x="0" y="-5" />
  1244.                 </Anchors>
  1245.                
  1246.                 <Scripts>
  1247.                    
  1248.                     <OnLoad>
  1249.                         self:SetWidth( _G[self:GetName().."Text"]:GetWidth() + 40 )
  1250.                     </OnLoad>
  1251.                    
  1252.                     <OnClick>
  1253.                         local obj = _G[self:GetParent( ):GetName( ).."ScrollInfo"]
  1254.                         SetGuildBankText( GetCurrentGuildBankTab( ), obj:GetText( ) )
  1255.                         obj:ClearFocus( )
  1256.                         self:Disable( )
  1257.                     </OnClick>
  1258.                    
  1259.                 </Scripts>
  1260.                
  1261.             </Button>
  1262.  
  1263.         </Frames>
  1264.    
  1265.     </Frame>
  1266.  
  1267.     <Frame virtual="true" name="ARKINV_TemplateFrameMainScanOnly" parent="UIParent" toplevel="true" movable="true" enableMouse="true" hidden="true" frameStrata="MEDIUM">
  1268.         <Scripts>
  1269.             <OnLoad>
  1270.                 ArkInventory.Frame_Main_OnLoad( self )
  1271.             </OnLoad>
  1272.         </Scripts>
  1273.     </Frame>
  1274.  
  1275.     <Frame virtual="true" name="ARKINV_TemplateFrameMain" parent="UIParent" toplevel="true" movable="true" enableMouse="true" hidden="true" frameStrata="MEDIUM">
  1276.        
  1277.         <Size x="400" y="180" />
  1278.        
  1279.         <Anchors>
  1280.             <Anchor point="TOPLEFT" />
  1281.         </Anchors>
  1282.        
  1283.         <Frames>
  1284.             <Frame name="$parentTitle" inherits="ARKINV_TemplateFrameMainTitle" />
  1285.             <Frame name="$parentSearch" inherits="ARKINV_TemplateFrameMainSearch" />
  1286.             <Frame name="$parentContainer" inherits="ARKINV_TemplateFrameMainContainer" />
  1287.             <Frame name="$parentChanger" inherits="ARKINV_TemplateFrameMainChanger" hidden="false" />
  1288.             <Frame name="$parentStatus" inherits="ARKINV_TemplateFrameMainStatus" hidden="false" />
  1289.         </Frames>
  1290.        
  1291.         <Scripts>
  1292.             <OnLoad>
  1293.                 ArkInventory.Frame_Main_OnLoad( self )
  1294.             </OnLoad>
  1295.             <OnDragStart>
  1296.                 ArkInventory.FrameDragStart( self )
  1297.             </OnDragStart>
  1298.             <OnDragStop>
  1299.                 ArkInventory.FrameDragStop( self )
  1300.             </OnDragStop>
  1301.             <OnShow>
  1302.                 ArkInventory.Frame_Main_OnShow( self )
  1303.             </OnShow>
  1304.             <OnHide>
  1305.                 ArkInventory.Frame_Main_OnHide( self )
  1306.             </OnHide>
  1307.         </Scripts>
  1308.        
  1309.     </Frame>
  1310.  
  1311.     <Frame virtual="true" name="ArkInventory_SmallMoneyFrameTemplate">
  1312.        
  1313.         <Size x="128" y="13" />
  1314.        
  1315.         <Frames>
  1316.            
  1317.             <Button name="$parentCopperButton" jumpNavigateEnabled="false">
  1318.                
  1319.                 <Size x="32" y="13" />
  1320.                
  1321.                 <Anchors>
  1322.                     <Anchor point="RIGHT" x="-13" y="0" />
  1323.                 </Anchors>
  1324.                
  1325.                 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
  1326.                     <Size x="13" y="13" />
  1327.                     <Anchors>
  1328.                         <Anchor point="RIGHT" />
  1329.                     </Anchors>
  1330.                     <TexCoords left="0.5" right="0.75" top="0" bottom="1" />
  1331.                 </NormalTexture>
  1332.                
  1333.                 <ButtonText name="$parentText">
  1334.                     <Anchors>
  1335.                         <Anchor point="RIGHT" x="-13" y="0" />
  1336.                     </Anchors>
  1337.                 </ButtonText>
  1338.                
  1339.                 <NormalFont style="NumberFontNormalRight" />
  1340.                
  1341.                 <PushedTextOffset x="0" y="0" />
  1342.                
  1343.                 <Scripts>
  1344.                     <OnEnter>
  1345.                         ArkInventory.MoneyFrame_OnEnter( self:GetParent( ) )
  1346.                     </OnEnter>
  1347.                     <OnLeave>
  1348.                         ArkInventory.GameTooltipHide( )
  1349.                     </OnLeave>
  1350.                     <OnClick>
  1351.                         local parent = self:GetParent( )
  1352.                         OpenCoinPickupFrame( 1, MoneyTypeInfo[parent.moneyType].UpdateFunc( self ), parent )
  1353.                         parent.hasPickup = 1
  1354.                     </OnClick>
  1355.                 </Scripts>
  1356.                
  1357.             </Button>
  1358.            
  1359.             <Button name="$parentSilverButton" jumpNavigateEnabled="false">
  1360.                
  1361.                 <Size x="32" y="13" />
  1362.                
  1363.                 <Anchors>
  1364.                     <Anchor point="RIGHT" relativeTo="$parentCopperButton" relativePoint="LEFT" x="-4" y="0" />
  1365.                 </Anchors>
  1366.                
  1367.                 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
  1368.                     <Size x="13" y="13" />
  1369.                     <Anchors>
  1370.                         <Anchor point="RIGHT" />
  1371.                     </Anchors>
  1372.                     <TexCoords left="0.25" right="0.5" top="0" bottom="1" />
  1373.                 </NormalTexture>
  1374.                
  1375.                 <ButtonText name="$parentText">
  1376.                     <Anchors>
  1377.                         <Anchor point="RIGHT" x="-13" y="0" />
  1378.                     </Anchors>
  1379.                 </ButtonText>
  1380.                
  1381.                 <NormalFont style="NumberFontNormalRight" />
  1382.                
  1383.                 <PushedTextOffset x="0" y="0" />
  1384.        
  1385.                 <Scripts>
  1386.                     <OnEnter>
  1387.                         ArkInventory.MoneyFrame_OnEnter( self:GetParent( ) )
  1388.                     </OnEnter>
  1389.                     <OnLeave>
  1390.                         ArkInventory.GameTooltipHide( )
  1391.                     </OnLeave>
  1392.                     <OnClick>
  1393.                         local parent = self:GetParent( )
  1394.                         OpenCoinPickupFrame( COPPER_PER_SILVER, MoneyTypeInfo[parent.moneyType].UpdateFunc( self ), parent )
  1395.                         parent.hasPickup = 1
  1396.                     </OnClick>
  1397.                 </Scripts>
  1398.                
  1399.             </Button>
  1400.            
  1401.             <Button name="$parentGoldButton" jumpNavigateEnabled="false">
  1402.                
  1403.                 <Size x="32" y="13" />
  1404.                
  1405.                 <Anchors>
  1406.                     <Anchor point="RIGHT" relativeTo="$parentSilverButton" relativePoint="LEFT" x="-4" y="0" />
  1407.                 </Anchors>
  1408.                
  1409.                 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
  1410.                     <Size x="13" y="13" />
  1411.                     <Anchors>
  1412.                         <Anchor point="RIGHT" />
  1413.                     </Anchors>
  1414.                     <TexCoords left="0" right="0.25" top="0" bottom="1" />
  1415.                 </NormalTexture>
  1416.                
  1417.                 <ButtonText name="$parentText">
  1418.                     <Anchors>
  1419.                         <Anchor point="RIGHT" x="-13" y="0" />
  1420.                     </Anchors>
  1421.                 </ButtonText>
  1422.                
  1423.                 <NormalFont style="NumberFontNormalRight" />
  1424.                
  1425.                 <PushedTextOffset x="0" y="0" />
  1426.                
  1427.                 <Scripts>
  1428.                     <OnEnter>
  1429.                         ArkInventory.MoneyFrame_OnEnter( self:GetParent( ) )
  1430.                     </OnEnter>
  1431.                     <OnLeave>
  1432.                         ArkInventory.GameTooltipHide( )
  1433.                     </OnLeave>
  1434.                     <OnClick>
  1435.                         local parent = self:GetParent( )
  1436.                         OpenCoinPickupFrame( COPPER_PER_GOLD, MoneyTypeInfo[parent.moneyType].UpdateFunc( self ), parent )
  1437.                         parent.hasPickup = 1
  1438.                     </OnClick>
  1439.                 </Scripts>
  1440.                
  1441.             </Button>
  1442.            
  1443.         </Frames>
  1444.        
  1445.         <Scripts>
  1446.             <OnLoad>
  1447.                 ArkInventory.SmallMoneyFrame_OnLoad( self )
  1448.             </OnLoad>
  1449.             <OnEvent>
  1450.                 ArkInventory.MoneyFrame_OnEvent( self, event, ... )
  1451.             </OnEvent>
  1452.             <OnShow>
  1453.                 ArkInventory.MoneyFrame_UpdateMoney( self )
  1454.             </OnShow>
  1455.             <OnHide>
  1456.                 if ( self.hasPickup == 1 ) then
  1457.                     CoinPickupFrame:Hide( );
  1458.                     self.hasPickup = 0;
  1459.                 end
  1460.             </OnHide>
  1461.         </Scripts>
  1462.        
  1463.     </Frame>
  1464.    
  1465.     <Button virtual="true" name="ARKINV_TemplateTableRow" mouseEnabled="true" hidden="true">
  1466.    
  1467.         <Size x="1" y="1" />
  1468.        
  1469.         <Anchors>
  1470.             <Anchor point="LEFT" />
  1471.             <Anchor point="RIGHT" x="-20" y="0" />
  1472.         </Anchors>
  1473.        
  1474.         <Layers>
  1475.        
  1476.             <Layer level="OVERLAY">
  1477.            
  1478.                 <!-- objects in this layer are rearranged via LUA for each table -->
  1479.                
  1480.                 <Texture name="$parentT1" inherits="ARKINV_TextureUnknown" hidden="true" />
  1481.                 <Texture name="$parentT2" inherits="ARKINV_TextureUnknown" hidden="true" />
  1482.                 <Texture name="$parentT3" inherits="ARKINV_TextureUnknown" hidden="true" />
  1483.                 <Texture name="$parentT4" inherits="ARKINV_TextureUnknown" hidden="true" />
  1484.                 <Texture name="$parentT5" inherits="ARKINV_TextureUnknown" hidden="true" />
  1485.                
  1486.                 <FontString name="$parentC1" inherits="ARKINV_TableRowFont" hidden="true" />
  1487.                 <FontString name="$parentC2" inherits="ARKINV_TableRowFont" hidden="true" />
  1488.                 <FontString name="$parentC3" inherits="ARKINV_TableRowFont" hidden="true" />
  1489.                 <FontString name="$parentC4" inherits="ARKINV_TableRowFont" hidden="true" />
  1490.                 <FontString name="$parentC5" inherits="ARKINV_TableRowFont" hidden="true" />
  1491.                
  1492.                 <FontString name="$parentData" inherits="ARKINV_TableRowFont" hidden="true" />
  1493.                
  1494.             </Layer>
  1495.            
  1496.             <Layer level="BACKGROUND">
  1497.  
  1498.                 <FontString name="$parentId" inherits="ARKINV_TableRowFont" hidden="true" />
  1499.            
  1500.                 <Texture name="$parentHighlight" inherits="ARKINV_TextureHighlight">
  1501.                     <Anchors>
  1502.                         <Anchor point="TOPLEFT" x="5" y="0" />
  1503.                         <Anchor point="BOTTOMRIGHT" x="-5" y="0" />
  1504.                     </Anchors>
  1505.                 </Texture>
  1506.  
  1507.                 <Texture name="$parentSelected" inherits="ARKINV_TextureSelected">
  1508.                     <Anchors>
  1509.                         <Anchor point="TOPLEFT" x="5" y="0" />
  1510.                         <Anchor point="BOTTOMRIGHT" x="-5" y="0" />
  1511.                     </Anchors>
  1512.                 </Texture>
  1513.  
  1514.             </Layer>
  1515.  
  1516.         </Layers>
  1517.  
  1518.         <Scripts>
  1519.  
  1520.             <OnLoad>
  1521.            
  1522.                 self:RegisterForClicks( "LeftButtonUp", "RightButtonUp" )
  1523.                
  1524.                 function self.ArkTableRowOnClick( button )
  1525.                     local obj = _G[self:GetParent( ):GetName( )]
  1526.                     if obj and obj["ArkTableRowOnClick"] then
  1527.                         obj.ArkTableRowOnClick( self, button )
  1528.                     end
  1529.                 end
  1530.                
  1531.                 function self.ArkTableRowOnEnter( )
  1532.                     local obj = _G[self:GetParent( ):GetName( )]
  1533.                     if obj and obj["ArkTableRowOnEnter"] then
  1534.                         obj.ArkTableRowOnEnter( self )
  1535.                     end
  1536.                 end
  1537.                
  1538.                 function self.ArkTableRowOnLeave( )
  1539.                     local obj = _G[self:GetParent( ):GetName( )]
  1540.                     if obj and obj["ArkTableRowOnLeave"] then
  1541.                         obj.ArkTableRowOnLeave( self )
  1542.                     end
  1543.                 end
  1544.                
  1545.             </OnLoad>
  1546.  
  1547.             <OnEnter>
  1548.                 _G[string.format( "%s%s", self:GetName( ), "Highlight" )]:Show( )
  1549.                 self.ArkTableRowOnEnter( )
  1550.             </OnEnter>
  1551.  
  1552.             <OnLeave>
  1553.                 _G[string.format( "%s%s", self:GetName( ), "Highlight" )]:Hide( )
  1554.                 self.ArkTableRowOnLeave( )
  1555.             </OnLeave>
  1556.  
  1557.             <OnClick>
  1558.                
  1559.                 if button == "LeftButton" then
  1560.                    
  1561.                     PlaySound( "igMainMenuOptionCheckBoxOn" )
  1562.                    
  1563.                     local f = self:GetName( )
  1564.                     --ArkInventory.Output( "OnClick( ", f, ", ", button, " )" )
  1565.                    
  1566.                     local parent = self:GetParent( ):GetName( )
  1567.                    
  1568.                     local cs = _G[string.format( parent, "ArkSelectedRow" )]:GetText( )
  1569.                     local ns = tostring( self:GetID( ) )
  1570.                    
  1571.                     if ns == "0" then
  1572.                         ArkInventory.Output( "XML [", self:GetName( ), "] has no ID" )
  1573.                         return
  1574.                     end
  1575.                    
  1576.                    
  1577.                     -- show/hide the "selected" background
  1578.                     if cs ~= "-1" then
  1579.                         _G[string.format( "%s%s%s%s", parent, "Row", cs, "Selected" )]:Hide( )
  1580.                     end
  1581.                    
  1582.                     if cs == ns then
  1583.                         _G[string.format( "%s%s", parent, "ArkSelectedRow" )]:SetText( "-1" )
  1584.                         _G[string.format( "%s%s", parent, "ArkSelectedId" )]:SetText( "-1" )
  1585.                     else
  1586.                         _G[string.format( "%s%s", parent, "ArkSelectedRow" )]:SetText( ns )
  1587.                         _G[string.format( "%s%s", parent, "ArkSelectedId" )]:SetText( _G[string.format( "%s%s", f, "Id" )]:GetText( ) )
  1588.                         _G[string.format( "%s%s", f, "Selected" )]:Show( )
  1589.                     end
  1590.                    
  1591.                 end
  1592.                
  1593.                 self.ArkTableRowOnClick( button )
  1594.                
  1595.             </OnClick>
  1596.            
  1597.         </Scripts>
  1598.        
  1599.     </Button>
  1600.  
  1601.    
  1602. <!-- ADDON FRAME STARTS HERE -->
  1603.    
  1604.     <Frame hidden="true">
  1605.         <Scripts>
  1606.             <OnLoad>
  1607.                 ArkInventory.OnLoad( )
  1608.             </OnLoad>
  1609.         </Scripts>
  1610.     </Frame>
  1611.    
  1612.     <Frame name="ARKINV_Frame1" inherits="ARKINV_TemplateFrameMain" id="1" /> <!-- bag -->
  1613.    
  1614.     <Frame parent="ARKINV_Frame1Changer" name="$parentWindow" hidden="false">
  1615.    
  1616.         <Size x="1" y="1" />
  1617.    
  1618.         <Anchors>
  1619.             <Anchor point="LEFT" />
  1620.             <Anchor point="RIGHT" />
  1621.         </Anchors>
  1622.    
  1623.         <Frames>
  1624.        
  1625.             <CheckButton name="$parentBag1" inherits="ArkInventory_ChangerPlayerMainTemplate">
  1626.                 <Anchors>
  1627.                     <Anchor point="LEFT" x="8" y="0" />
  1628.                 </Anchors>
  1629.             </CheckButton>
  1630.            
  1631.             <CheckButton name="$parentBag2" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1632.                 <Anchors>
  1633.                     <Anchor point="LEFT" relativeTo="$parentBag1" relativePoint="RIGHT" x="5" y="0" />
  1634.                 </Anchors>
  1635.             </CheckButton>
  1636.            
  1637.             <CheckButton name="$parentBag3" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1638.                 <Anchors>
  1639.                     <Anchor point="LEFT" relativeTo="$parentBag2" relativePoint="RIGHT" x="5" y="0" />
  1640.                 </Anchors>
  1641.             </CheckButton>
  1642.  
  1643.             <CheckButton name="$parentBag4" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1644.                 <Anchors>
  1645.                     <Anchor point="LEFT" relativeTo="$parentBag3" relativePoint="RIGHT" x="5" y="0" />
  1646.                 </Anchors>
  1647.             </CheckButton>
  1648.        
  1649.             <CheckButton name="$parentBag5" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1650.                 <Anchors>
  1651.                     <Anchor point="LEFT" relativeTo="$parentBag4" relativePoint="RIGHT" x="5" y="0" />
  1652.                 </Anchors>
  1653.             </CheckButton>
  1654.  
  1655.         </Frames>
  1656.        
  1657.     </Frame>
  1658.    
  1659.    
  1660.  
  1661.    
  1662.     <Frame name="ARKINV_Frame3" inherits="ARKINV_TemplateFrameMain" id="3" /> <!-- bank -->
  1663.    
  1664.     <Frame parent="ARKINV_Frame3Changer" name="$parentWindow" hidden="false">
  1665.  
  1666.         <Size x="1" y="1" />
  1667.    
  1668.         <Anchors>
  1669.             <Anchor point="TOPLEFT" />
  1670.             <Anchor point="BOTTOMRIGHT" />
  1671.         </Anchors>
  1672.    
  1673.         <Frames>
  1674.        
  1675.             <Button name="$parentBag1" inherits="ArkInventory_ChangerBankMainTemplate">
  1676.  
  1677.                 <Anchors>
  1678.                     <Anchor point="LEFT" x="10" y="0" />
  1679.                 </Anchors>
  1680.                
  1681.             </Button>
  1682.            
  1683.             <Button name="$parentBag2" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1684.                 <Anchors>
  1685.                     <Anchor point="LEFT" relativeTo="$parentBag1" relativePoint="RIGHT" x="5" y="0" />
  1686.                 </Anchors>
  1687.             </Button>
  1688.            
  1689.             <Button name="$parentBag3" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1690.                 <Anchors>
  1691.                     <Anchor point="LEFT" relativeTo="$parentBag2" relativePoint="RIGHT" x="5" y="0" />
  1692.                 </Anchors>
  1693.             </Button>
  1694.            
  1695.             <Button name="$parentBag4" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1696.                 <Anchors>
  1697.                     <Anchor point="LEFT" relativeTo="$parentBag3" relativePoint="RIGHT" x="5" y="0" />
  1698.                 </Anchors>
  1699.             </Button>
  1700.            
  1701.             <Button name="$parentBag5" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1702.                 <Anchors>
  1703.                     <Anchor point="LEFT" relativeTo="$parentBag4" relativePoint="RIGHT" x="5" y="0" />
  1704.                 </Anchors>
  1705.             </Button>
  1706.            
  1707.             <Button name="$parentBag6" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1708.                 <Anchors>
  1709.                     <Anchor point="LEFT" relativeTo="$parentBag5" relativePoint="RIGHT" x="5" y="0" />
  1710.                 </Anchors>
  1711.             </Button>
  1712.  
  1713.             <Button name="$parentBag7" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1714.                 <Anchors>
  1715.                     <Anchor point="LEFT" relativeTo="$parentBag6" relativePoint="RIGHT" x="5" y="0" />
  1716.                 </Anchors>
  1717.             </Button>
  1718.            
  1719.             <Button name="$parentBag8" inherits="ArkInventory_ChangerGenericExtraTemplate">
  1720.                 <Anchors>
  1721.                     <Anchor point="LEFT" relativeTo="$parentBag7" relativePoint="RIGHT" x="5" y="0" />
  1722.                 </Anchors>
  1723.             </Button>
  1724.  
  1725.             <Frame name="$parentPurchaseInfo">
  1726.            
  1727.                 <Size x="130" y="38" />
  1728.                
  1729.                 <Anchors>
  1730.                     <Anchor point="RIGHT" />
  1731.                 </Anchors>
  1732.                
  1733.                 <Layers>
  1734.                     <Layer level="BACKGROUND">
  1735.                         <FontString name="$parentSlotCost" inherits="ARKINV_GameFontNormal" text="COSTS_LABEL">
  1736.                             <Size x="0" y="12" />
  1737.                             <Anchors>
  1738.                                 <Anchor point="TOPLEFT" />
  1739.                             </Anchors>
  1740.                         </FontString>
  1741.                     </Layer>
  1742.                 </Layers>
  1743.  
  1744.                 <Frames>
  1745.  
  1746.                     <Button name="$parentPurchaseButton" inherits="UIPanelButtonTemplate" text="BANKSLOTPURCHASE">
  1747.                         <Size x="124" y="21" />
  1748.                         <Anchors>
  1749.                             <Anchor point="BOTTOMLEFT" />
  1750.                         </Anchors>
  1751.                         <Scripts>
  1752.                             <OnClick>
  1753.                                 PlaySound( "igMainMenuOption" )
  1754.                                 StaticPopup_Show( "CONFIRM_BUY_BANK_SLOT" )
  1755.                             </OnClick>
  1756.                         </Scripts>
  1757.                     </Button>
  1758.  
  1759.                     <Frame name="$parentDetailMoneyFrame" inherits="ArkInventory_SmallMoneyFrameTemplate">
  1760.                    
  1761.                         <Anchors>
  1762.                             <Anchor point="LEFT" relativeTo="$parentSlotCost" relativePoint="RIGHT" x="10" y="0" />
  1763.                         </Anchors>
  1764.                        
  1765.                         <Scripts>
  1766.                             <OnLoad>
  1767.                                 ArkInventory.SmallMoneyFrame_OnLoad( self, "STATIC" )
  1768.                             </OnLoad>
  1769.                         </Scripts>
  1770.                        
  1771.                     </Frame>
  1772.                    
  1773.                 </Frames>
  1774.  
  1775.             </Frame>
  1776.  
  1777.         </Frames>
  1778.        
  1779.     </Frame>
  1780.  
  1781.  
  1782.     <Frame name="ARKINV_Frame4" inherits="ARKINV_TemplateFrameMain" id="4"> <!-- vault -->
  1783.    
  1784.         <Frames>
  1785.            
  1786.             <Frame name="$parentLog" inherits="ARKINV_TemplateFrameMainLog" />
  1787.             <Frame name="$parentInfo" inherits="ARKINV_TemplateFrameMainInfo" />
  1788.  
  1789.         </Frames>
  1790.    
  1791.     </Frame>
  1792.    
  1793.     <Frame parent="ARKINV_Frame4Changer" name="$parentWindow" hidden="false">
  1794.  
  1795.         <Size x="1" y="1" />
  1796.    
  1797.         <Anchors>
  1798.             <Anchor point="TOPLEFT" />
  1799.             <Anchor point="BOTTOMRIGHT" />
  1800.         </Anchors>
  1801.    
  1802.         <Frames>
  1803.            
  1804.             <Button name="$parentBag1" inherits="ArkInventory_ChangerVaultTabTemplate">
  1805.                 <Anchors>
  1806.                     <Anchor point="LEFT" x="10" y="0" />
  1807.                 </Anchors>
  1808.             </Button>
  1809.            
  1810.             <Button name="$parentBag2" inherits="ArkInventory_ChangerVaultTabTemplate">
  1811.                 <Anchors>
  1812.                     <Anchor point="LEFT" relativeTo="$parentBag1" relativePoint="RIGHT" x="5" y="0" />
  1813.                 </Anchors>
  1814.             </Button>
  1815.            
  1816.             <Button name="$parentBag3" inherits="ArkInventory_ChangerVaultTabTemplate">
  1817.                 <Anchors>
  1818.                     <Anchor point="LEFT" relativeTo="$parentBag2" relativePoint="RIGHT" x="5" y="0" />
  1819.                 </Anchors>
  1820.             </Button>
  1821.            
  1822.             <Button name="$parentBag4" inherits="ArkInventory_ChangerVaultTabTemplate">
  1823.                 <Anchors>
  1824.                     <Anchor point="LEFT" relativeTo="$parentBag3" relativePoint="RIGHT" x="5" y="0" />
  1825.                 </Anchors>
  1826.             </Button>
  1827.            
  1828.             <Button name="$parentBag5" inherits="ArkInventory_ChangerVaultTabTemplate">
  1829.                 <Anchors>
  1830.                     <Anchor point="LEFT" relativeTo="$parentBag4" relativePoint="RIGHT" x="5" y="0" />
  1831.                 </Anchors>
  1832.             </Button>
  1833.            
  1834.             <Button name="$parentBag6" inherits="ArkInventory_ChangerVaultTabTemplate">
  1835.                 <Anchors>
  1836.                     <Anchor point="LEFT" relativeTo="$parentBag5" relativePoint="RIGHT" x="5" y="0" />
  1837.                 </Anchors>
  1838.             </Button>
  1839.            
  1840.             <Button name="$parentBag7" inherits="ArkInventory_ChangerVaultTabTemplate">
  1841.                 <Anchors>
  1842.                     <Anchor point="LEFT" relativeTo="$parentBag6" relativePoint="RIGHT" x="5" y="0" />
  1843.                 </Anchors>
  1844.             </Button>
  1845.            
  1846.             <Button name="$parentBag8" inherits="ArkInventory_ChangerVaultTabTemplate">
  1847.                 <Anchors>
  1848.                     <Anchor point="LEFT" relativeTo="$parentBag7" relativePoint="RIGHT" x="5" y="0" />
  1849.                 </Anchors>
  1850.             </Button>
  1851.            
  1852.             <Button name="$parentBag9" inherits="ArkInventory_ChangerVaultTabTemplate">
  1853.                 <Anchors>
  1854.                     <Anchor point="LEFT" relativeTo="$parentBag8" relativePoint="RIGHT" x="5" y="0" />
  1855.                 </Anchors>
  1856.             </Button>
  1857.            
  1858.             <Button name="$parentAction" inherits="ArkInventory_ChangerVaultActionTemplate">
  1859.                 <Anchors>
  1860.                     <Anchor point="RIGHT" x="-10" y="0" />
  1861.                 </Anchors>
  1862.             </Button>
  1863.            
  1864.             <Button name="$parentWithdrawButton" inherits="UIPanelButtonTemplate" text="WITHDRAW" hidden="true">
  1865.                
  1866.                 <Size x="124" y="21" />
  1867.                
  1868.                 <Anchors>
  1869.                     <Anchor point="BOTTOMRIGHT" x="-5" y="5" />
  1870.                 </Anchors>
  1871.                
  1872.                 <Scripts>
  1873.                     <OnClick>
  1874.                         PlaySound( "igMainMenuOption" )
  1875.                         StaticPopup_Hide( "GUILDBANK_DEPOSIT" )
  1876.                         if StaticPopup_Visible( "GUILDBANK_WITHDRAW" ) then
  1877.                             StaticPopup_Hide( "GUILDBANK_WITHDRAW" )
  1878.                         else
  1879.                             StaticPopup_Show( "GUILDBANK_WITHDRAW" )
  1880.                         end
  1881.                     </OnClick>
  1882.                 </Scripts>
  1883.                
  1884.             </Button>
  1885.            
  1886.             <Frame name="$parentGoldAvailable" inherits="ArkInventory_SmallMoneyFrameTemplate" hidden="true">
  1887.                
  1888.                 <Anchors>
  1889.                     <Anchor point="RIGHT" relativeTo="$parentWithdrawButton" relativePoint="LEFT" />
  1890.                 </Anchors>
  1891.                
  1892.                 <Scripts>
  1893.                     <OnLoad>
  1894.                         ArkInventory.SmallMoneyFrame_OnLoad( self, "GUILDBANK_WITHDRAW" )
  1895.                     </OnLoad>
  1896.                 </Scripts>
  1897.                
  1898.             </Frame>
  1899.  
  1900.             <Button name="$parentDepositButton" inherits="UIPanelButtonTemplate" text="DEPOSIT" hidden="true">
  1901.                    
  1902.                 <Size x="124" y="21" />
  1903.                
  1904.                 <Anchors>
  1905.                     <Anchor point="RIGHT" relativeTo="$parentGoldAvailable" relativePoint="LEFT" x="-5" y="0" />
  1906.                 </Anchors>
  1907.                
  1908.                 <Scripts>
  1909.                     <OnClick>
  1910.                         PlaySound( "igMainMenuOption" )
  1911.                         StaticPopup_Hide( "GUILDBANK_WITHDRAW" )
  1912.                         if StaticPopup_Visible( "GUILDBANK_DEPOSIT") then
  1913.                             StaticPopup_Hide( "GUILDBANK_DEPOSIT" )
  1914.                         else
  1915.                             StaticPopup_Show( "GUILDBANK_DEPOSIT" )
  1916.                         end
  1917.                     </OnClick>
  1918.                 </Scripts>
  1919.                
  1920.             </Button>
  1921.            
  1922.             <Frame name="$parentGoldTotal" inherits="ArkInventory_SmallMoneyFrameTemplate" hidden="true">
  1923.                    
  1924.                 <Anchors>
  1925.                     <Anchor point="RIGHT" relativeTo="$parentDepositButton" relativePoint="LEFT" />
  1926.                 </Anchors>
  1927.  
  1928.                 <Scripts>
  1929.                     <OnLoad>
  1930.                         ArkInventory.SmallMoneyFrame_OnLoad( self, "GUILDBANK" )
  1931.                     </OnLoad>
  1932.                 </Scripts>
  1933.                
  1934.             </Frame>
  1935.            
  1936.             <Frame name="$parentPurchaseInfo" hidden="true">
  1937.            
  1938.                 <Size x="130" y="38" />
  1939.                
  1940.                 <Anchors>
  1941.                     <Anchor point="BOTTOM" relativeTo="$parentWithdrawButton" relativePoint="BOTTOM" />
  1942.                     <Anchor point="RIGHT" relativeTo="$parentGoldAvailable" relativePoint="LEFT" x="-5" y="0" />
  1943.                 </Anchors>
  1944.                
  1945.                 <Layers>
  1946.                     <Layer level="BACKGROUND">
  1947.                         <FontString name="$parentSlotCost" inherits="ARKINV_GameFontNormal" text="COSTS_LABEL">
  1948.                             <Size x="0" y="12" />
  1949.                             <Anchors>
  1950.                                 <Anchor point="TOPLEFT" />
  1951.                             </Anchors>
  1952.                         </FontString>
  1953.                     </Layer>
  1954.                 </Layers>
  1955.  
  1956.                 <Frames>
  1957.  
  1958.                     <Button name="$parentPurchaseButton" inherits="UIPanelButtonTemplate" text="BANKSLOTPURCHASE">
  1959.                         <Size x="124" y="21" />
  1960.                         <Anchors>
  1961.                             <Anchor point="BOTTOMLEFT" />
  1962.                         </Anchors>
  1963.                         <Scripts>
  1964.                             <OnClick>
  1965.                                 PlaySound( "igMainMenuOption" )
  1966.                                 StaticPopup_Show( "CONFIRM_BUY_GUILDBANK_TAB" )
  1967.                             </OnClick>
  1968.                         </Scripts>
  1969.                     </Button>
  1970.  
  1971.                     <Frame name="$parentDetailMoneyFrame" inherits="ArkInventory_SmallMoneyFrameTemplate">
  1972.                    
  1973.                         <Anchors>
  1974.                             <Anchor point="LEFT" relativeTo="$parentSlotCost" relativePoint="RIGHT" x="10" y="0" />
  1975.                         </Anchors>
  1976.                        
  1977.                         <Scripts>
  1978.                             <OnLoad>
  1979.                                 ArkInventory.MoneyFrame_SetType( self, "STATIC" )
  1980.                             </OnLoad>
  1981.                         </Scripts>
  1982.                        
  1983.                     </Frame>
  1984.                    
  1985.                 </Frames>
  1986.                
  1987.             </Frame>
  1988.            
  1989.         </Frames>
  1990.        
  1991.     </Frame>
  1992.  
  1993.    
  1994.     <Frame name="ARKINV_Frame5" inherits="ARKINV_TemplateFrameMain" id="5" /> <!-- mailbox -->
  1995.  
  1996.     <Frame name="ARKINV_Frame6" inherits="ARKINV_TemplateFrameMain" id="6" /> <!-- wearing -->
  1997.  
  1998.     <Frame name="ARKINV_Frame7" inherits="ARKINV_TemplateFrameMain" id="7" /> <!-- pets -->
  1999.    
  2000.     <Frame parent="ARKINV_Frame7Changer" name="$parentWindow" hidden="false">
  2001.        
  2002.         <Size x="1" y="1" />
  2003.        
  2004.         <Anchors>
  2005.             <Anchor point="TOPLEFT" />
  2006.             <Anchor point="BOTTOMRIGHT" />
  2007.         </Anchors>
  2008.        
  2009.         <Frames>
  2010.            
  2011.             <Button name="$parentBag1" inherits="ArkInventory_ChangerBattlepetTemplate" id="1">
  2012.                 <Anchors>
  2013.                     <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="50" y="10" />
  2014.                 </Anchors>
  2015.             </Button>
  2016.            
  2017.             <Button name="$parentBag2" inherits="ArkInventory_ChangerBattlepetTemplate" id="2">
  2018.                 <Anchors>
  2019.                     <Anchor point="BOTTOMRIGHT" relativeTo="$parentBag1" x="50" y="0" />
  2020.                 </Anchors>
  2021.             </Button>
  2022.            
  2023.             <Button name="$parentBag3" inherits="ArkInventory_ChangerBattlepetTemplate" id="3">
  2024.                 <Anchors>
  2025.                     <Anchor point="BOTTOMRIGHT" relativeTo="$parentBag2" x="50" y="0" />
  2026.                 </Anchors>
  2027.             </Button>
  2028.            
  2029.         </Frames>
  2030.        
  2031.     </Frame>
  2032.  
  2033.     <Frame name="ARKINV_Frame8" inherits="ARKINV_TemplateFrameMain" id="8" /> <!-- tokens -->
  2034.    
  2035.     <Frame name="ARKINV_Frame9" inherits="ARKINV_TemplateFrameMain" id="9" /> <!-- mounts -->
  2036.    
  2037.     <Frame name="ARKINV_Frame10" inherits="ARKINV_TemplateFrameMain" id="10" /> <!-- auctions -->
  2038.    
  2039.     <Frame name="ARKINV_Frame11" inherits="ARKINV_TemplateFrameMain" id="11" /> <!-- spellbook -->
  2040.    
  2041.     <Frame name="ARKINV_Frame12" inherits="ARKINV_TemplateFrameMain" id="12" /> <!-- tradeskill -->
  2042.    
  2043.     <Frame name="ARKINV_Frame13" inherits="ARKINV_TemplateFrameMain" id="13" /> <!-- void storage -->
  2044.    
  2045. <!-- END OF ADD ON FRAME -->
  2046.    
  2047.     <GameTooltip name="ARKINV_ScanTooltip" inherits="ArkScanTooltipTemplate" />
  2048.    
  2049.     <Frame name="ARKINV_CombatYieldTimer" hidden="true">
  2050.         <Scripts>
  2051.             <Onload>
  2052.                 self:RegisterEvent( "PLAYER_REGEN_DISABLED" )
  2053.                 self:RegisterEvent( "PLAYER_REGEN_ENABLED" )
  2054.             </Onload>
  2055.             <OnUpdate>
  2056.                 self.timer = ( self.timer or 0 ) + elapsed
  2057.                 if self.timer > 0.02 then
  2058.                     ArkInventory.Frame_Main_DrawThreadResume( )
  2059.                     self.timer = nil
  2060.                 end
  2061.             </OnUpdate>
  2062.             <OnEvent>
  2063.                 if ( event == "PLAYER_REGEN_DISABLED" ) then
  2064.                     self:Show( )
  2065.                 elseif ( event == "PLAYER_REGEN_ENABLED" ) then
  2066.                     self:Hide( )
  2067.                     table.wipe( ArkInventory.Global.Thread.Window )
  2068.                     table.wipe( ArkInventory.Global.Thread.WindowState )
  2069.                 end
  2070.             </OnEvent>
  2071.         </Scripts>
  2072.     </Frame>
  2073.  
  2074. </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement