04-25-12, 06:32 PM | #21 |
never thought about forcing blizzard addons to load... that could be bad as they don't follow the rules we are supposed to lol
|
|
09-21-12, 09:04 AM | #22 | |
The issue with both guild and the calendar is that the data is in fact NOT available to me or blizzard or anything until you actually click the button for the calendar or click on the guild button. The guild and calendar buttons are actually LOD triggers because the guild window and the calendar data only load for use if you click those buttons. Once they are clicked the data is loaded for the rest of your session but when you first log in that data is not available. Go try it... Its the same long standing issue that there has been with all the mail addons. You can not make your own mail monitoring system that functions properly without the player opening the mail box or doing as i did by linking the bliz functions to my own stuff. Blizzard has magic access to pending mail when the player doesnt and there is a "magic" tooltip for the mail button that shows data that blizzard magicaly knows but if you try to do a print on the pending mail using data and get functions available on login, it will come back nil until you open the mail box, even though blizzards magic tooltip somehow knows it without you going to a mailbox. Once again its because the mail is a magic blizzard LOD. Data for mail is not available to the player until the mailbox is opened. Data for the calendar is not available to the player until the calendar is opened and same for guild data. Even though blizzard tooltips and other such stuff functions correctly on login. Such as the pending mail tooltip showing the pending mail even though if you do a print it will return nil. go do prints on guild xp right after you log in without opening the guild window... its going to come back as nil, then open the guild window and it will come back proper. The easy fix is to have your addon open and close those windows upon login so the data is available. This of course does not work for the mail because it requires the mailbox be opened. Last edited by Grimsin : 09-21-12 at 09:20 AM. |
||
09-21-12, 04:47 PM | #23 |
Well with the following block of code I managed to get hold of your Guild Rep and XP and Events. But like you said access to the Calendar information seems to only trigger when you physically open the calendar. Then it carries out your code for the respective events.
XGIDB_Data is just my saved variables data for this test addon. Play about with it as you will. I only spent a couple of hours on it so may have missed some possibilities out. Lua Code:
__________________
All Level 70 Characters: Demon Warlock Resto Druid Disc Priest Resto Shaman Survival Hunter Augment Evoker Frost Mage Vengence Demon Hunter Rogue ( was subtlety ) Brewmaster Monk (TR) Prot Paladin (TR) Blood Death Knight ( TR) As you can see I am missing a warrior And .. I don't have all the allied races covered. Time Runner time when it happens again |
|
09-21-12, 05:57 PM | #24 | ||
As I already said, the Blizzard UI is 100% pure Lua and XML code, and is plainly visible to anyone who bothers to look at it. Here is the function that runs when you mouse over the minimap mail button: http://wow.go-hero.net/framexml/16030/Minimap.lua#213 As you can see, there's nothing "magic" about it, just simple function calls: Code:
local sender1,sender2,sender3 = GetLatestThreeSenders(); local toolText; if( sender1 or sender2 or sender3 ) then toolText = HAVE_MAIL_FROM; else toolText = HAVE_MAIL; end if( sender1 ) then toolText = toolText.."\n"..sender1; end if( sender2 ) then toolText = toolText.."\n"..sender2; end if( sender3 ) then toolText = toolText.."\n"..sender3; end GameTooltip:SetText(toolText);
Do you have any evidence of any function in the entire UI that returns values when Blizzard calls it but not when you call it under the same circumstances? (eg. the same addon is loaded, the same event has fired, etc.) I'd be extremely surprised if you could even identify one such function. Obviously functions which depend on a particular addon being loaded won't return any values before that addon is loaded -- they wouldn't return any values if the Blizzard UI called them before loading that addon, either. Instead of throwing around ridiculous claims like "it's magic!" why don't you actually test stuff, or just ask questions if you don't understand how something works?
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. |
|||
09-21-12, 06:15 PM | #25 |
“Any sufficiently advanced technology is indistinguishable from magic.” ― Arthur C. Clarke
|
|
10-03-12, 08:01 AM | #26 |
Sure you can pull the names of the top 3 pending. You could use that to highlight things maybe. BUT You can not get an accurate count of how many mails you have. Because that information is only available once you open the mailbox.
And here is where we may all have some confusion... and your right phanx none of it is magic... So im pretty sure that at some point in time the blizzard UI displayed a actual number of total mail on the mail icon when you had mail in the box. I just ran the original blizzard UI and noticed that it no longer shows a number, all it shows is the top 3 names of unopened mail. Sooo maybe your right now... but im pretty sure at one point in time blizzards ui was capable of showing a mail total when you could not get one yourself without opening the mailbox. I will go back and check into the calendar stuff again as well but... |
|
WoWInterface » Developer Discussions » Lua/XML Help » Mass confusion, loading process |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|