WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /DeathNote
    from Rev 480 to Rev 497
    Reverse comparison

Rev 480 → Rev 497

DeathNote.lua
1,6 → 1,7
local realmName = GetCVar("realmName")
local skull = "|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_8.blp:0|t"
local DBVersion = 1
local pvpzone
 
DeathNote = {}
DeathNote.Defaults = {
18,6 → 19,23
if self[event] then return self[event](self, event, ...) end
end)
 
local function ZoneCheck()
local instancetype = select(2,GetInstanceInfo())
if instancetype == "none" then
print("DeathNote:Enable()")
DeathNote:Enable()
pvpzone = nil
else
print("DeathNote:Disable()")
DeathNote:Disable()
pvpzone = true
end
end
 
local ZoneWatcher = CreateFrame("Frame")
ZoneWatcher:RegisterEvent("ZONE_CHANGED_NEW_AREA")
ZoneWatcher:SetScript("OnEvent", ZoneCheck)
 
function DeathNote:Enable()
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
f:RegisterEvent("UPDATE_MOUSEOVER_UNIT")
97,6 → 115,7
print("DeathNote: Database reset!")
end
if not DeathNoteDB[realmName] then DeathNoteDB[realmName] = {} end
ZoneCheck()
end
 
local function OnTooltipSetUnit(tooltip, ...)
126,19 → 145,6
ItemRefTooltip:Show()
end
 
local function ZoneCheck()
local instancetype = select(2,GetInstanceInfo())
if instancetype == "none" then
DeathNote:Enable()
else
DeathNote:Disable()
end
end
 
local ZoneWatcher = CreateFrame("Frame")
ZoneWatcher:RegisterEvent("ZONE_CHANGED_NEW_AREA")
ZoneWatcher:SetScript("OnEvent", ZoneCheck)
 
local frame = CreateFrame("Frame","DeathNoteFrame")
frame:Hide()
frame:SetBackdrop(GameTooltip:GetBackdrop())
DeathNote.toc
3,7 → 3,7
## Title: DeathNote
## Notes: Prepares hostile players for their death.
## SavedVariables: DeathNoteDB
## Version: 1.2
## Version: 1.3
 
TooltipSpacerLine.lua
DeathNote.lua
\ No newline at end of file