masterindex_buttons Button DB Node
If I add a button using
Code:
LibraryData.addIndexButton("npc", "button_makenpc")
how do I get the DB node of the list window that button is on?
I add this button to the NPCs list window.
I want the "npc" node in db.xml. I'd like to use
Code:
window.getDatabaseNode().getNodeName()
rather than hard-coding "npc".
But
Code:
window.getDatabaseNode()
returns nil, because window is an instance of masterindex_buttons.
I need the container of masterindex_buttons but I can't figure out how to get it.
Thanks for the help.