View Single Post
10/05/23, 10:47 AM   #6
Rex87
Join Date: Oct 2023
Posts: 6
I tried this and works, it makes it fully hidden even when the chat is visible but even while NPCs text in chat is invisible it will reappear whenever they talk, I can hide it manually by opening the chat and waiting till it hides, is there a way to make it hide all the time? or something that could check if the icon is showing and if it's showing it would hide it automatically without manually opening the chat to hide it? I wanna hide it permanently like RedirectTexture does but the other way creates other issues and many other UI elements become invisible not just the chat bubble icon which is very upsetting
Code:
local function OnAddonLoaded(event, name)
   if name == "GamepadChatIconBegone" then
       EVENT_MANAGER:UnregisterForEvent("GamepadChatIconBegone", EVENT_ADD_ON_LOADED)
 
      SecurePostHook(GAMEPAD_CHAT_SYSTEM, "Minimize", function()  
         local self = GAMEPAD_CHAT_SYSTEM
         if self.newChatFadeAnim and self.newChatFadeAnim:IsPlaying() then self.newChatFadeAnim:Stop() end
         self.chatBubble:SetAlpha(0)
      end)
   end
 

end
EVENT_MANAGER:RegisterForEvent("GamepadChatIconBegone", EVENT_ADD_ON_LOADED, OnAddonLoaded)
  Reply With Quote