Download
(151Kb)
Download
Updated: 08-03-10 03:18 AM
Pictures
File Info
Updated:08-03-10 03:18 AM
Created:04-09-10 08:35 AM
Downloads:4,722
Favorites:38
MD5:

Broker H3DungeonCooldowns

Version: r017
by: SuranthianH3 [More]

All users with revision 10 or under, delete it before you install a newer version

***IMPORTANT***
This requires a databroker addon such as
Chocolate Bar or TitanPanel.

Broker_H3DungeonCooldown is only available in English and was designed for enUS. If you aren't enUS, the only thing that should break is expansion sorting. Just disable expansion headers.

Broker H3 DungeonCooldowns started out as a quick "Hello World" test to start out coding Lua in WoW and eventually turned into this. It is a somewhat simple DataBroker Display that shows what dungeons you are saved to and how long until they unlock.

Please provide feedback in comments. Also provide suggestions for more features. I will update with a list of features I plan on adding when there are enough.

It is important that if you find a bug that you please a comment here, otherwise the bug will not be fixed.

Features
Self explanatory section title is self explanatory.

  • Showing data on any/every character on your account (current server). (Note: Requires you to log in atleast once so the addon can register the toon's data into the database.)
  • *NEW* Time for dungeon deserter and random dungeon queue cooldown.
  • Customizing the look of your tooltip with options such as:
    • 2 optional columns for the save's ID and the unlock's date and time (rounded to the nearest 15 minutes, based off of local time)
    • Enabling and disabling the display of expansion content
    • Enabling and disabling the icon's text.
    • *NEW* Adding whitespaces or expansion names between expansion content.
    • Toggling showing unlocked dungeons.
    • Changing the maximum height of the tooltip before it uses a scrollbar.
    • Font options:
      • Change tooltip's text font using shared media (Default Friz Quadrata TT)
      • Change tooltip text sizes (Header, name, hints, text)
    • Change colors of:
      • Dungeon Names
      • Dungeon Difficulties
      • Unlock time remaining (Gradually changes colors as the time expires. So, assuming you are on the default settings and it's a heroic, it will be red at 24 hours, orange at 18, yellow at 12, lime at 6, and green when it's a few minutes.)
      • Class colors (for name display)
      • The separators (Horizontal lines in the tooltip)

  • *NEW* Dungeon Finder Information Including:
    • The average time and average time for every role
    • The role(s) you are queued as in the dungeon finder.
    • *NEW* The time left to accept the invite and what role you are assigned in the group.
    • The roles for the group that have been found (also shows beside the icon, regardless of icon only)
    • Who has accepted the invitation (when the group has been made), even before you accept it!
    • *NEW* Hiding the minimap icon (if wanted)
  • Clicking Line Scripts:
    • Clicking a line to report its info to chat (Doesn't matter what type of click, as long as it isn't a shift click on a current toon's line)
    • Shift-Clicking a line to toggle lock extensions


Known Issues
Issues that are.. Known...
The chat report feature inserts the text without enabling text input, so pressing enter opens the edit box (sets it to full opacity), and clears what was in it.
I am aware of this issue but I do not have a solution at the moment. I am not very experienced in handling widgets. Before, I was using ChatFrameEditBox:Show() and ChatFrameEditBox:Insert(string), but with the new chatbox, the now "ChatFrame1EditBox" is already shown, but doesn't input text unless you hit enter. So I will have to find another way.

Just click the edit box after clicking the line then hit enter, or hit enter, click the line, then hit enter again.

Revision 016 - Bugfix (3.3.5)
- Uploaded a fix by spAnser for the random dungeon cooldown and dungeon deserter.

Revision 016 - Bugfix (3.3.5)
- Forgot for a second that some functions return nil instead of 0 sometimes. Quick fix. Only need this update if you got revision 15.

Revision 015 - FEATURES (Minor) (3.3.5)
- Added Dungeon Deserter and Random Queue Cooldown
- Fixed a minor typo. Removed brackets from dungeon invite roles, but not on the queue. They are now removed from both.
Sorry for the wait, been busy

Revision 014 - FEATURES (3.3.5)
- Removed brackets from LFD roles to preserve space
- Added whitespaces between expansions (none, whitespace, or expansion name)
- Made seperators customizable (color and height)
- Added showing time left and your role on the icon when an invite is avaliable.
- Added a teleport in and out button at the top of the tooltip (EXPERIMENTAL: Only shows if you have a role assigned)
- Added the ability to hide the minimap icon for the LFD system, since this does everything it does

Revision 013 - FEATURES (3.3.3)
- Added dungeon sorting (Expansion, then name, then difficulty)
- Made current character display at the top of the character list instead of where it is alphabetically.
- Added dungeon finder information! Shows average time for every role, average time in general, what you are queued as, what your currently forming group has so far, who accepted the invitation (even before you accept it!)

Revision 012 - BUGFIX (3.3.3)
- Readded AceLocale-3.0


Revision 011 - MAJOR VERSION (3.3.3)
- Rerelease. Remade the entire addon because I know more about Lua now. The nil table bug is now 100% gone without using garbage collection. Delete your old version before installing this new one. It's a "new" addon (different folder name).


Revision 010 fix (3.3.3)
- Nothing important or new, just makes it appear in the addons list next to all of my other mods instead of alone.


Revision 010 - BUGFIX (3.3.3)
- Added garbage collection. No more random nil tables! :D


Revision 009 - BUGFIX (3.3.3)
- Sometimes, if you crash or disconnect, a characters data will go nil (usually the one you're on when you DC). Now, it will notify you upon login/reload that it happened and clear the toon's data, turning it into an empty table with 3 more empty tables (Vanilla, BC, WotLK) instead of getting an error that breaks the addon's tooltip display altogether by leaving it nil. TL;DR - No more table errors.


Revision 008 - BUGFIX (3.3.3)
- Formatting on the chat report had a bug with the name with some settings configured in certain ways (it was either considered nil or it was the wrong character, depended on your character selection setting).


Revision 007 - BUGFIX (3.3.3)
- The report did not have the correct character name and server. It instead reported the last saved character's name.


Revision 006 - FRIDAY-FEATURES (3.3.3)
- Added 2 new columns (optional) for ID and unlock date/time and save ID. Allows toggling expansion headers and whitespaces, setting column alignment, toggling instance extensions for your current toon, and even sending a lines data to chat! I also updated the libraries and showed how long until the addon will load on the icon (when you change options or logon), and made it update the data on rollover instead of every 20 seconds.


Revision 005 - BUGFIX (3.3.3)
- Fixed a bug for people who don't have any other addons that use LibQTip (minor spelling error in the .toc file caused it to not be included). This patch is only needed if you are experiencing a certain error regarding LibQTip in the comments.


Revision 004 - BUGFIX (3.3.3)
- Instances that are unlocked not being registered as an unlocked dungeon if you aren't on that character.


Revision 003 - FRIDAY-FEATURES (3.3.3)
- Allows the showing of date on every single character on your account that you have logged onto with the addon installed.


Revision 002 - BUGFIX (3.3.3)
- Addon's variable tables being invalid on characters that have never done a savable dungeon.


Revision 001 - Initial release (3.3.3)
- Had a bug for toons that have never been in an instance that is savable, so a new version was released less than 30 minutes later.
Post A Reply Comment Options
Unread 04-16-10, 10:01 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Originally posted by oXid_FoX
Is it possible to enabling and disabling the display of title expansion (Vanilla, Burning Crusade, and Wrath of the Lich King)?
Currently, no. But if really needed I can make a simple option to get rid of them and the whitespaces that divide the expansions.

Originally posted by Zidomo
Thanks for the quick reply! I was too quick on editing my post . Yes, I since looked a bit more closely at your description & screenshots; you are providing a scrollbar.

For reference, here is the screenshot from the Broker RaidSave page on how it fits all that data into the tooltip without making it too wide. The additional account player's data goes immediately below the one above. Its mostly getting rid of unneeded/excessive whitespace.

One other dev issue seen here: your embedded libraries could be updated. The last LibQTip release was on Feb. 8, the last alpha from a few days ago. For Ace3 it appears you are using an alpha version from Feb.; the latest alpha (AceGUI & AceDB updates) is from March 16.
Thanks for the advice, this was my first addon (at the time it was just a hello world test/database test so I didn't care if I had outdated libraries), so I just gathered databases from other broker addons I had. I will update these next Friday aswell.

With the character whitespaces, I can just make an option to toggle it.
Last edited by SuranthianH3 : 04-16-10 at 10:11 AM.
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 09:55 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Thanks for the quick reply! I was too quick on editing my post . Yes, I since looked a bit more closely at your description & screenshots; you are providing a scrollbar.

For reference, here is the screenshot from the Broker RaidSave page on how it fits all that data into the tooltip without making it too wide. The additional account player's data goes immediately below the one above. Its mostly getting rid of unneeded/excessive whitespace.

One other dev issue seen here: your embedded libraries could be updated. The last LibQTip release was on Feb. 8, the last alpha from a few days ago. For Ace3 it appears you are using an alpha version from Feb.; the latest alpha (AceGUI & AceDB updates) is from March 16.
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 09:49 AM  
oXid_FoX
A Deviate Faerie Dragon
 
oXid_FoX's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 147
Uploads: 1
Is it possible to enabling and disabling the display of title expansion (Vanilla, Burning Crusade, and Wrath of the Lich King)?
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 09:28 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Originally posted by Zidomo
There are a number of mods out there like this; my favorite mod of this type has long been Broker RaidSave (on this site). But the author of it has gone from WoW and its abandoned (but still works). So nice to see this one in active development .

I really like the tooltip & data formatting of Broker_H3DungeonCooldowns. But one thing Broker RaidSave has the this doesn't yet is the ability to display the raidID of every saved raid in the tooltip.

It optionally displays those IDs to the right of the cooldown/unlock time in the tooltip. So if you could add that, it would be great.

In regards to adding all account characters to a database as you have (it wouldn't be of use to many without that), Broker RaidSave doesn't seem to have a problem with excessively large tooltips. If your formatting and/or a large number of saved dungeons does create a large tooltip, you can use the functionality of LibQTip to create a vertical scroll bar on the right side of the tooltip. So that instead of making the tooltip too large, you can just scroll the data.
Thanks for the feedback. I plan on adding the raid IDs and possibly name abbreviations in parenthesis in the next patch (I update every Friday). As for the vertical scrollbar, I already use LibQTip, notice in the screenshot it has an option for tooltip height.

EDIT: I suppose I could add some sort of datestamp as a toggled option that way I don't make the tooltip excessively large (right now it seems nice and compact, adding 2 more columns would make it pretty large in comparison, so I will make the unneeded ones toggled.
Last edited by SuranthianH3 : 04-16-10 at 09:31 AM.
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 08:56 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
There are a number of mods out there like this; my favorite mod of this type has long been Broker RaidSave (on this site). But the author of it has gone from WoW and its abandoned (but still works). So nice to see this one in active development .

I really like the tooltip & data formatting of Broker_H3DungeonCooldowns. But one thing Broker RaidSave has the this doesn't yet is the ability to display the raidID of every saved raid in the tooltip.

It optionally displays those IDs to the right of the cooldown/unlock time in the tooltip. So if you could add that, it would be great.

In regards to adding all account characters to a database as you have (it wouldn't be of use to many without that), Broker RaidSave doesn't seem to have a problem with excessively large tooltips. If your formatting and/or a large number of saved dungeons does create a large tooltip, you can use the functionality of LibQTip to create a vertical scroll bar on the right side of the tooltip. So that instead of making the tooltip too large, you can just scroll the data.
Last edited by Zidomo : 04-16-10 at 09:38 AM.
Report comment to moderator  
Reply With Quote
Unread 04-16-10, 03:47 AM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
New feature!

I just finished up the feature to allow showing data on every character on your account! It also gradually changes color based on how long until the lock expires instead of just jumping from the high, medium, and low colors.
Report comment to moderator  
Reply With Quote
Unread 04-09-10, 04:27 PM  
satterwc
A Deviate Faerie Dragon
 
satterwc's Avatar

Forum posts: 16
File comments: 12
Uploads: 0
I'm pretty impressed that this is your first addon. I have been missing a nice display for broker for just this thing, so thanks! I look forward to seeing other addons and updates.
Report comment to moderator  
Reply With Quote
Unread 04-09-10, 01:14 PM  
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 4
Originally posted by Bullwraith
Perhaps it is beyond the scope of what you want to do, but it would be nice if it could show the instance cooldowns for all of the toons on an account regardless of the toon you happen to be on
Yeah I was thinking about doing that about half-way through, but I would prefer waiting until I know databases more in order to prevent memory leaks. :P

When I DO learn how to, though, I plan on doing this. The only issue is that it will make the tooltip excessively large, so I would have to do character selection in the options menu or something to that extent.

Thank's for your feedback!
Last edited by SuranthianH3 : 04-09-10 at 01:15 PM.
Report comment to moderator  
Reply With Quote
Unread 04-09-10, 12:48 PM  
Bullwraith
A Defias Bandit
 
Bullwraith's Avatar

Forum posts: 2
File comments: 5
Uploads: 0
Perhaps it is beyond the scope of what you want to do, but it would be nice if it could show the instance cooldowns for all of the toons on an account regardless of the toon you happen to be on
__________________
Don't cry because you hunt them
Last edited by Bullwraith : 04-09-10 at 12:49 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.