rendered paste bodyfunction AutoBuffFu:OnTooltipUpdate()
-- Have been unable to get the tooltip to work, keeps erroring out with:
-- Count: 5
-- Error: ...rface\AddOns\AutoBuff\libs\Tablet-2.0\Tablet-2.0.lua:2265: attempt to index a nil value
local cat = Tablet:AddCategory(
'text', TITAN_AUTOBUFF_ID,
'columns', 2,
'textR', 1,
'textG', 1,
'textB', 1
);
if (AutoBuff_Data[vC]['e'] == 1) then
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Enabled",
'text2R', 0,
'text2G', 1,
'text2B', 0
);
else
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Disabled",
'text2R', 1,
'text2G', 0,
'text2B', 0
);
end
local cat = Tablet:AddCategory(
'text', TITAN_AUTOBUFF_ID,
'columns', 2,
'textR', 1,
'textG', 1,
'textB', 1
);
if (AutoBuff_Data[vC]['d'] == 1) then
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Enabled",
'text2R', 0,
'text2G', 1,
'text2B', 0
);
else
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Disabled",
'text2R', 1,
'text2G', 0,
'text2B', 0
);
end
local cat = Tablet:AddCategory(
'text', TITAN_AUTOBUFF_ID,
'columns', 2,
'textR', 1,
'textG', 1,
'textB', 1
);
if (AutoBuff_Data[vC]['water'] == 1) then
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Enabled",
'text2R', 0,
'text2G', 1,
'text2B', 0
);
else
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Disabled",
'text2R', 1,
'text2G', 0,
'text2B', 0
);
end
local cat = Tablet:AddCategory(
'text', TITAN_AUTOBUFF_ID,
'columns', 2,
'textR', 1,
'textG', 1,
'textB', 1
);
if (AutoBuff_Data[vC]['tap'] == 1) then
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Enabled",
'text2R', 0,
'text2G', 1,
'text2B', 0
);
else
cat:AddLine(
'text', "Active:",
'textR', 1,
'textG', 1,
'textB', 0,
'text2', "Disabled",
'text2R', 1,
'text2G', 0,
'text2B', 0
);
end
cat:AddLine("text", "");
Tablet:SetHint(L"tablethint");
end