WoWInterface - View Single Post - Arena Numbers in ArenaEnemyFrame
View Single Post
06-26-20, 06:09 PM   #2
An Aku'mai Servant
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 36
I don't really know much about arena, but after taking a look at FrameXML/Blizzard_ArenaUI.lua for the first time, I would guess that a crude answer is maybe something like this?

Lua Code:
  1. for i=1,5 do
  2.   local frame = _G["ArenaEnemyFrame"..i]
  3.   frame:HookScript("OnEvent", function(__, event, arg1)
  4.     if arg1 == frame.unit and event == "UNIT_NAME_UPDATE" then
  5.      frame.name:SetText(i)
  6.     end
  7.   end)
  8. end

Again, I know nothing about arena so I could be totally off.
  Reply With Quote