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

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
  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 )
Line 12: Line 12:
  {
  {
  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.
  }
  }
   
   

Revision as of 22:00, 15 June 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
 	}