Commit Graph

20 Commits

Author SHA1 Message Date
NoM0Re d6ae3e020b 5.20.0 2025-07-22 16:49:18 +02:00
NoM0Re 6286e86931 5.19.12 2025-06-18 20:06:36 +02:00
NoM0Re 0c528b2607 5.19.10-10-g7ac7dc8 2025-06-08 22:27:10 +02:00
NoM0Re bda851552d 5.19.10 2025-05-31 22:54:39 +02:00
NoM0Re 51bac56479 5.19.8 2025-04-13 16:03:55 +02:00
NoM0Re 6cdfcac1b1 5.19.6 2025-04-03 21:03:11 +02:00
NoM0Re 3c574cb4a6 5.19.5
No new features this release, just fixes to some minor bugs.
2025-03-14 00:48:30 +01:00
NoM0Re 7c7869494e 5.19.3
Add methods to the states/allstates table that helps with creating,
updating or remove states in an optimized way

## Advantage of using this function instead of doing a states[key] = {
... }

- If already created, update existing state, and return true if any
value was changed, this can help reduce amount of resources an aura use

- Automatically `return true` when using these functions and any change
was made

## Examples

```Lua
function(states, event, ...)
    if event == "PLAYER_TARGET_CHANGED" then
        if UnitExists("target") then
            -- if state exists it's updated, not replaced
            -- show & changed fields can be skipped
            states:Update("", {
                    name = UnitName("target"),
                    duration = 5,
                    expirationTime = GetTime() + 5,
                    progressType = "timed",
                    autoHide = true
            })
        else
            -- wipe
            states:RemoveAll()
        end
    end
    -- no need to return true
end
```

with clones

```Lua
function(states, event, ...)
    local currentEssence = UnitPower("player", Enum.PowerType.Essence)
    local maxEssence = UnitPowerMax("player", Enum.PowerType.Essence)
    for i = 1, 6 do
        if i > maxEssence then
            states:Remove(i) -- wipe allstates[6]
        else
            local value = currentEssence >= i and 1 or 0
            local newState = {
                progressType = "static",
                value = value,
                total = 1
            }
            states:Update(i, newState)
        end
    end
    -- no need to return true
end
```
2025-02-24 22:10:45 +01:00
NoM0Re ac56d8816a Version Bump to 5.19.2, Introduce Talent Widget in Load, Rework Talent Known Trigger 2025-02-23 01:21:25 +01:00
NoM0Re d3c8a9bf3e Make LibGroupTalents work now, but still requires regressions
Arguments might still shut be shared from the original call for custom auras.
More functions need to be added to prototypes.
Documentation is needed soon.
2025-02-06 21:31:45 +01:00
NoM0Re 95a13c6896 fix libs not loading, use libgrouptalents, but still not working 2025-02-01 20:17:50 +01:00
NoM0Re dcd0f833ac from retail 2025-01-26 12:33:16 +01:00
NoM0Re 7a185106f2 from retail 2025-01-06 19:47:37 +01:00
NoM0Re 8375cfa0a7 from retail 2025-01-06 12:53:01 +01:00
NoM0Re 13f734038d Multientry (#7)
* from retail

* from retail

* from retail

* from retail

* from retail

* from retail

* remove new threat functions as they are not well implemented for now
2024-11-27 12:09:02 +01:00
NoM0Re eb8221cf89 add missing locales of https://github.com/NoM0Re/WeakAuras-WotLK/commit/f85f2dc1ef62a4302585e372b45c1ed275e03353 2024-10-12 15:33:27 +02:00
NoM0Re 9bc27cada2 add handling for non awesome_wotlk user 2024-07-01 19:37:29 +02:00
Bunny67 6e530142d3 from retail 2021-03-07 19:42:16 +03:00
Bunny67 7cbc40c959 beta 2020-11-15 23:43:10 +03:00
Bunny67 f2e1a0928d init 2020-06-02 23:40:06 +03:00