- 0 Talk
-
Sea.wow.tooltip.create
This article is a part of the documentation of the Sea function library
-- create (tooltipTable, tooltipName)
--
-- Returns nil if failed, true if successful.
-- Dont forget to set ownership of the Tooltip before creation:
-- Use ToolTip:SetOwner, Sea.wow.tooltip.smartSetOwner, or GameTooltip_SetDefaultAnchor
-- *Currently ignores line size, font*
--
-- args
-- (table tooltipTable, String tooltipName)
-- tooltipTable - associated table of the strings for the tooltip
-- tooltipName (Optional) - the name of the tooltip frame, uses "GameTooltip" as default
--
-- Returns:
-- true (success) or nil (failure)
--
-- Example Usage:
-- local tooltip = Sea.wow.tooltip.scan();
-- table.insert(tooltip, {left="Cosmos Coder", leftColor={r=1}}, 2);
-- Sea.wow.tooltip.create(tooltip);
-- Example Result:
-- Insert red "Cosmos Coder" as line two of the current GameTooltip.
--