Quantcast
Download
(265 Kb)
Download
Updated: 04-06-17 02:03 AM
Pictures
File Info
Compatibility:
Tomb of Sargeras (7.2.0)
Updated:04-06-17 02:03 AM
Created:08-09-16 12:56 PM
Downloads:6,833
Favorites:90
MD5:
Categories:Character Advancement, TradeSkill Mods
7.2.0

ls: Toasts  Popular! (More than 5000 hits)

Version: 70200.04
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.

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 #1: 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_F = ls_Toasts[1]
  2.  
  3. -- create new "test" profile and activate it
  4. local created, reason = toast_F:CreateProfile("test")
  5.  
  6. -- delete "test" profile
  7. local deleted, reason = toast_F:DeleteProfile("test")
  8.  
  9. -- activate existing "test" profile
  10. local set, reason = toast_F:SetProfile("test")
  11.  
  12. -- reset existing "test" profile to defaults
  13. local reset, reason = toast_F:ResetProfile("test")

Note #2: For more info on arguments and returns see definitions of F:CreateProfile, FeleteProfile, F:SetProfile, and F:ResetProfile functions.

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 70200.04

- Fixed bonus roll toast issues.

Version 70200.03

- Added item toasts stacking. Toasts for identical items that were triggered by the same events will now stack. If two items have similar names, but have different item links and/or come from different events, for example, "CHAT_MSG_LOOT" and "SHOW_LOOT_TOAST", they'll be shown as two different toasts;
- Added Russian translation. Translated by [email protected] and me;
- Misc tweaks.

Version 70200.02

- Fixed transmog toast issue;
- Fixed profession world quest toast issue;
- Misc tweaks.

Version 70200.01

- New version format: INTERFACE_VERSION.PATCH;
- Added 7.2 support;
- Added special loot item quality threshold drop down;
- Added Spanish translation. Translated by [email protected];
- Updated Traditional Chinese translation. Translated by [email protected]

Version 1.24

- Added "ls: Toasts" config entry w/ "Enable" button to interface options panel. However, It doesn't change the fact that you still need to reload UI after you're done setting up the addon, hence I also added "Reload UI" button;
- Disabled common loot and currency string checks. Hopefully new patterns will perform better, but if I start getting reports about party/raid member loot toasts again, I'll re-enable them;
- Changed addon name's colour so it'll no longer interfere w/ addon list sorting;
- Updated Korean translation. Translated by [email protected];
- Updated German translation. Translated by [email protected];
- Numerous bug fixes and tweaks.

Version 1.23

- First attempt to address issue that made some people receive party/raid members' loot toasts. As of this version if addon detects that necessary variables were modified by another addon, it'll disable common loot and/or currency toasts, you'll be able to see which variables were modified and what addon did it in in-game config. Addon will also start checking if `CHAT_MSG_LOOT`'s 5th param (target) is the same as player's name;
- Updated German translation. Translated by [email protected]

NOTE: Warning preview. !test is my test addon.


Version 1.22

- Fixed in-game config.

Version 1.21

- Reworked profile manager. Sadly, I had to reset all settings;
- Added public methods to create, delete, set, and reset profiles. This feature is for addon devs. For more info, read [here](https://github.com/ls-/ls_Toasts#how-to-mod);
- Removed config from global `ls_Toasts` table;
- Updated German translation. Translated by [email protected]

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 (27)
File Name
Version
Size
Author
Date
70200.03
265kB
lightspark
04-05-17 09:05 AM
70200.02
264kB
lightspark
03-28-17 10:27 PM
70200.01
264kB
lightspark
03-28-17 08:31 AM
1.24
263kB
lightspark
02-18-17 01:54 PM
1.23
262kB
lightspark
02-14-17 06:16 AM
1.22
261kB
lightspark
02-12-17 09:42 AM
1.21
260kB
lightspark
02-12-17 03:48 AM
1.20
259kB
lightspark
11-22-16 11:46 PM
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 Yesterday, 02:18 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Heh, finally...



New system is backward compatible w/ already existing skins, but users will have to choose which one to use manually via dropdown in config.
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 04-23-17 at 02:20 AM.
Report comment to moderator  
Reply With Quote
Unread 03-30-17, 03:45 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Soon...

__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 03-28-17, 10:16 PM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Yeah, I'm aware of this issue. I forgot to push necessary changes

I'll release an update quite soon.
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Report comment to moderator  
Reply With Quote
Unread 03-28-17, 09:25 PM  
sakurakira
A Chromatic Dragonspawn
 
sakurakira's Avatar
AddOn Author - Click to view AddOns

Forum posts: 151
File comments: 60
Uploads: 5
Using the latest version in 7.2.

When I learn a new appearance, I get the LUA error:
Code:
Message: Usage: local sources = C_TransmogCollection.GetAppearanceSources(appearanceID)
Time: 03/28/17 20:21:33
Count: 5
Stack: [C]: in function `GetAppearanceSources'
Interface\AddOns\ls_Toasts\ls_Toasts.lua:2617: in function <Interface\AddOns\ls_Toasts\ls_Toasts.lua:2615>
Interface\AddOns\ls_Toasts\ls_Toasts.lua:2662: in function `?'
Interface\AddOns\ls_Toasts\ls_Toasts.lua:195: in function <Interface\AddOns\ls_Toasts\ls_Toasts.lua:194>

Locals: (*temporary) = "Usage: local sources = C_TransmogCollection.GetAppearanceSources(appearanceID)"
__________________
Arise, my champion!
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 11:08 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Additional info on v1.23.

I added new feature that'll disable common loot toasts for people w/ modified global strings that are necessary for common loot and currency toasts to work properly. However, I'm not going to keep it there permanently, I want to use it to find various addons that modify globals, I need to inspect their code and see what kind of modifications they do, this way I'll be able to create better patterns for string matching.

Feel free to share (either in comments or PM me) your screenshots of disabled common loot toasts, obv I need to see tooltips w/ info
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 11:15 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 09:40 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Originally Posted by Zenjaa
you're absolutely right...I'm using a heavily modified personal edit of FreeUi and i guess the chat module of it changes the output. I edited the module a while back so it might not be necessarily the original code from freeui. I'm still at work for a few hours, but if you need me to, i can provide you with the code later today.
That's fine, I already release v1.23 You'll be able to see modified values in game w/o dumping anything.

But when you get back home, could you PM me .lua of your chat module?
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 10:05 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 09:26 AM  
Zenjaa
A Kobold Labourer

Forum posts: 0
File comments: 49
Uploads: 0
Originally Posted by lightspark
Code:
/dump issecurevariable("LOOT_ITEM_SELF")

/dump issecurevariable("LOOT_ITEM_PUSHED_SELF")

/dump issecurevariable("LOOT_ITEM_SELF_MULTIPLE")

/dump issecurevariable("LOOT_ITEM_PUSHED_SELF_MULTIPLE")
You're supposed to see something like this:
Code:
Dump: value=issecurevariable("LOOT_ITEM_SELF")
[1]=true
you're absolutely right...I'm using a heavily modified personal edit of FreeUi and i guess the chat module of it changes the output. I edited the module a while back so it might not be necessarily the original code from freeui. I'm still at work for a few hours, but if you need me to, i can provide you with the code later today.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 03:50 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Originally Posted by devilArt
sorry, didnt notice your previous post
Im using this addon ItemLinkLevel that modify loot output
This addon doesn't change variables in question... So it's defo safe to use it. There might be something else.

What about those 4 /dump macros? Alternatively you could wait till I release v1.23.

There might be few reasons why SOME people see loot toasts for party/raid members, I've never experienced anything like that, none of my friends who use this addon either. However, I've been receiving reports about this issue since I introduced common loot toasts in v1.07.

-- edit #1

Released v1.23, it's still under review on both Curse and WoWI, but should be available to everyone quite soon.
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 06:22 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 03:45 AM  
devilArt
An Aku'mai Servant
 
devilArt's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 39
File comments: 156
Uploads: 1
Originally Posted by lightspark
Originally Posted by devilArt
since 1.22 update, party/raid member's loot pop up
For the sake of my sanity, please, read my previous post, and do what I asked to do
sorry, didnt notice your previous post
Im using this addon ItemLinkLevel that modify loot output
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 03:22 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
As of v1.23 some of you will start seeing this:



Obviously !test is a name of my test addon

-- edit #1

It's not the first time my toasts are broken by some other addon, and I bet it's not the last time...

I'll release an update within next few hours.
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 03:46 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 01:57 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Originally Posted by devilArt
since 1.22 update, party/raid member's loot pop up
For the sake of my sanity, please, read my previous post, and do what I asked to do
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 02:09 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-17, 01:26 AM  
devilArt
An Aku'mai Servant
 
devilArt's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 39
File comments: 156
Uploads: 1
since 1.22 update, party/raid member's loot pop up
Report comment to moderator  
Reply With Quote
Unread 02-13-17, 08:53 PM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Originally Posted by Zenjaa
ok. it only occured for me after the latest update.
these are the config settings...

and this is a screenshot showing someone else disenchanting a piece of loot alerting me i received the item

Okay, it's definitely a common loot toast, now I have another question, what's the addon that changes chat messages? I guess you have "Omura + ...", but in default UI message would be: "Omura received loot: ...". This question is really important, I guess it's the most important question so far. I use default chat messages as patterns to fetch common loot, if these messages are altered ls: Toasts (and pretty much any other addon that relies on loot channel sniffing) users are screwed, thus I need to take a look at that addon's code first.

In worst case scenario I may want to permadisable common loot toasts for users, if these global strings are modified...

-- edit #1

Here's a better way of finding what's breaking my toasts. Run these 4 macros and tell me what they print out:
Code:
/dump issecurevariable("LOOT_ITEM_SELF")

/dump issecurevariable("LOOT_ITEM_PUSHED_SELF")

/dump issecurevariable("LOOT_ITEM_SELF_MULTIPLE")

/dump issecurevariable("LOOT_ITEM_PUSHED_SELF_MULTIPLE")
You're supposed to see something like this:
Code:
Dump: value=issecurevariable("LOOT_ITEM_SELF")
[1]=true
But if these strings are modified by another addon, you'll see something like this:
Code:
Dump: value=issecurevariable("LOOT_ITEM_SELF")
[1]=false,
[2]="addon_name_here"
-- edit #2

I'll start disabling common loot and currency toasts if these variables are modified. I don't want to deal w/ problems caused by other addons. Time to rewrite my toasts a bit
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-14-17 at 03:57 AM.
Report comment to moderator  
Reply With Quote
Unread 02-13-17, 01:01 PM  
Zenjaa
A Kobold Labourer

Forum posts: 0
File comments: 49
Uploads: 0
Originally Posted by lightspark
Originally Posted by Zenjaa
hey mr. lightspark...
i'm getting loot alerts for items from party or raidmembers since the latest update. I guess that is not intended
Hmmmmm.... I didn't change ANYTHING about toasts in v1.21/22, but I've received reports about it even before yesterday's update, I'm trying to figure out what's causing it, could you show me your config? It's in "\WTF\Account\acc_name\SavedVariables\ls_Toasts.lua" file.

And another question, what's your client's language?

My current guess is that common loot/currency toasts are causing it, could you try disabling them?
ok. it only occured for me after the latest update.
these are the config settings...

Code:
LS_TOASTS_CFG_GLOBAL = {
	["Default"] = {
		["fadeout_delay"] = 2.8,
		["point"] = {
			"BOTTOMLEFT", -- [1]
			"UIParent", -- [2]
			"BOTTOMLEFT", -- [3]
			31, -- [4]
			272, -- [5]
		},
		["scale"] = 1,
		["colored_names_enabled"] = false,
		["loot_special_enabled"] = true,
		["achievement_enabled"] = true,
		["dnd"] = {
			["garrison_6_0"] = false,
			["loot_currency"] = false,
			["instance"] = false,
			["loot_special"] = false,
			["recipe"] = false,
			["archaeology"] = false,
			["transmog"] = false,
			["achievement"] = false,
			["loot_common"] = false,
			["garrison_7_0"] = true,
			["world"] = false,
		},
		["max_active_toasts"] = 12,
		["sfx_enabled"] = true,
		["loot_common_quality_threshold"] = 1,
		["archaeology_enabled"] = true,
		["transmog_enabled"] = true,
		["world_enabled"] = true,
		["recipe_enabled"] = true,
		["growth_direction"] = "UP",
		["version"] = "1.22",
		["instance_enabled"] = true,
		["loot_currency_enabled"] = true,
		["garrison_7_0_enabled"] = true,
		["loot_common_enabled"] = false,
		["garrison_6_0_enabled"] = false,
	},
}
and this is a screenshot showing someone else disenchanting a piece of loot alerting me i received the item

Report comment to moderator  
Reply With Quote
Unread 02-13-17, 03:40 AM  
lightspark
A Chromatic Dragonspawn
 
lightspark's Avatar
AddOn Author - Click to view AddOns

Forum posts: 174
File comments: 480
Uploads: 6
Originally Posted by Zenjaa
hey mr. lightspark...
i'm getting loot alerts for items from party or raidmembers since the latest update. I guess that is not intended
Hmmmmm.... I didn't change ANYTHING about toasts in v1.21/22, but I've received reports about it even before yesterday's update, I'm trying to figure out what's causing it, could you show me your config? It's in "\WTF\Account\acc_name\SavedVariables\ls_Toasts.lua" file.

And another question, what's your client's language?

My current guess is that common loot/currency toasts are causing it, could you try disabling them?
__________________
ls: Prospector: WoWInterface | Curse | GitHub
ls: Toasts: WoWInterface | Curse | GitHub
ls: UI: WoWInterface | Curse | GitHub
ls: Wishlist: WoWInterface | Curse | GitHub
Last edited by lightspark : 02-13-17 at 03:48 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: