-
Posted by chonli on Thu, 11 Sep 2008 13:27:03
Is it possible to do a rss addon?
-
Posted by chonli on Thu, 11 Sep 2008 13:27:04
Is it possible to do a rss addon?
-
Posted by morlando on Thu, 11 Sep 2008 14:36:13
Addons cannot read data sources outside the game during operation. Saved Variables are the only method of storing/retrieving data and this can only be accomplished at UI reload.
-
Posted by chonli on Sat, 13 Sep 2008 06:06:33
Hhhuumm, Then, how group calendar synchronize events for all players of a guild?
-
Posted by Magnamus on Sat, 13 Sep 2008 08:10:32
I would assume by using that chat system (SendAddonMessage)
-
Posted by chonli on Sat, 13 Sep 2008 10:28:01
How it works?
I send the message and how the addon can take it?
Any example, please?
Thanks.
-
Posted by Magnamus on Sat, 13 Sep 2008 20:10:32
XSSFilter could not parse (X)HTML: <p>It's all in the book tbh, but here's the main techy stuff (I think... might not be 100%).</p> <p>Register the CHAT_MSG_ADDON event, something like:</p> <p>frame = CreateFrame("Frame",nil,UIParent);<br />frame:SetScript("OnEvent", EventHandler( self ));</p> <p><span style="font-size: x-small;"> <p>frame:RegisterEvent("CHAT_MSG_ADDON")</p> <p>-- To process messages, in your event handler, you need something like:</p> <p>function EventHandler<span style="font-size: x-small;">(frame, event, ...)<br /> </span><span style="font-size: x-small;">if event == "CHAT_MSG_ADDON" then<br /> local message = ...;<br /> -- do whatever with message (read processing instruction, etc)<br /> if message == "ShowPopupWindow" then<br /> -- do stuff<br /> end</span><span style="font-size: x-small;"><br /> end<br />end</span></p> <p>To send the message, use something like:</p> <p>SendAddonMessage("AddonNameSoYouCanIdentifyYourOwnEvents", message, "WHISPER", playername)</p> <p></span></p></p>
-
Posted by Magnamus on Sat, 13 Sep 2008 20:14:31
XSSFilter could not parse (X)HTML: <p><span style="font-size: x-small;"> <p>Just noticed, the line<br /> message = ...;<br />Should be<br /> AddOnName, message, channel, sender = ...;</p> <p>Then you can check AddOnName so you only process your own, and you know who sent it (sender), etc. </p> <p></span></p></p>
-
Posted by chonli on Sun, 14 Sep 2008 04:33:47
Thank you very much.
I'll try this after test my ScrollingMessageFrame