Create Text Frame with Player's Health
Hey guys, I have zero knowledge in LUA scripting, however I am trying to know a bit more about it. I want to create a simple text on screen which will show the current player's health.
This is what I've done so far, but got stuck: Code:
local f = CreateFrame("Frame", nil, UIParent) |
Something simple:
Lua Code:
|
Quote:
|
Quote:
It should be gold text in the middle of your screen even if it's just 0/0. If you're comming from an initial login rather than a /reload you can change the inital text setting to the PLAYER_LOGIN event. You can change the "UNIT_HEALTH" to "UNIT_HEALTH_FREQUENT" if your doing this in Classic (leave it as is for BCC). Lua Code:
|
Quote:
|
All times are GMT -6. The time now is 02:23 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI