WoWInterface - View Single Post - Carbonite Notes import from old version?
View Single Post
01-07-15, 03:59 AM   #5
A Chromatic Dragonspawn
Join Date: Oct 2014
Posts: 179
The API is really simple, but a bit more documenation is always helpful, so here goes:

Lua Code:
  1. Nx.Notes:AddonNote(folder,name,icon,id,x,y)
  • "folder" is your addon/sub-addon name, for filtering, e.g. "TimelessIsleTreasures"; all notes that belong together share the same folder name.
  • "name" is the unique name of the note, e.g. "moss-covered chest 1". A second Note with the same name will overwrite the first one.
  • "icon" is a number between 1 and 28 (search the NxNote.lua code for self.NoteIcons) - we can probably either add more icons or allow to introduce your own textures rather easily, by adding "or index" to line 157.
  • "id" is the mapid of the zone your note should be displayed to; a look at Carbonite/Data/Zones.lua may be helpful in finding the correct id.
  • "x" and "y" are rather self-explanatory.

Last edited by atl77 : 01-07-15 at 09:36 AM.
  Reply With Quote