Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Sea.wow.tooltip.create

From WoW Classic Wiki

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.
--