Hi, great UI!
I have a question regarding the durability icon on the info line.
I would like to toggle it to show permanently, but i do not write lua (or anything else) my self...
I assume I would have to change something here?
Code:
local DurabilityAlert
local function Durability_Low(self, dura)
if not DurabilityAlert then
DurabilityAlert = _G.CreateFrame("Frame", nil, self, "MicroButtonAlertTemplate")
end
if not dura then
DurabilityAlert:Hide()
elseif (not DurabilityAlert.isHidden) then
DurabilityAlert:SetSize(125, DurabilityAlert.Text:GetHeight()+42)
DurabilityAlert.Arrow:SetPoint("TOP", DurabilityAlert, "BOTTOM", 0, 4)
DurabilityAlert:SetPoint("BOTTOM", self, "TOP", 0, 18)
DurabilityAlert.CloseButton:SetScript("OnClick", function(btn)
DurabilityAlert:Hide()
DurabilityAlert.isHidden = true
end)
DurabilityAlert.Text:SetFormattedText("%s %d%%", _G.DURABILITY, dura)
DurabilityAlert.Text:SetWidth(100)
DurabilityAlert:Show()
DurabilityAlert.isHidden = false
end
end