Skip to content

Commit

Permalink
Removed LibToast
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 16, 2020
1 parent c2407ed commit 0c4ff38
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ enable-nolib-creation: no
externals:
Libs/LibStub: https://repos.wowace.com/wow/ace3/trunk/LibStub
Libs/CallbackHandler-1.0: https://repos.wowace.com/wow/ace3/trunk/CallbackHandler-1.0
Libs/LibToast-1.0: https://hg.curseforge.com/wow/libtoast-1-0
Libs/AceGUI-3.0: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
Libs/AceConfigDialog-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0/AceConfigDialog-3.0
Libs/AceConfigRegistry-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0/AceConfigRegistry-3.0
Expand All @@ -17,6 +16,3 @@ ignore:
- README.md
- .luacheckrc
- Libs/CallbackHandler-1.0/CallbackHandler-1.0.xml
- Libs/LibToast-1.0/LibStub
- Libs/LibToast-1.0/LibToast-1.0.toc
- Libs/LibToast-1.0/lib.xml
1 change: 0 additions & 1 deletion Embeds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<Script file="Libs\LibStub\LibStub.lua"/>
<Script file="Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/>
<Script file="Libs\LibToast-1.0\LibToast-1.0.lua"/>
<Include file="Libs\AceEvent-3.0\AceEvent-3.0.xml"/>
<Include file="Libs\AceTimer-3.0\AceTimer-3.0.xml"/>
<Include file="Libs\AceGUI-3.0\AceGUI-3.0.xml"/>
Expand Down
9 changes: 1 addition & 8 deletions REPorter.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local _G = _G
local _, RE = ...
local L = LibStub("AceLocale-3.0"):GetLocale("REPorter")
local TOAST = LibStub("LibToast-1.0")
local TIMER = LibStub("AceTimer-3.0")
_G.REPorter = RE

Expand Down Expand Up @@ -628,12 +627,6 @@ function RE:OnEvent(self, event, ...)
RE:CreatePOI(i)
end

TOAST:Register("REPorterToastInfo", function(toast, ...)
toast:SetFormattedTitle("|cFF74D06CRE|r|cFFFFFFFFPorter|r")
toast:SetFormattedText(...)
toast:SetIconTexture([[Interface\Challenges\ChallengeMode_Medal_Bronze]])
end)

RE.IsSkinned = _G.AddOnSkins and _G.AddOnSkins[1]:CheckOption("REPorter") or false

self:UnregisterEvent("ADDON_LOADED")
Expand All @@ -643,7 +636,7 @@ function RE:OnEvent(self, event, ...)

if REMessageEx[1] == "Version" then
if not RE.FoundNewVersion and tonumber(REMessageEx[2]) > RE.AddonVersionCheck then
TOAST:Spawn("REPorterToastInfo", L["New version released!"])
print("\124cFF74D06C[REPorter]\124r "..L["New version released!"])
RE.FoundNewVersion = true
end
end
Expand Down

0 comments on commit 0c4ff38

Please sign in to comment.