

That’s it, really, your frame will be draggable. TestAddon_MainFrame:StopMovingOrSizing() FontString where will be real coordinate you can find in the bottom,Īctually that enough with XML, but as I promised lets make the frame draggable. This FontStrings will show only text x = and y =. So, in other words $parent_yString positioning just under the $parent_xString.

Point of $parent_xString (or TestAddon_MainFrame_xString, see the name of the in Ok lets try to clarify that, TOPLEFT point of your FontString will be positioning relatively to BOTTOMLEFT I just would like to say about Anchors in the second FontString.Īs you can see there is new attributes: point, relativeTo, relativePoint. I think you can understand most part of this xml. I will describe first two.Īnd open main.xml from github to easy understand My layer contains several FontString, this is just an element for text. Layers and there is no any wrong about this. I made just one layer for our information that enough, mostly it matter of architecture, you can make several Now more functional part of xml file, layers Layer info. īgFile="Interface\Tooltips\UI-Tooltip-Background" texture for backgroundĮdgeFile="Interface\Tooltips\UI-Tooltip-Border" texture for border Now let’s make our window more attractive. By this notation it will absolute sizing also it works with more. There was two type of size dimension: absolute and relative. You should place all your elements under this frame. Real frame of our addon you can find here. Movable="true" and it can move, but that not enough to move frame, we talk about it later Hidden="false" actually it false by defaultĮnableMouse="true" your frame will able interact with mouse Parent="UIParent" means that your frame child of main frame
#SIMPLE COORDS WOW CODE#
Name="TestAddon_MainFrame" must be unique, because you will interact this in lua code

We create one simple xml file which describe an interface of our addon. This parameters enough, here you can find more. Main.xml files, actually you can write here only your xml file, because it include another lua files. # Notes: Show your coordinates, azimyth and pitch description # Title: Test Addon title of your addon, can be more readable # Interface: 60100 version of the game where your addon should work, if it less than last version, in the game you will see warning about out of date addon. TOCĬreate a ColorEncode.toc file, with this content: # Interface: 60100 Actually I doing it, I have lua/ and xml/ folders. Of course, you can create directories in the main addon folder. TOC - (Table Of Contents) required file, must be the same as directory name, provide information about your addon to the game (files, SavedVariables, Version, Tittle, etc.) Addon structureĪs you know addons store in “World of Warcraft/Interface/AddOns/”.Īddon folder contains TOC file, LUA and XML files. And next tutorial will be about Ace3 library. Addon you can find here.Īlso there are some libs for developing. This addon will show coordinates, azimuth and pitch in a small window. It will be a very simple addon, even without buttons.
#SIMPLE COORDS WOW FULL#
But, many of them are deprecated or not give you the full understanding about addons structure. There are many tutorials about creating addons. I have tried to write my own simple addon for WoW.
