View Single Post
07/08/21, 08:44 AM   #4
andy.s
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 40
You can try this approach instead of hooks:

Lua Code:
  1. local originalFunction = Battleground_Scoreboard_Player_Row.UpdateRow
  2. Battleground_Scoreboard_Player_Row.UpdateRow = function(self)
  3.     -- Put any code you like here, call the original function if needed...
  4.     local data = self.data
  5.     originalFunction(self)
  6.     self.nameLabel:SetText(data.displayName + data.characterName)
  7. end

I don't even know if it'll work, but theoretically it should Unfortunately, hooks have very limited use, so if you want to change ZOS code, then you'll probably need to do it the "dirty" way.
  Reply With Quote