Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-22-14, 10:21 PM   #1
Zireko
An Aku'mai Servant
Join Date: Nov 2014
Posts: 38
I Need some Help On an Addon I'm working On

Currently I'm just practicing and trying to build a very simple addon called ZBar. I will later anchor it to the bottom center of the screen. this addon is just supposed to add an image that can be moved around on the screen currently. It's a custom image and I've converted it to tga using power of 2 like I've read, (tga img size is 512x512). I'm not sure why the addon isn't currently showing up. I'm still very new to coding and I'm learning wows API I came from building a few addons for Elder Scrolls Online. Any way here is the current code I have and I've attached the addon I've built so far below.

Toc File
Lua Code:
  1. ## Interface: 60000
  2. ## Title: ZBar
  3. ## Notes: A simple skin addon that allows you to place your ui into it.
  4. ## Author: Zireko
  5. ## Version: 1.0
  6.  
  7. ZBar.xml

Xml File
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" moveable="true">
  6.         <Size x="800" y="300"/>
  7.             <Anchors>
  8.                 <Anchor point="CENTER">
  9.             </Anchors>
  10.             <Layers>
  11.                 <Layer level="BACKGROUND">
  12.                     <Texture file="ZBar\ZBarImgs\barA.tga" setAllPoints="true"/>
  13.                 </Layer>
  14.             </Layers>
  15.     <Scripts>
  16.         <OnMouseDown>
  17.             self:StartMoving()
  18.         </OnMouseDown>
  19.         <OnMouseUp>
  20.             self:StopMoving()
  21.         </OnMouseUp>
  22.     </Scripts>
  23.     </frame>
  24. </Ui>

My question for my code is simply "What am I missing and why do I need it?" please explain in full detail so I may learn more thoroughly.
Attached Files
File Type: zip ZBar.zip (176.6 KB, 193 views)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » I Need some Help On an Addon I'm working On

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off