JoinChannelByName
Hello,
I started to code my 1st addon this morning. It should join a channel on game startup. Test.lua looks like this: function Test_OnLoad() JoinChannelByName("Test"); ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "Test"); end Now I have 2 problems: 1.) After startup there ist no channel test 2.) my other channels were move down by one. Means the common channel is no #2 the trade channel #3 and so on How can I fix this ? |
Ok, I found a work a round.
function Test_OnLoad() Chronos.scheduleByName("JoinTest", 60, JoinTest); end function JoinTest() JoinChannelByName("Test"); ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "Test"); end But I can't believe that such an easy problem does need a dependency of Chronos :eek: |
All times are GMT -6. The time now is 08:05 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI