234 Commits

Author SHA1 Message Date
Lundmark 85c1f5e542 (fix/tooltips) SetSpellByID -> Hardcoded Spell Escape Sequence strings
this is a fix for GameTooltip for Spells. In 3.3.5 API, GameTooltip:SetSpellByID only allows player known spells to be set.
The workaround for this is using GameTooltip:SetHyperlink() and hardcoding an escape sequence for spells.
2025-02-27 14:05:48 +01:00
NoM0Re 04233722ee 5.19.4 and fix #20 2025-02-27 07:49:48 +01: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 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 20ce3ed27f fix workflow/issue templates 2025-02-20 12:25:51 +01:00
NoM0Re fd6a0b01f4 from retail 2025-02-18 19:30:43 +01:00
NoM0Re 6714432be6 from retail 2025-02-18 17:13:03 +01:00
NoM0Re 02fe8164f6 from retail 2025-02-16 20:50:05 +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 ad18a2bd7f fix dragging 2025-02-14 19:03:25 +01:00
NoM0Re 290981ff25 from retail
diffchecked
2025-02-14 18:46:41 +01:00
NoM0Re 436041dd92 from retail
diffchecked
2025-02-13 18:59:41 +01:00
NoM0Re 4c6277c667 from retail
diffchecked
2025-02-13 18:18:03 +01:00
NoM0Re 5c9b4aeb4e from retail
fix of the reverted commit
2025-02-12 21:40:08 +01:00
NoM0Re f94aff6a9d from retail 2025-02-11 20:18:57 +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 f3a7bb8993 from retail 2025-02-09 14:21:45 +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 5cdb9aed28 port newest WeakAurasStopMotion and include it
https://www.patreon.com/posts/new-stop-motion-119300059
2025-02-06 23:22:05 +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 95a13c6896 fix libs not loading, use libgrouptalents, but still not working 2025-02-01 20:17:50 +01:00
NoM0Re 857f71de3a Merge branch 'master' into update 2025-01-27 03:34:20 +01:00
NoM0Re 8e07a6495c from retail 2025-01-27 03:28:33 +01:00
NoM0Re 0e761a6814 from retail 2025-01-26 21:52:59 +01:00
NoM0Re f9bf9c3c16 from retail 2025-01-26 21:24:18 +01:00
NoM0Re 38533d0e99 from retail
diffchecked
2025-01-26 19:24:17 +01:00
NoM0Re dcd0f833ac from retail 2025-01-26 12:33:16 +01:00
NoM0Re 4750b095d3 from retail 2025-01-26 03:47:13 +01:00
NoM0Re 4884ac5132 fix versioncheck 2025-01-26 00:45:56 +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 bd4cba924f from retail 2025-01-25 16:14:11 +01:00
NoM0Re bd6985e67a from retail 2025-01-24 21:18:29 +01:00
NoM0Re b831fb4009 from retail 2025-01-24 20:50:23 +01:00
NoM0Re df23f7238e from retail 2025-01-23 22:04:34 +01:00
NoM0Re 4ed4d4159b from retail 2025-01-23 19:40:40 +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 23c7da5ea6 Refactor progress handling
probably some regressions
2025-01-22 03:37:10 +01:00