Well, idk your maintime, you wasnt recently in skype, i've decided to write a bit here, maybe this will help anyone else.
I am not very interested in PvP addons-spreading, but my fault is that i want to help people =D
You need: Create and destroy widgets,
If you don't need the resize (small circle-markers of enemies and/or classes and such will be bareley seen if resized to very small size) then you need /Modding Docs 101021/LuaApi/FunctionObjectAttachWidget2D.html
object.AttachWidget2D( targetId, mainForm, ATTACHED_OBJECT_POS_UP )
Which attaches 2D widget to any unit on screen.
These widgets should be LOW aligned, because they are attached by the top left corner of... Hm... Big X°Y screen-sized area... Can't really explain, just remember to align these vidgets "LOW". I've tried to do this with "Center-aligned" vidgets and was wondering why didnt it work, and then i've noticed that vidget floating in bottom right corner.
Also, AddWidget3D( self, widget, size, pos, autoResizeX, autoResizeY, cutDistance, bindPointY, minSizeLimit, maxSizeLimit ), but i didn't test it. The description and var names are very self-explanatory. Just remember to make CutDistance large enough for pvp addons, i'd prefer something really big coz on Astral War you see enemy units from far far far far away.
AttachWidget3D( objectId, wtControl3D, widget, heightOffset )
THis one attaches 3D widget to unit the same way AttachWidget2D does for 2D ones.
Well, there was a funny thing while i was testing this - somewhy it does not work(or IDK how does it work) for some widgets that are placed inside some other non-MainForm vidget, and i use a "testing buttons" addon for testing new scripts (i can test anything with text or log output without restarting game), and i have attached the whole mainPanel to some character. Nice, but then he ran away, and my MainPanel.. Well ran with him! And disappeared then! I LOL'ed =D