WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Trouble with UnitHealth("player") (https://www.wowinterface.com/forums/showthread.php?t=11991)

Thalas 08-29-07 02:31 PM

Trouble with UnitHealth("player")
 
Hi, i'm new to Addons and before doing something useful, i'm practicing on making interfaces and stuff, and I found problem when I tried to 'write' the player's health on the addon (or any other data from him). I couldn't find a way to make it go on the Frame as a text, if I try to mention it on the XML file, the addon won't work, only on the LUA file. No problem with that, as long as I can make the XML file get the required info from the LUA code, but I can't seem to find a way to do so.
If anyone could help with that, i'd be really grateful. Thanks in advance and sorry for any English mistake.

(And sorry if this is not the right place for this, I didnt know wheter put it on XML or LUA forum, so feel free to move it please).

ravagernl 08-29-07 03:24 PM

http://www.wowwiki.com/XML_User_Interface#FontString

Thalas 08-31-07 07:33 AM

1 Attachment(s)
I spent a whole day trying to figure it out following the link you posted but I couldn't seem to find the syntax for the Fontstringobject nor any way to make it work, could you please give me an example? Or just give me a name of an Addon where I can see how it work? I looked for some but didn't come to my mind any that get char information and writes on a frame

What I'm trying to do is to make the Addon get char info and 'complete' the tags on the picture attached. Whenever I try to make it, the addon won't load

Thalas 10-15-07 07:37 AM

No one else? x.x
A long time passed, and now I came back to scripting, still no success in this
(I gave up trying on my own after many days failing it)
Thanks

Taffu 10-15-07 07:48 AM

Can you post what you currently have coded into "CODE" block so we can view your source and try to help you out?

Rabscuttle of Executus 10-15-07 09:03 AM

Thalas, if you are still interested I can post code here to do exactly what you want, or email it to you, or pm it to you, whatever. It would probably be easier just to show you code that works AND is easy to understand then explain it to you in english. But beyond printing textual information to a frame that updates in real time (health, mana experience) I can't help you, I never got beyond that :D

Eidolarr 10-17-07 07:18 AM

Post what you have and we'll see if we can find the issue :]

Rabscuttle of Executus 10-17-07 08:11 AM

Here Thalas if you are still following this thread and need help, dl this zip, it is an addon accomplishing I think what you want, just copy the code and add to it how ever you see fit

here


All times are GMT -6. The time now is 10:29 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI