View Single Post
10/04/23, 06:02 PM   #4
Rex87
Join Date: Oct 2023
Posts: 6
thank you all for the help I had trouble figuring out how to make this work and with help of someone, I got this, it makes the icon completely dissappear but appears again when my companion says something even when subtitles are turned off, it's very random tho, and doesn't go away after that, I don't know why this happens, reloading UI fixes that but will reappear anyway
Code:
deleteIcon={}
deleteIcon.name="GamepadChatIconBegone"
function deleteIcon.begone() 
GAMEPAD_CHAT_SYSTEM.chatBubble:SetAlpha(0)
EVENT_MANAGER:UnregisterForEvent(deleteIcon.name,EVENT_ADD_ON_LOADED)
SecurePostHook(GAMEPAD_CHAT_SYSTEM, "remove", function()
GAMEPAD_CHAT_SYSTEM.chatBubble:SetAlpha(0)
end) 
end
EVENT_MANAGER:RegisterForEvent(deleteIcon.name,EVENT_ADD_ON_LOADED,deleteIcon.begone)
as I said this is just temporary fix still
  Reply With Quote