Commit Graph

559 Commits

Author SHA1 Message Date
NoM0Re e9deb0183c (fix/Prototypes) Unit Characteristics Specialization check
- Closes #25
2025-02-27 21:03:38 +01:00
NoM0Re 9283851b4a (fix/Prototypes)talentwidget not loading on inital login
- Closes #19
2025-02-27 19:24:42 +01:00
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 b1c6b7d333 fix spec load, small fixes 2025-02-26 21:08:59 +01:00
NoM0Re 933ff4b15f luachecker 2025-02-26 11:18:46 +01:00
NoM0Re dd54cdb4e9 rework BT2, fix talentwidget on login didn't fire events 2025-02-26 11:17:13 +01:00
NoM0Re c48ce524f8 from retail 2025-02-25 21:49:19 +01:00
NoM0Re 2157fbc553 Fix dynamic group icons scaling issue, ensure class & spec load on login, reworked queued actions
dynamic group icons used incorrectly parent scale, even without set
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 0e0c49ec70 (fix/Prototypes) fix specs not localised, ruRU localisation
Special Thanks to 𒆜𝕲𝖔𝖔𝖉𝕲𝖚𝖞𒆜
2025-02-24 11:19:23 +01:00
NoM0Re ae4241a045 (Prototypes) add Class and Specialization to Trigger/Load 2025-02-23 18:52:58 +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 48d75b0352 (Libs/LibBabble-TalentTree) fix ruRU localization 2025-02-22 13:17:49 +01:00
NoM0Re 20ce3ed27f fix workflow/issue templates 2025-02-20 12:25:51 +01:00
NoM0Re b9ecca7bf5 (fix/BossMods) fix older DBM.Revision used String causing lua error 2025-02-20 10:04:10 +01:00
NoM0Re ff8c14f430 from retail 2025-02-19 19:16:56 +01:00
NoM0Re 14710abead (fix/Prototypes) fix combat log trigger 2025-02-19 18:28:38 +01:00
NoM0Re 285ace9f12 (fix/Prototypes) fix switching triggers lead to errors
e.g. from Combat Log to Spell Trigger
2025-02-19 14:32:35 +01:00
NoM0Re 9b38e5b5a3 (fix/Prototypes) CombatLog: Fix incorrect parentheses in GetIcon logic 2025-02-19 12:57:53 +01:00
NoM0Re 5b35e31d76 remove debug print 2025-02-19 01:49:38 +01:00
NoM0Re cfc26d8c99 Fix incorrect login message, rework LibGroupTalentsWrapper
The login message was triggered incorrectly due to the "Beta" tag in the version string. This has been fixed.

Almost completely removed due to impracticality with the 3.3.5a API.
When RAID_ROSTER_UPDATE or PARTY_MEMBERS_CHANGED fires, data is unavailable for ~1.5 seconds.
If these events fire again within that time, the timer needs to be restarted, leading to excessive code complexity and requiring handling for every edge case.
Instead, we now simply check if the unit has changed when the library fires its callback.
2025-02-19 01:45:04 +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 86b49b4010 update SwingTimer
Offhand is still not working because we don't have the CLEU arg isOffHand, that came with Cata
2025-02-17 00:34:30 +01:00
NoM0Re 02fe8164f6 from retail 2025-02-16 20:50:05 +01:00
NoM0Re f1c1bf71bb small fixes
`UnitExistsFixed(unit) == 1 and true or false` was in bunnys code, i was very confused with this, it shut have never returned correctly, i changed this and reverted this back and forth, now this will work and return correct values.
2025-02-16 13:57:09 +01:00
NoM0Re c9bc8b555b fix techframe 2025-02-15 18:29:53 +01:00
NoM0Re 7a27fdae47 from retail diffcheck complete 2025-02-15 18:09:04 +01:00
NoM0Re 586e4d02e4 from retail 2025-02-15 17:42:19 +01:00
NoM0Re dbdfffbf67 from retail 2025-02-15 17:34:53 +01:00
NoM0Re 2e91a460da fix elvui np 2025-02-15 14:50:44 +01:00
NoM0Re c1c58d46d0 from retail 2025-02-15 14:40:24 +01:00
NoM0Re 061a623e11 fix broken modernize 2025-02-14 20:14:04 +01:00
NoM0Re 290981ff25 from retail
diffchecked
2025-02-14 18:46: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 a9b95ca09d from retail 2025-02-12 21:32:40 +01:00
NoM0Re b7a505f118 Revert "from retail"
This reverts commit fc4b265688.
2025-02-12 20:46:34 +01:00
NoM0Re fc4b265688 from retail 2025-02-11 20:50:42 +01:00
NoM0Re d2b893e5f1 fix typo from eee4c23026 2025-02-11 20:27:45 +01:00
NoM0Re f94aff6a9d from retail 2025-02-11 20:18:57 +01:00
NoM0Re eee4c23026 Disable DBM for users with an outdated DBM version older than 2025-Feb-09 and always disable BigWigs triggers 2025-02-11 12:32:11 +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 4f98ae597f Fix indentation to use 2 spaces in multiple files 2025-02-09 21:08:57 +01:00
NoM0Re 75eb0fd437 port all time formats from retail
i may restruct this in future, or even make a lib, because i dont like to have custom locales mixed in here
2025-02-09 20:46:36 +01:00
NoM0Re 1ed8242c53 remove ScheduleTimerFixed out of BossMods 2025-02-09 18:41:47 +01:00
NoM0Re c27637908d from retail 2025-02-09 15:59:35 +01:00
NoM0Re 6ad996d52f from retail 2025-02-09 15:53:14 +01:00
NoM0Re c8febd0cb5 adjust Modernize to modernize 4.1.2 users SV correctly 2025-02-09 15:36:27 +01:00