Trying to pass a value to a function table
For my mod, I am adding functions to add support for other existing addons. When this mod loads, it checks if the addons exist and adds entries to a table
Code:
Code:
function CSB_AddonExtensions( spellButton ) |
Code:
function CSB:Clique( spellButton) Code:
function CSB.Clique (self, spellButton) If you call action(spellButton), the first parameter (self) would take the value of spellButton and the second would be empty. Try to use: Code:
action(CSB, spellButton) Hope, this helps :) |
Thanks for the explanation.
I am trying to make my mod be directly compatible with other mods that use the spell book instead of indirectly compatible. For now, Clique will be the first to be adapted and then Trinity Bars because those two came up in some bug problems. When it comes to crafting an object, I seem to be a perfectionist. |
All times are GMT -6. The time now is 11:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI