WoW:Sea.wow.tooltip.RegisterScholar: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page Sea.wow.tooltip.RegisterScholar to WoW:Sea.wow.tooltip.RegisterScholar without leaving a redirect)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre style="font-face:'Comic Mono'">
<pre style="font-family:'Comic Mono';">
RegisterScholar( scholarTable )
RegisterScholar( scholarTable )
  scholar - table
  scholar -- table
  {
  {
  id - Unique id for the scholar
  id -- Unique id for the scholar
  callback - callback function
  callback, -- callback function
callback( bookType )
-- callback( bookType )  bookType - 1 spellbook, 2 petbook, 3 both
   
  feedback -- table
bookType - 1 spellbook, 2 petbook, 3 both
  feedback - table
  {
  {
  spell = true, - Set this to get called when the spellbook updates
  spell = true, -- Set this to get called when the spellbook updates
  pet = true, - And for petbook updates.
  pet = true, -- And for petbook updates.
  }
  },
   
   
  description - description string
  description, -- description string
  }
  }
</pre>
</pre>
[[Category:Cosmos (AddOn)]]
[[Category:Cosmos (AddOn)]]

Latest revision as of 04:48, 15 August 2023

RegisterScholar( scholarTable )
 scholar			-- table
 	{
 		id			-- Unique id for the scholar
 		callback,	-- callback function
 					-- callback( bookType )  bookType - 1 spellbook, 2 petbook, 3 both
 		feedback	-- table
 			{
 				spell = true,	-- Set this to get called when the spellbook updates
 				pet = true,		-- And for petbook updates.
 			},
 
 		description,	-- description string
 	}