Fandom

WoWWiki

Sea.wow.tooltip.create

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This article is a part of the documentation of the Sea (AddOn) 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.
--

Also on Fandom

Random Wiki