Add display weakuara
This commit is contained in:
37
Weakauras/Display/event.lua
Normal file
37
Weakauras/Display/event.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
-- TICKER_500
|
||||
---@type allstates allstates
|
||||
function(allstates)
|
||||
local now = GetTime()
|
||||
for k, state in pairs(allstates) do
|
||||
local player = HeimdallStinkies[k]
|
||||
if not player then
|
||||
allstates[k] = {
|
||||
show = false,
|
||||
changed = true,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in pairs(HeimdallStinkies) do
|
||||
print(k)
|
||||
local ago = now - v.lastSeenInternal
|
||||
if allstates[k] then
|
||||
allstates[k].ago = string.format("%6.1fs", ago)
|
||||
allstates[k].name = v:ToString()
|
||||
allstates[k].changed = true
|
||||
else
|
||||
allstates[k] = {
|
||||
show = true,
|
||||
changed = true,
|
||||
name = v:ToString(),
|
||||
progressType = "timed",
|
||||
duration = 60,
|
||||
expirationTime = GetTime() + 60,
|
||||
autohide = true,
|
||||
index = ago,
|
||||
ago = string.format("%6.1fs", ago),
|
||||
}
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
1
Weakauras/Display/export
Normal file
1
Weakauras/Display/export
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user