View Single Post
02/08/15, 08:08 AM   #39
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Garkin View Post
... and then make a new definition of GuildRosterRow_OnMouseUp method.
Or amend its environment. Not entirely sure, but I think it should work (as long as the method is accessible):
Lua Code:
  1. local orgEnv = getfenv(GUILD_ROSTER_KEYBOARD.GuildRosterRow_OnMouseUp)
  2. local newEnv = setmetatable({playerAlliance = GetUnitAlliance("player")}, {__index = orgEnv})
  3. setfenv(GUILD_ROSTER_KEYBOARD.GuildRosterRow_OnMouseUp, newEnv)
  Reply With Quote