Quantcast
WoWInterface - View Single Post - Bubbles in 9.0.1
View Single Post
08-19-20, 12:07 AM   #1
Platine
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 36
Bubbles in 9.0.1

I have a function fired on event CHAT_MSG_MONSTER_SAY - ChatFrame_AddMessageEventFilter("CHAT_MSG_MONSTER_SAY", ChatFilter) :

Code:
local function BB_bubblizeText()
  for i = 1, WorldFrame:GetNumChildren() do
     local child = select(i, WorldFrame:GetChildren());
     if not child:IsForbidden() then
        for j = 1, child:GetNumRegions() do
           region = select(j, child:GetRegions());
           ----more code
        end
     end
  end
  BB_ctrFrame:SetScript("OnUpdate", nil);
end


local function ChatFilter(self, event, arg1, arg2, arg3, _, arg5, ...)
   if (GetCVar("ChatBubbles")) then
      BB_ctrFrame:SetScript("OnUpdate", BB_bubblizeText);
   end
end
Method child:GetNumRegions() return always 0 now.
Is now any other way to review bubblized frames on the screen?

Last edited by Platine : 08-19-20 at 12:18 AM.
  Reply With Quote