#Friend Tooltips

1 messages · Page 1 of 1 (latest)

lofty ridge
#

If you're like me you have over 100 Battle NET friends and you forget who is who or what characters they play. You may have found yourself in a situation where you wanted to remove somebody to make room in your friend list but didn't want to delete an important name and couldn't remember who it belongs to.

No more! With this WA it will show the al characters and alternate characters on your friend's tooltips as long as you've seen the character once, even if they're offline.

https://wago.io/e6-P3KePV

Shows your friend's characters under their tooltip, even if they're offline. If somebody in your guild is also

merry badge
#
    if not aura_env.last or aura_env.last < GetTime() - 3 then
        aura_env.saveData()
        return true
    end
aura_env.saveData = function()
    aura_env.saved = _sv
end

wtf is this

#

you'r running a trigger every frame for nothing

#

at the start of init function replace

local _sv = aura_env.saved or {}

with

aura_env.saved = aura_env.saved or {}
local _sv = aura_env.saved

and drop all these aura_env.saved = _sv

#

when you attribute a table to a variable, this variable store the address (think pointer) of this table
so when you do _sv = aura_env.saved you'r not doing a copy of each values of this table in an other variable, you'r copying the table address, which is not changing when the table is modified
so each time you do _sv = aura_env.saved it copy the same address of aura_env.saved's table in _sv

lofty ridge
#

yeah I thought so too and that's how I had it originally

#

for whatever reason it didn't work so I added the trigger on a long timer so it didn't impact performance

#

I think it has something to do with not being able to write to the weakaura's environment from secure function hooks

#

so the local variable is changed but the aura_env.saved isn't

#

but writing the local variable to aura_env.saved from within the aura environment via a trigger does work