Quantcast
Download
(259 Kb)
Download
Updated: 11-22-16 11:46 PM
Pictures
File Info
Compatibility:
Return to Karazhan (7.1.5)
Updated:11-22-16 11:46 PM
Created:08-09-16 12:56 PM
Downloads:5,149
Favorites:85
MD5:
Categories:Character Advancement, TradeSkill Mods
7.1.5

ls: Toasts  Popular! (More than 5000 hits)

Version: 1.20
by: lightspark [More]

Replacement for default alert system. Better toasts, cheers!



Features
- One design for all toasts. Special alert frames have unique backgrounds;
- In-game config. Use /lstoasts (el ess toasts) command to open config panel. From there you can disable sounds, move alert frames, etc;
- DND mode. You can enable DND mode for different toast groups. Toasts in DND mode won't be displayed in combat, but will be queued up in the system. Once you leave combat, they'll start popping up. Available from in-game config;

Usage
- Install it;
- (Optional) Configure it;
- Done.

Note #1: By default, there's no ls: Toasts entry in Interface > AddOns section. You can create one by using /lstoasts command. It's a workaround for infamous CompactRaidFrame* taint, and few others. It's a really old Blizz bug, and I don't think it'll ever be fixed.

I strongly recommend to /reload UI after you're done setting up the addon. Even if you opened and closed config panel without changing anything, /reload UI. By doing so, you'll remove config entry from the system and prevent possible taints.

How to Mod
If you're UI developer, you may want to reskin my toasts. To do so, you'll need to override special dummy function by adding something like this to your addon code:

Lua Code:
  1. local toast_F = ls_Toasts[1]
  2.  
  3. function toast_F:SkinToast(toast, toastType)
  4.     -- do something here
  5. end

This function is called after colours, textures and texts are set, but before toast is shown. Toast and its type are passed as arguments.

Note #2: For toasts' structures, see definitions of CreateBaseToastButton and GetToast functions.

You can also access addon's config. It's the config that is used by ls: Toasts, not a copy of it.

Lua Code:
  1. local toast_C = ls_Toasts[2]
  2.  
  3. -- change growth direction to "UP"
  4. toast_C.growth_direction = "UP"

You need to perform these changes during ADDON_LOADED event. They will be saved to ls: Toasts' variables.

Note #3: For config's content see DEFAULTS table.

Feedback and Feature Requests
If you found a bug or want to share an idea on how to improve my addon, either report to Issue Tracker on my GitHub page, or post a comment on WoWInterfrace or Curse.

FAQ
Q: Will you add group/master loot roll frames to your addon?
A: Maybe later, I'm not sure yet.

License
Please see LICENSE file.

Version 1.20

- NEW! Added rated PvP reward toast;
- Added partial German translation. Translated by [email protected];
- Added Traditional Chinese translation. Translated by [email protected];
- Updated Korean translation. Translated by [email protected];
- Fixed issues in anchor frame code.

Version 1.19

- Improved compatibility with other addons that use default alert system to show custom toasts.

Version 1.18

- Added localisation support. Korean translation by [email protected];
- Fixed issue in reward button code;
- Fixed issue in follower/champion tooltip code.

Version 1.17

- Fixed compatibility issues with ElvUI.

Version 1.16

- Fixed issue that caused transmog toasts not to show proper info;
- Exposed config to other addons. This feature is for addon devs. For more info, read here.

Version 1.15

- Fixed issue in transmog toast code.

Version 1.14

- Added 7.1 support;
- Reworked transmog toasts. Now they show additions and removals of green, blue and epic appearances;
- Added ilvl upgrade indicator to item toasts.

Version 1.13

- Added hook to prevent default notifications from being shown;
- Added comparison tooltip to item toasts. Hold "Shift" key to show it. Original code by [email protected]

Version 1.12

- Added currency toast stacking. Instead of creating new toasts for each currency gain, existing one will be updated;
- Added skinning support. This feature is for addon devs. For more info, read here.

Version 1.11

- Fixed handling of caged battle pets.

Version 1.10

- Added workaround for few taints.

NOTE: IMPORTANT! Now there's no ls: Toasts entry in Interface > AddOns section, but you canl create one by using /lstoasts command. After that you'll be able to access config panel the old way. However, I strongly recommend to /reload UI after you're done setting up the addon. Even if you opened and closed config panel without changing anything, /reload UI. By doing so, you'll remove config entry from the system and prevent possible taints. Blame Blizzard, not me.

Version 1.09

- Split "Garrison" toast group into two new groups: "Garrison" and "Class Hall";
- Moved currency toasts to a new category, "Loot (Currency)";
- Misc bug fixes and tweaks.

Version 1.08

- Fixed "SetPortraitToTexture" error.

Version 1.07

- NEW! Added common loot toasts;
- Reworked in-game config a bit;
- Misc bug fixes and tweaks.

Version 1.06

- NEW! Added transmog toast;
- NEW! Added an option to colour item, follower names by quality, and world quest, mission titles by rarity. Original code by [email protected];
- NEW! Added options for horizontal growth directions;
- NEW! Added /lstoasts slash command;
- Fixed missing toast sounds;
- Misc bug fixes and tweaks.

Version 1.05

- Fixed anchor frame movement, when it's scaled down.

Version 1.04

- NEW! Added scaling for toasts;
- Fixed an issue in fade out delay code.

Version 1.03

- NEW! Added an option to save settings as a default preset that will be used for all characters;
- NEW! Added fade out delay slider.

NOTE: Saving settings is an experimental feature, if feedback is negative, I may replace it with a typical profile manager.

Version 1.02

- Fixed issue in garrison toast test.

Version 1.01

- Release released.
Archived Files (19)
File Name
Version
Size
Author
Date
1.19
256kB
lightspark
11-04-16 02:47 AM
1.18
256kB
lightspark
11-03-16 01:01 AM
1.17
250kB
lightspark
10-30-16 09:35 PM
1.16
250kB
lightspark
10-26-16 04:01 PM
1.15
250kB
lightspark
10-25-16 08:51 PM
1.14
250kB
lightspark
10-25-16 07:14 PM
1.13
250kB
lightspark
10-18-16 02:07 AM
1.12
250kB
lightspark
09-28-16 07:15 AM
1.11
249kB
lightspark
09-26-16 06:15 AM
1.10
249kB
lightspark
09-25-16 08:34 AM
1.09
249kB
lightspark
09-22-16 08:14 AM
1.08
248kB
lightspark
09-17-16 07:31 AM
1.07
248kB
lightspark
09-17-16 04:22 AM
1.06
247kB
lightspark
09-13-16 08:49 AM
1.05
231kB
lightspark
08-16-16 04:03 AM
1.04
231kB
lightspark
08-11-16 10:59 AM
1.03
231kB
lightspark
08-10-16 04:40 AM
1.02
230kB
lightspark
08-09-16 03:58 PM
1.01
230kB
lightspark
08-09-16 12:56 PM


Post A Reply Comment Options
Unread 10-30-16, 05:09 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
Originally Posted by Triksterism
Is there an easy way to change the font used by this addon?
Not really... All fonts are inherited from Blizz font objects, this way I'm sure that text is displayed w/o any issues, and cuz of it I'm not planning to make it configurable via drop down or anything like that, it's unnecessary hassle for a user.

So the only way to change it is to "reskin" the toast T_T
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 10-30-16 at 05:20 AM.
Report comment to moderator  
Reply With Quote
Unread 10-29-16, 11:44 PM  
Triksterism
A Wyrmkin Dreamwalker
 
Triksterism's Avatar
AddOn Author - Click to view AddOns

Forum posts: 52
File comments: 28
Uploads: 1
Is there an easy way to change the font used by this addon?
__________________
Report comment to moderator  
Reply With Quote
Unread 10-25-16, 05:30 PM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
I'm aware of all issues.

Technically addon is 7.1 ready, but I haven't released the update yet, cuz I'm playing on EU, and we'll get our patch in few hours.

So I either break the addon for US users if I don't release an update right now, or break the addon for EU users if I release it now.

P.S. I hate this gap between US and EU patch releases.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 10-25-16 at 08:57 PM.
Report comment to moderator  
Reply With Quote
Unread 10-25-16, 02:17 PM  
Greevir
A Cyclonian
 
Greevir's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 45
File comments: 94
Uploads: 1
Originally Posted by sakurakira
Today on release of 7.1, this popped when I completed a world quest.
Grab the one from the github link on the description page. It seems to be working fine.
__________________
Report comment to moderator  
Reply With Quote
Unread 10-25-16, 01:53 PM  
sakurakira
A Chromatic Dragonspawn
 
sakurakira's Avatar
AddOn Author - Click to view AddOns

Forum posts: 151
File comments: 58
Uploads: 5
Today on release of 7.1, this popped when I completed a world quest.

Message: Interface\AddOns\ls_Toasts\ls_Toasts.lua:2100: attempt to call field 'QuestMapFrame_IsQuestWorldQuest' (a nil value)
Time: 10/25/16 12:45:22
Count: 1
Stack: Interface\AddOns\ls_Toasts\ls_Toasts.lua:2100: in function `?'
Interface\AddOns\ls_Toasts\ls_Toasts.lua:104: in function <Interface\AddOns\ls_Toasts\ls_Toasts.lua:103>

Locals: self = <unnamed> {
0 = <userdata>
LFG_COMPLETION_REWARD = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1502
CHAT_MSG_LOOT = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1789
PLAYER_LOGIN = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:3170
QUEST_TURNED_IN = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:2088
GARRISON_BUILDING_ACTIVATABLE = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1360
ARTIFACT_DIGSITE_COMPLETE = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1189
SHOW_LOOT_TOAST_LEGENDARY_LOOTED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1632
PLAYER_REGEN_ENABLED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1109
NEW_RECIPE_LEARNED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1899
PLAYER_LOGOUT = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:3209
GARRISON_MISSION_FINISHED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1265
ADDON_LOADED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:3123
CHAT_MSG_SYSTEM = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:2130
MODIFIER_STATE_CHANGED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:605
QUEST_LOOT_RECEIVED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:2096
SCENARIO_COMPLETED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:2078
STORE_PRODUCT_DELIVERED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1700
SHOW_LOOT_TOAST_UPGRADE = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1660
PLAYER_REGEN_DISABLED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1096
CHAT_MSG_CURRENCY = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1826
GARRISON_FOLLOWER_ADDED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1348
GARRISON_RANDOM_MISSION_ADDED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1286
SHOW_PVP_FACTION_LOOT_TOAST = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1694
LOOT_ITEM_ROLL_WON = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1620
ACHIEVEMENT_EARNED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1156
SHOW_LOOT_TOAST = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1626
GARRISON_TALENT_COMPLETE = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1372
CRITERIA_EARNED = <function> defined @Interface\AddOns\ls_Toasts\ls_Toasts.lua:1163
}
questID = 41794
itemLink = "[Hallowed Runestone]"
(*temporary) = nil
(*temporary) = 41794
(*temporary) = "attempt to call field 'QuestMapFrame_IsQuestWorldQuest' (a nil value)"
_G = <table> {
ERR_OUT_OF_CHI = "Not enough chi"
DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
}
MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
}
GetTrainerServiceTypeFilter = <function> defined =[C]:-1
UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
AchievementFrameStatsBG = AchievementFrameStatsBG {
}
SetTrainerServiceTypeFilter = <function> defined =[C]:-1
LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 734
EventTraceFrameButton7HideButton = EventTraceFrameButton7HideButton {
}
SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 395
RecruitAFriendFrame = RecruitAFriendFrame {
}
CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGene
__________________
Arise, my champion!
Report comment to moderator  
Reply With Quote
Unread 10-12-16, 02:42 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
Re: Great addon

Originally Posted by Prankstar
Hey

This addon just makes any UI look way more sleek and finished.

But i was woundering if it's possible to get a few more options?

I'm thinking:
  • Frame strata
  • Anchor point on UIParent
  • Anchor point of your frames

Hope it's something you're willing to add. Mainly the positioning, because it's important for me to have it work on all screen sizes, and sit in the right place on the bottom of the screen all the time. So being able to ancor it to CENTER BOTTOM and set it a pixel value from that, would be awesome.
Hi! And thank you!

I may add frame strata/level option a bit later, but an option for custom anchor and relative points isn't going to happen. I never use CENTER as an anchor point, cuz WoW renders UI weirdly, and that's the reason why I use frames' sides and corners to attach them to other frames or UIParent.

As for your case, BOTTOM to BOTTOM should work just fine O_o
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 10-12-16, 02:16 AM  
Prankstar
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 19
Uploads: 1
Great addon

Hey

This addon just makes any UI look way more sleek and finished.

But i was woundering if it's possible to get a few more options?

I'm thinking:
  • Frame strata
  • Anchor point on UIParent
  • Anchor point of your frames

Hope it's something you're willing to add. Mainly the positioning, because it's important for me to have it work on all screen sizes, and sit in the right place on the bottom of the screen all the time. So being able to ancor it to CENTER BOTTOM and set it a pixel value from that, would be awesome.
Report comment to moderator  
Reply With Quote
Unread 09-28-16, 12:02 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
More good news for addon devs

As of v1.12 you'll be able to override special dummy function:

Lua Code:
  1. local toast_F = unpack(ls_Toasts)
  2.  
  3. function toast_F:SkinToast(toast, toastType) -- it's : and not .
  4.     -- do something here
  5. end
  6.  
  7. -- OR
  8.  
  9. function toast_F.SkinToast(toast_F, toast, toastType) -- it's . and not :
  10.     -- do something here
  11. end
  12.  
  13. -- for toasts' structures, see definitions of CreateBaseToastButton and GetToast functions

This function is called after colours, textures, texts were set, and right before toast is shown.

I may add more things in the future, it depends on feedback from other devs, but that's it for now.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 09-28-16 at 07:03 AM.
Report comment to moderator  
Reply With Quote
Unread 09-27-16, 12:26 PM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
Originally Posted by sakurakira
Thanks so much for this. I'm primarily using it to squelch the Garrison and Order Hall notifications, since they pop every time there is a loading screen. These are especially annoying for the Garrison ones as I'm only doing those once a day. Being able to move it away from the center of the screen is nice as well.
Thank you!

Here's a preview of currency toast stacking. Instead of creating new toasts for each currency gain, addon will update existing one



GIF speed is a bit off.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 09-27-16 at 12:37 PM.
Report comment to moderator  
Reply With Quote
Unread 09-27-16, 01:23 AM  
sakurakira
A Chromatic Dragonspawn
 
sakurakira's Avatar
AddOn Author - Click to view AddOns

Forum posts: 151
File comments: 58
Uploads: 5
Thanks so much for this. I'm primarily using it to squelch the Garrison and Order Hall notifications, since they pop every time there is a loading screen. These are especially annoying for the Garrison ones as I'm only doing those once a day. Being able to move it away from the center of the screen is nice as well.
__________________
Arise, my champion!
Report comment to moderator  
Reply With Quote
Unread 09-17-16, 06:24 PM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
Originally Posted by Daamd
n/m my question :P
This addon rocks btw. TYVM for this.
Haha, ty

Originally Posted by Astugg
"toast-bg-transmog.TGA" wasn't there

reinstall fixed it, thanks
I told you!

You're welcome!
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 09-17-16, 01:32 PM  
Astugg
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
Originally Posted by lightspark
Originally Posted by Astugg
I'm afraid that's not the case.

This is what I get;

Well, texture is either missing, or isn't loaded...

Please, go to "\Interface\AddOns\ls_Toasts\media" folder and check if "toast-bg-transmog.TGA" is there or not.

If it's not there, close wow client, re-download the addon and then test transmog toast. You can test it via in-game config, go to Esc-Interface-AddOns-ls: Toasts-Toast Types and hit Test button in transmog line



You may need to click it twice, appearance might not be cached yet.
"toast-bg-transmog.TGA" wasn't there

reinstall fixed it, thanks
Report comment to moderator  
Reply With Quote
Unread 09-17-16, 10:52 AM  
Daamd
A Defias Bandit

Forum posts: 2
File comments: 16
Uploads: 0
n/m my question :P
This addon rocks btw. TYVM for this.
Last edited by Daamd : 09-17-16 at 01:44 PM.
Report comment to moderator  
Reply With Quote
Unread 09-17-16, 07:37 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 167
File comments: 392
Uploads: 5
Originally Posted by Astugg
I'm afraid that's not the case.

This is what I get;

Well, texture is either missing, or isn't loaded...

Please, go to "\Interface\AddOns\ls_Toasts\media" folder and check if "toast-bg-transmog.TGA" is there or not.

If it's not there, close wow client, re-download the addon and then test transmog toast. You can test it via in-game config, go to Esc-Interface-AddOns-ls: Toasts-Toast Types and hit Test button in transmog line



You may need to click it twice, appearance might not be cached yet.
__________________
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
Last edited by lightspark : 09-17-16 at 07:43 AM.
Report comment to moderator  
Reply With Quote
Unread 09-17-16, 07:10 AM  
Astugg
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
Originally Posted by lightspark
Originally Posted by Astugg
The background texture for transmog toasts seems off to me. It shows a very bright (and ugly) green texture.

Liking the update tho, thank you.
I guess you updated the addon w/o relaunching WoW client. Client scans new files only once at launch, during UI reloads it scans for changes in known files.

Green and ugly thing you're talking about is a substitute for non-loaded (or non-existing) textures.
I'm afraid that's not the case.

This is what I get;

Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: