держи, дружочик
local frame = CreateFrame("Frame", nil, UIParent)
local function OnUpdate(self,elapsed)
local a={WorldFrame:GetChildren()}
for i=1,#a do
local status_bar = a[i]:GetChildren()
if status_bar and status_bar:GetObjectType()=="StatusBar" then
local _,max_value = status_bar:GetMinMaxValues()
local value = status_bar:GetValue()
local childrenRegions = {a[i]:GetRegions()}
childrenRegions[8]:SetText(tostring(math.ceil(value/max_value*100)))
end
end
end
frame:SetScript("OnUpdate", OnUpdate)




Ответить с цитированием
