Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-21-21, 04:51 PM   #1
nibsrs
A Defias Bandit
Join Date: May 2021
Posts: 3
Exclamation 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)
	f:SetWidth(1)
	f:SetHeight(1)
	f:SetAlpha(1)
	f:SetPoint("CENTER", 0, 0)
	f.text = f:CreateFontString(nil,"ARTWORK")
	f.text:SetFont("Fonts\\FRIZQT__.TTF", 14, "OUTLINE")
	f.text:SetPoint("CENTER", 0, 0);
From here I don't know where to go, can someone help?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Create Text Frame with Player's Health


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