From 0e13a6353e6428414dc18e80772b8162e6c99983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Thu, 7 Mar 2024 12:26:27 +0100 Subject: [PATCH] Rename warlockabsorbs -> absorbs and add metadata --- .../{WarlockAbsorbs => Absorbs}/color.lua | 0 .../{WarlockAbsorbs => Absorbs}/duration.lua | 0 .../{WarlockAbsorbs => Absorbs}/event.lua | 0 FreshShit/{WarlockAbsorbs => Absorbs}/export | 0 .../{WarlockAbsorbs => Absorbs}/init.lua | 0 .../{WarlockAbsorbs => Absorbs}/scratch.lua | 0 .../{WarlockAbsorbs => Absorbs}/text.lua | 0 Meta/allstates.lua | 22 +++++++++++++++++++ 8 files changed, 22 insertions(+) rename FreshShit/{WarlockAbsorbs => Absorbs}/color.lua (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/duration.lua (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/event.lua (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/export (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/init.lua (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/scratch.lua (100%) rename FreshShit/{WarlockAbsorbs => Absorbs}/text.lua (100%) create mode 100644 Meta/allstates.lua diff --git a/FreshShit/WarlockAbsorbs/color.lua b/FreshShit/Absorbs/color.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/color.lua rename to FreshShit/Absorbs/color.lua diff --git a/FreshShit/WarlockAbsorbs/duration.lua b/FreshShit/Absorbs/duration.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/duration.lua rename to FreshShit/Absorbs/duration.lua diff --git a/FreshShit/WarlockAbsorbs/event.lua b/FreshShit/Absorbs/event.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/event.lua rename to FreshShit/Absorbs/event.lua diff --git a/FreshShit/WarlockAbsorbs/export b/FreshShit/Absorbs/export similarity index 100% rename from FreshShit/WarlockAbsorbs/export rename to FreshShit/Absorbs/export diff --git a/FreshShit/WarlockAbsorbs/init.lua b/FreshShit/Absorbs/init.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/init.lua rename to FreshShit/Absorbs/init.lua diff --git a/FreshShit/WarlockAbsorbs/scratch.lua b/FreshShit/Absorbs/scratch.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/scratch.lua rename to FreshShit/Absorbs/scratch.lua diff --git a/FreshShit/WarlockAbsorbs/text.lua b/FreshShit/Absorbs/text.lua similarity index 100% rename from FreshShit/WarlockAbsorbs/text.lua rename to FreshShit/Absorbs/text.lua diff --git a/Meta/allstates.lua b/Meta/allstates.lua new file mode 100644 index 0000000..a59b7f3 --- /dev/null +++ b/Meta/allstates.lua @@ -0,0 +1,22 @@ +---@meta + +---[Source](https://github.com/WeakAuras/WeakAuras2/wiki/Trigger-State-Updater-%28TSU%29) +---@class state +---@field changed boolean Informs WeakAuras that the states values have changed. Always set this to true for states that were changed. +---@field show boolean Controls whether the display is visible. Note, that states that have show set to false are automatically removed. +---@field name string The name, returned by %n +---@field icon number|string IconID or TexturePath, used in icons and progress bars +---@field texture number|string IconID or TexturePath, used in textures +---@field stacks number The stack count, returned by %s +---@field index number|string Sets the order the output will display in a dynamic group (if sorting is set to "none" on the group). Strings or numbers are fine but DO NOT MIX TYPES! +---@field progressType string "timed" or "static" +---@field expirationTime number Use with "timed" progressType; relative to GetTime() +---@field duration number Use with "timed" progressType; total duration of the bar in seconds +---@field value number Use with "static" progressType +---@field maxValue number Use with "static" progressType +---@field autoHide boolean Set to true to make the display automatically hide at the end of the "timed" progress. autoHide can also be used along with the "static" progressType by defining a duration and expirationTime along with the static value and total. While the static values will be displayed, the timed values will set the Hide time for the clone. +---@field paused boolean Set to true (and set a remaining value) to pause a "timed" progress. Set to false (and recalculate the expirationTime value) to resume. +---@field remaining number Only used with paused, gives WA the info needed to show paused progress at the current point. +state = {} + +---@alias allstates table \ No newline at end of file