Commit Graph

81 Commits

Author SHA1 Message Date
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 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 c48ce524f8 from retail 2025-02-25 21:49:19 +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 a5116d560a fix last commit 2025-02-15 18:13:50 +01:00
NoM0Re 7a27fdae47 from retail diffcheck complete 2025-02-15 18:09:04 +01:00
NoM0Re 5d1ac74d27 Rework LibGroupTalents now also returns function returns additionally, add Spec Role triggers to load/generic/bt2, fix WeakAuras.GetRegion
- **WeakAuras.SpecForUnit(unit)** = Returns: `classFileName..spec`, `Dominant Tree`, `spent1`, `spent2`, `spent3`
- **WeakAuras.GetUnitRole(unit)** = Returns one of: `"melee"`, `"caster"`, `"healer"`, `"tank"`
- **WeakAuras.SpecRolePositionForUnit(unit)** = Returns: `Dominant Tree`, `spent1`, `spent2`, `spent3`
- **WeakAuras.CheckTalentForUnit(unit, talentId)** = Returns: `"Points spent"` in talent or `nil`
- **WeakAuras.CheckGlyphForUnit(unit, glyphId)** = Returns: `true` if the player has the glyph associated with `spellID` or `spellName`, we can only see the glyphs of players running `LibGroupTalents-1.0`
2025-02-11 00:12:30 +01:00
NoM0Re 4f40aa0b40 from retail 2025-02-09 02:42:51 +01:00
NoM0Re f806ecf316 fix OptionsFrame not using saved framepostion and fix dynamicTextCodesFrame 2025-02-08 18:31:53 +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 b9e3113eab from retail
Icon Picker supports now also ID's. catch pattern may needs a regression.
2025-02-04 15:49:16 +01:00
NoM0Re 3913a570fa from retail 2025-02-02 19:22:54 +01:00
NoM0Re 8e07a6495c from retail 2025-01-27 03:28:33 +01:00
NoM0Re 4750b095d3 from retail 2025-01-26 03:47:13 +01:00
NoM0Re 667a2f3f50 from retail 2025-01-25 23:37:36 +01:00
NoM0Re 4a326118da from retail 2025-01-25 20:07:12 +01:00
NoM0Re c066688fef from retail 2025-01-25 19:03:51 +01:00
NoM0Re e8451987a3 from retail 2025-01-25 18:42:10 +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 1152abe6a5 from retail 2025-01-25 17:45:42 +01:00
NoM0Re 6eafc394ae from retail 2025-01-25 17:12:25 +01:00
NoM0Re bd6985e67a from retail 2025-01-24 21:18:29 +01:00
NoM0Re df23f7238e from retail 2025-01-23 22:04:34 +01:00
NoM0Re e1e0744ecf from retail 2025-01-23 18:30:22 +01:00
NoM0Re 674ea9fe1e from retail 2025-01-22 18:23:23 +01:00
NoM0Re a643b275ba from retail 2025-01-19 16:02:00 +01:00
NoM0Re dccd22b610 from retail 2025-01-19 14:27:20 +01:00
NoM0Re f72e96ae6e from retail 2025-01-18 17:23:16 +01:00
NoM0Re b900520d5f from retail 2025-01-17 17:01:24 +01:00
NoM0Re db45573d1c from retail 2025-01-16 22:58:42 +01:00
NoM0Re 24196cd7ce from retail 2025-01-16 02:47:58 +01:00
NoM0Re 5022fe7ffd from retail 2025-01-11 21:04:42 +01:00
NoM0Re 4c4b84863f from retail 2025-01-10 19:24:25 +01:00
NoM0Re b89c221c34 from retail 2025-01-10 14:15:01 +01:00
NoM0Re aee89075c9 from retail 2025-01-09 17:17:53 +01:00
NoM0Re a5dbbd2640 Clean up WeakAuras table and remove members that no one should touch 2025-01-09 15:14:12 +01:00
NoM0Re 988145737d from retail 2025-01-08 00:24:04 +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 873748218a Add debug log from retail 2025-01-06 12:53:03 +01:00
NoM0Re 13ab335094 from retail 2025-01-06 12:53:03 +01:00
NoM0Re 40dcae7bcf from retail 2025-01-06 12:53:03 +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
NoM0Re afa66ff265 add DummyPRDFrame, multiple Prototype Load Functions, Fix queued function in loginQueue, Refactor unit check and awesome detection 2024-12-29 13:28:40 +01:00
NoM0Re 9bc27cada2 add handling for non awesome_wotlk user 2024-07-01 19:37:29 +02:00