Download
(1Kb)
Download
Updated: 08-16-18 02:07 PM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:08-16-18 02:07 PM
Created:11-08-14 05:06 PM
Downloads:3,434
Favorites:26
MD5:
Categories:Map, Coords, Compasses, Miscellaneous

rVignette

Version: 800.20180816
by: zork [More]


Intro

rVignette displays a warning for vignettes (rare mobs, chests etc.) with sound, name and icon on screen.
Git
https://github.com/zorker/rothui/tre...w8.0/rVignette

Optional Files (0)


Post A Reply Comment Options
Unread 11-17-20, 07:27 PM  
Dools1337
A Defias Bandit
 
Dools1337's Avatar

Forum posts: 2
File comments: 30
Uploads: 0
Hey, I fixed this addon for Shadowlands just copy and replace everything in rVignette.lua


Code:
-- rVignette: core
-- zork, 2018
-- Neav (fix)

-----------------------------
-- Variables
-----------------------------

local A, L = ...

-----------------------------
-- Functions
-----------------------------

local function OnVignetteAdded(self,event,id)
  if not id then return end
  self.vignettes = self.vignettes or {}
  if self.vignettes[id] then return end
  local vignetteInfo = C_VignetteInfo.GetVignetteInfo(id)
  if not vignetteInfo then return end
  --[[local filename, width, height, txLeft, txRight, txTop, txBottom = C_Texture.GetAtlasInfo(vignetteInfo.atlasName)
  if not filename then return end
  local atlasWidth = width/(txRight-txLeft)
  local atlasHeight = height/(txBottom-txTop)
  ]] -- Old stuff from Zork
  
  -- Adding fix from Neav
  local atlasInfo = C_Texture.GetAtlasInfo(vignetteInfo.atlasName)
  local left = atlasInfo.leftTexCoord * 256
  local right = atlasInfo.rightTexCoord * 256
  local top = atlasInfo.topTexCoord * 256
  local bottom = atlasInfo.bottomTexCoord * 256
  local str = "|TInterface\\MINIMAP\\ObjectIconsAtlas:0:0:0:0:256:256:"..(left)..":"..(right)..":"..(top)..":"..(bottom).."|t"
  -- More old stuff
  --local str = string.format("|T%s:%d:%d:0:0:%d:%d:%d:%d:%d:%d|t", filename, 0, 0, atlasWidth, atlasHeight, atlasWidth*txLeft, atlasWidth*txRight, atlasHeight*txTop, atlasHeight*txBottom)
  --PlaySoundFile("Sound\\Interface\\RaidWarning.ogg") -- Deprecated
  PlaySoundFile(567397) 
  
  
  if vignetteInfo.name ~= "Garrison Cache" and vignetteInfo.name ~= "Full Garrison Cache" and vignetteInfo.name ~= nil then
  RaidNotice_AddMessage(RaidWarningFrame, str.." "..vignetteInfo.name.." spotted!", ChatTypeInfo["RAID_WARNING"])
  print(str.." "..vignetteInfo.name,"spotted!")
  self.vignettes[id] = true
   
end
end

-----------------------------
-- Init
-----------------------------

--eventHandler
local eventHandler = CreateFrame("Frame")
eventHandler:RegisterEvent("VIGNETTE_MINIMAP_UPDATED")
eventHandler:SetScript("OnEvent", OnVignetteAdded)
Last edited by Dools1337 : 11-17-20 at 07:28 PM.
Report comment to moderator  
Reply With Quote
Unread 07-24-19, 04:06 PM  
roionsteroids
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by Alenari
Originally Posted by strickland
Getting error from this, can it be updated please <3
I save the raidwarning file from wowhead locally and changed this to the rVignette.lua

PlaySoundFile("Interface\\AddOns\\rVignette\\raidwarning.ogg")

worked like a charm.
PlaySoundFile(567397) works too.
Report comment to moderator  
Reply With Quote
Unread 06-29-19, 11:53 PM  
Alenari
A Defias Bandit

Forum posts: 2
File comments: 39
Uploads: 0
Originally Posted by strickland
Getting error from this, can it be updated please <3
I save the raidwarning file from wowhead locally and changed this to the rVignette.lua

PlaySoundFile("Interface\\AddOns\\rVignette\\raidwarning.ogg")

worked like a charm.
Report comment to moderator  
Reply With Quote
Unread 06-27-19, 05:51 AM  
strickland
A Cyclonian

Forum posts: 40
File comments: 195
Uploads: 0
Getting error from this, can it be updated please <3
Report comment to moderator  
Reply With Quote
Unread 08-27-16, 02:52 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Yes. Forgot to update it. New version will be available later.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 08-26-16, 12:16 PM  
Siven
A Deviate Faerie Dragon

Forum posts: 11
File comments: 34
Uploads: 0
Does this still work?
Report comment to moderator  
Reply With Quote
Unread 07-12-16, 02:22 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Thanks.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 07-11-16, 05:44 AM  
thomasjohnshannon
A Theradrim Guardian
 
thomasjohnshannon's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 79
Uploads: 5
Legion Update

You can fix this for Legion by switching to ObjectIconsAtlas.

Code:
local str = "|TInterface\\MINIMAP\\ObjectIconsAtlas:0:0:0:0:256:256:"
__________________
Thomas aka Urnn
Report comment to moderator  
Reply With Quote
Unread 03-06-15, 02:21 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Originally Posted by siweia
You may need to change "RaidWarning.wav" into "RaidWarning.ogg", which is a "gift" from blizz in the new patch.
Maybe we can just cut the file ending alltogether now. Like we can for textures.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 03-05-15, 10:02 AM  
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view AddOns

Forum posts: 126
File comments: 195
Uploads: 14
You may need to change "RaidWarning.wav" into "RaidWarning.ogg", which is a "gift" from blizz in the new patch.
Report comment to moderator  
Reply With Quote
Unread 12-08-14, 07:36 PM  
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view AddOns

Forum posts: 126
File comments: 195
Uploads: 14
Originally Posted by zork
The vignette-id is more unique than you think.
Thanks for your reply. I'm a big fan of yours, I would have a go then.
Report comment to moderator  
Reply With Quote
Unread 12-08-14, 02:03 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
The vignette-id is more unique than you think.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 12-06-14, 07:31 PM  
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view AddOns

Forum posts: 126
File comments: 195
Uploads: 14
The idea is fabulous, but for those rare at Pandaria, especially the Zandaras with mounts, I think it's necessary to inform us for more than once.
The codes you wrote seems to alert at the first time, and one id one time. If I found a second rare with same I'd, it won't let you know.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: