I need an event that occurs later than PLAYER_ENTERING_WORLD
Not sure how many people use Communities at all, but there's an annoying bug where community chat can be hidden when you log in. To fix this in-game, you can open your Chat Channels list and click the box next to the community chat channel to hide it, and then click it again to reshow it.
With this knowledge, I found ChatFrame_RemoveChannel and ChatFrame_AddChannel serve the same purpose as clicking that box in the chat channel UI. Code:
ChatFrame_RemoveChannel(DEFAULT_CHAT_FRAME, "Community:XXXXXXX:1") Code:
local frame=CreateFrame("Frame"); |
I'm new to lua and wow lua so im trying to get a grasp at how things work and what is life cycle of an addon(s)...
I struggled with this also and havent found any solution besides delaying my functions also... For me workd 10 sec... i guess that depends on speed of computer.. how fast can load shit.. dunno in what time counter starts.. is it after loading all addons.. or that one particulary.. or after loading all addons and some blizzard event... i just noticed that sometimes my function fires after 5-6 seconds image appears on mz screen.. sometimes its 8-9... I'd like better solution aswell :) Still im puzzled how to reposition, set height/width of combat frame... all others work as espected except that one... well i guess in time :) |
Possibly UPDATE_CHAT_WINDOWS
|
The addon Blizzard_Communities is LoadOnDemand. Out of all actions in the UI that load it, the one that usually gets it first is when your chat channel list updates in FrameXML\ChannelList.lua:101
Lua Code:
The event you want is ADDON_LOADED after force-loading Communities at login: Lua Code:
You don't need to call ChatFrame_RemoveChannel. It's possible that the act of toggling the community loads Communities and for some reason Blizzard doesn't load Communities appropriately at login. |
All times are GMT -6. The time now is 04:07 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI