View Single Post
11-22-14, 11:26 PM   #2
Zireko
An Aku'mai Servant
Join Date: Nov 2014
Posts: 38
Never Mind I figured out Most of it on my own. I'm still going to keep working on this if you would like to see my code now this is what I have and it made everything work correctly. I switched to using blp instead of a tga image.

XML
Lua Code:
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/"
  2.                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.                    xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  4.                   ..\..\FrameXML\UI.xsd">
  5.     <Frame name="barAWindow" parent="UIParent" movable="true" alpha="0.8">
  6.         <Size x="1800" y="300"/>
  7.             <Anchors>
  8.                 <Anchor point="CENTER"/>
  9.             </Anchors>
  10.             <Layers>
  11.                 <Layer level="BACKGROUND">
  12.                     <Texture file="Interface\AddOns\ZBar\ZBarImgs\barA.blp" setAllPoints="true"/>
  13.                 </Layer>
  14.             </Layers>
  15.     <Scripts>
  16.         <OnMouseDown>
  17.             self:StartMoving()
  18.         </OnMouseDown>
  19.         <OnMouseUp>
  20.             self:StopMovingOrSizing()
  21.         </OnMouseUp>
  22.     </Scripts>
  23.     </Frame>
  24. </Ui>

I'll be adding more to this as I go a long and making the main anchor at the bottom of the screen and get rid of the self:StartMoving() function / scripts , I'm just using this to get a general idea of where my addon is before I anchor it down.
  Reply With Quote