I'm sure there's a mod somewhere that does this, or could teach me how to do it, but I'm dumb and can't find it.
I got bored one day and decided that since my character's wearing a blindfold, I should make (still functional) blindfold-type panel over the screen. So using two eepanels set with opposite gradients from black to transparent, I came up with this effect:
I noticed that I can save that particular setup as a profile in eepanels, so I wondered if there was some way it could be coded to tie-in with the Cursed Vision right-click that allows me to track demons. Basically, so that when "You gain Sense Demons." it will turn the blindfold effect on, and when "You lose Sense Demons" (or however it's worded), it will turn it back off.
From my extremely limited knowledge of coding, some kind of if/then statement should work for this, right? And if so, could someone direct me how to do it? Or, erm, do it for me?
local found = false
for i = 1, 40 do
local buff = UnitBuff('player', i)
if buff == "Curse Vision of Illidan" then --replace with real name of spell or a GetSpellInfo("ID of spell") call, will give same result...
found = true
if not found then