local _;
local unpack, pairs = unpack, pairs;
local format = string.format;
local _;
local unpack, pairs = unpack, pairs;
local format = string.format;
local registerUnitEvents = OmaUFEvents.RegisterUnitEvents;
local registerCastEvents = OmaUFCastBar.RegisterCastEvents;
local registerUnitEvents = OmaUFEvents.RegisterUnitEvents;
local registerCastEvents = OmaUFCastBar.RegisterCastEvents;
local function createFrame(framename, securename, parent, unit, anchorX, anchorY)
local secure = CreateFrame("Button", securename, parent, inheritedFrames);
local frame = CreateFrame("Frame", framename, parent);
local function createFrame(framename, securename, parent, unit, anchorX, anchorY)
local secure = CreateFrame("Button", securename, parent, inheritedFrames);
local frame = CreateFrame("Frame", framename, parent);
secure:SetScript("OnLeave", hideTooltip);
-- set attributes
-- TODO other set of click cast on boss frames possibly
secure:SetScript("OnLeave", hideTooltip);
-- set attributes
-- TODO other set of click cast on boss frames possibly
- secure:RegisterForClicks("AnyDown");
- for attr, val in pairs(attributes) do
- secure:SetAttribute(attr, val);
- end
+ --secure:RegisterForClicks("AnyDown");
+ --for attr, val in pairs(attributes) do
+ -- secure:SetAttribute(attr, val);
+ --end
-- rest give target and menu
secure:SetAttribute("*type1", "target");
secure:SetAttribute("*type2", "togglemenu");
-- rest give target and menu
secure:SetAttribute("*type1", "target");
secure:SetAttribute("*type2", "togglemenu");
attributes = Settings.Character.Clickheal;
createFrame("OmaBoss1", "OmaBossSecure1", parent, "boss1", anchorX, anchorY);
attributes = Settings.Character.Clickheal;
createFrame("OmaBoss1", "OmaBossSecure1", parent, "boss1", anchorX, anchorY);