27 Commits

Author SHA1 Message Date
NoM0Re 9d0cc562b9 Port XML templates to Lua, update AceGUI/AceConfig, fix $parent nil frame issues on our game version 2025-07-29 18:02:22 +02:00
NoM0Re 0971189346 Include Blizzard_APIDocumentation and Search API Button to Code Editor with Wrath Classic Data (#57) 2025-07-05 19:08:53 +02:00
NoM0Re 34b2e69600 small fixes 2025-06-05 13:57:23 +02:00
NoM0Re 10d9d99be3 (feat/TextEditor): Rollout the WaybackMachine as Buttons, as we do not have the SetScript handler OnKeyDown/OnKeyUp (#50) 2025-06-04 21:21:45 +02:00
NoM0Re bda851552d 5.19.10 2025-05-31 22:54:39 +02:00
NoM0Re 6cdfcac1b1 5.19.6 2025-04-03 21:03:11 +02: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 4f40aa0b40 from retail 2025-02-09 02:42:51 +01:00
NoM0Re 667a2f3f50 from retail 2025-01-25 23:37:36 +01:00
NoM0Re 103dc2137a from retail 2025-01-25 18:23:29 +01:00
NoM0Re 87c1e2fbaf from retail 2025-01-25 17:46:46 +01:00
NoM0Re 24196cd7ce from retail 2025-01-16 02:47:58 +01:00
NoM0Re 395d448066 from retail 2025-01-07 16:12:17 +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 86e98d6bcf Update general layout of WeakAurasOptions (#8)
* from retail

* (fix) improve pixel snapping by reapplying borders

* update spinbox texture

* add icons, loaded, standby, unloaded behavior from retail

* further use of ported inputbox and cleanup to ported frames

* move templates into WeakAuras and upversion
2025-01-04 19:33:14 +01:00
Bunny67 e7e789686a from retail 2022-05-19 22:04:17 +03:00
Bunny67 9c5f676808 from retail 2021-01-01 18:04:43 +03:00
Bunny67 e0672fe539 from retail 2020-12-27 05:57:15 +03:00
Bunny67 7cbc40c959 beta 2020-11-15 23:43:10 +03:00
Bunny67 0f4f16b6f0 beta 2020-09-16 23:06:44 +03:00
Bunny67 72eed41cf0 beta 2020-09-16 23:03:25 +03:00
Bunny67 0e3999b8fd from retail 2020-07-18 22:48:08 +03:00
Bunny67 f9dab14beb from retail 2020-07-16 23:23:54 +03:00
Bunny67 6a7003b535 from retail 2020-07-11 00:19:17 +03:00
Bunny67 de72394bda from retail 2020-06-09 23:31:40 +03:00
Bunny67 f2e1a0928d init 2020-06-02 23:40:06 +03:00