local CTimerAfter = C_Timer.After;
local barTexture = "Interface\\AddOns\\kehys\\images\\minimalist";
+local class = nil;
+local attributes = {};
local function showTooltip(frame)
GameTooltip_SetDefaultAnchor(GameTooltip, frame);
end);
f:SetScript("OnEnter", showTooltip);
f:SetScript("OnLeave", hideTooltip);
+ -- set attributes
f:RegisterForClicks("AnyDown");
+ for attr, val in pairs(attributes) do
+ if attr ~= "type1" and attr ~= "spell1" then f:SetAttribute(attr, val) end
+ end
+ -- rest give target and menu
f:SetAttribute("*type1", "target");
f:SetAttribute("*type2", "togglemenu");
f:SetAttribute("toggleForVehicle", false);
end
CFrame:SetScript("OnEvent", function(self)
+ _, class = UnitClass("player");
+ attributes = addon.Clickheal[class];
self:UnregisterAllEvents();
CFrame:SetFrameStrata("LOW");
CFrame:SetPoint("CENTER", nil, "CENTER");