Subject | Hash | Author | Date (UTC) |
---|---|---|---|
feat!: Add Beacon of Light indicator | 7121f0bba2055a652c607195dc51a1aa343ad757 | Vladyslav Bondarenko | 2021-02-13 22:34:41 |
feat: Automatically assign paladin party role | cc3229299925367ed62dbbc0d4517430a3f12aea | Vladyslav Bondarenko | 2021-02-09 14:45:29 |
fix: Add backup font | 0ebd17578b5dfc0cb47eb63860416536b93d4aaf | Vladyslav Bondarenko | 2021-02-08 09:08:44 |
feat: Add Inquisition buff indicator | ca59d47fd34e155a6bc74805d980db3f6ae7b20d | Vladyslav Bondarenko | 2021-02-05 10:59:51 |
feat: Hide native spell activation overlay | ddcc371861c562e3ea619510b0770259014be5df | Vladyslav Bondarenko | 2021-02-05 06:40:44 |
feat: Hide native paladin holy power indicator | 1732d87a2bf90a3f53efeba8d7e815ba24320ea1 | Vladyslav Bondarenko | 2021-02-04 12:03:08 |
fix: Render decay degree correctly out of combat | 893d43fe8418e5be5ed226fd5a0e484b65f34f91 | Vladyslav Bondarenko | 2021-02-02 16:20:19 |
fix: Apply Blessed Life indicator to holy spec only | 1aef6bf1d31d5fccfafcc16d86c175844ed4def9 | Vladyslav Bondarenko | 2021-02-01 10:00:18 |
feat!: Track Blessed Life effect | da49631eb74530816c74b17b5281087173414894 | Vladyslav Bondarenko | 2021-02-01 02:45:53 |
feat: Minor addition | 3125daeab3730d2b9f0dde58e4ce747c8c262d24 | Vladyslav Bondarenko | 2021-01-27 03:28:48 |
fix: Adjust position of general indicators | b1adb3cd69c9355552ac0faece7c7668b9771de6 | Vladyslav Bondarenko | 2021-01-26 20:26:16 |
fix: Render holy power decay smoothly | 729371cd9355fdd0ac178a0e11f479ad0bea3ae3 | Vladyslav Bondarenko | 2021-01-26 04:41:18 |
feat: Prototype decay indicator | f16a16c34d25fd71ad74347da09c0f410a7768cf | Vladyslav Bondarenko | 2021-01-25 22:26:52 |
feat: Color indicator after unit combat status | cf42abb180bc02da2aeedd8bccda693a167017c8 | Vladyslav Bondarenko | 2021-01-22 09:01:53 |
feat: Improve power indicator appearance | fcd41d0a2cb7234c00f26ed2f0dc5c1183397d52 | Vladyslav Bondarenko | 2021-01-22 07:10:55 |
feat: Reduce update load | 76a011715619c33caed714fec4161e53ecb1512c | Vladyslav Bondarenko | 2021-01-16 19:47:37 |
feat: Track more relevant effects | f5f8803fa3cb59b43e144d9e53ea50fafcc23008 | Vladyslav Bondarenko | 2021-01-16 12:40:07 |
fix: Code base maintainance Add documentation and sanitise some arguments. | 52e74dfb3f9fce8617ed4d4c63105966bb388daa | Vladyslav Bondarenko | 2021-01-12 13:07:49 |
fix: Typo The error did not affect performance. | 216d3738bf4ef2de6be1361b7e2b57a6a7387f71 | Vladyslav Bondarenko | 2021-01-12 01:28:45 |
feat!: Show indicators correctly while in combat | 0b6bf32b2a6ad2537b8cba766384e2d7f4b053d5 | Vladyslav Bondarenko | 2021-01-11 23:35:19 |
File | Lines added | Lines deleted |
---|---|---|
.luacheckrc | 3 | 0 |
daybreak.lua | 97 | 1 |
daybreak.toc | 1 | 1 |
File .luacheckrc changed (mode: 100644) (index cce4e0e..455ea24) | |||
... | ... | stds.wow = { | |
25 | 25 | "GetNumTalentTabs", | "GetNumTalentTabs", |
26 | 26 | "GetNumTalents", | "GetNumTalents", |
27 | 27 | "GetPartyMember", | "GetPartyMember", |
28 | "GetPrimaryTalentTree", | ||
28 | 29 | "GetRealmName", | "GetRealmName", |
29 | 30 | "GetSpellCooldown", | "GetSpellCooldown", |
30 | 31 | "GetSpellInfo", | "GetSpellInfo", |
... | ... | stds.wow = { | |
62 | 63 | "UnitAffectingCombat", | "UnitAffectingCombat", |
63 | 64 | "UnitAura", | "UnitAura", |
64 | 65 | "UnitBuff", | "UnitBuff", |
66 | "UnitClass", | ||
65 | 67 | "UnitFactionGroup", | "UnitFactionGroup", |
66 | 68 | "UnitIsDead", | "UnitIsDead", |
67 | 69 | "UnitName", | "UnitName", |
68 | 70 | "UnitPlayerControlled", | "UnitPlayerControlled", |
69 | 71 | "UnitPower", | "UnitPower", |
72 | "UnitSetRole", | ||
70 | 73 | "date", | "date", |
71 | 74 | "difftime", | "difftime", |
72 | 75 | "geterrorhandler", | "geterrorhandler", |
File daybreak.lua changed (mode: 100644) (index 6746be3..75e373e) | |||
... | ... | local function getEstimatedBattlegroundRole(unitDesignation) | |
51 | 51 | end | end |
52 | 52 | ||
53 | 53 | ||
54 | local function roleFrameEventProcessor(roleFrame, eventCategory) | ||
54 | local function roleFrameEventProcessor() | ||
55 | 55 | local unitDesignation = 'player' | local unitDesignation = 'player' |
56 | 56 | local roleDesignation = getEstimatedBattlegroundRole(unitDesignation) | local roleDesignation = getEstimatedBattlegroundRole(unitDesignation) |
57 | 57 | UnitSetRole(unitDesignation, roleDesignation) | UnitSetRole(unitDesignation, roleDesignation) |
... | ... | local function initHolyPower(rootFrame) | |
406 | 406 | return hpf | return hpf |
407 | 407 | end | end |
408 | 408 | ||
409 | --[[-- | ||
410 | Add dedicated Beacon of Light indicator. | ||
411 | @section beacon | ||
412 | ]] | ||
413 | |||
414 | local function beaconEventProcessor(self, ...) | ||
415 | local combatLogEventCategory = select(2, ...) | ||
416 | local unitName1 = select(5, ...) | ||
417 | local unitName2 = select(9, ...) | ||
418 | local spellName = select(13, ...) | ||
419 | --[[print(combatLogEventCategory, unitName1, unitName2, spellName)]]-- | ||
420 | local playerName = UnitName('player') | ||
421 | if playerName ~= unitName1 then | ||
422 | return | ||
423 | end | ||
424 | if 'Beacon of Light' ~= spellName then | ||
425 | return | ||
426 | end | ||
427 | if 'SPELL_AURA_APPLIED' == combatLogEventCategory or | ||
428 | 'SPELL_AURA_REFRESH' == combatLogEventCategory then | ||
429 | self.unitName = unitName2 | ||
430 | self:Show() | ||
431 | end | ||
432 | if 'SPELL_AURA_REMOVED' == combatLogEventCategory then | ||
433 | self.unitName = nil | ||
434 | self:Hide() | ||
435 | end | ||
436 | end | ||
437 | |||
438 | local function beaconUpdateProcessor(self) | ||
439 | if nil == self then | ||
440 | return | ||
441 | end | ||
442 | local t = { | ||
443 | 'party1', 'party2', 'party3', 'party4', | ||
444 | 'raid1', 'raid2', 'raid3', 'raid4', 'raid5', | ||
445 | 'raid5', 'raid6', 'raid7', 'raid8', 'raid9', | ||
446 | 'raid10', 'raid11', 'raid12', 'raid13', 'raid14', | ||
447 | 'raid15', 'raid16', 'raid17', 'raid18', 'raid19', | ||
448 | 'raid20', 'raid21', 'raid22', 'raid23', 'raid24', | ||
449 | 'raid25', 'raid26', 'raid27', 'raid28', 'raid29', | ||
450 | 'raid30', 'raid31', 'raid32', 'raid33', 'raid34', | ||
451 | 'raid35', 'raid36', 'raid37', 'raid38', 'raid39', | ||
452 | 'player' | ||
453 | } | ||
454 | local m = self.unitName | ||
455 | if nil == m then | ||
456 | self:Hide() | ||
457 | return | ||
458 | end | ||
459 | local d | ||
460 | local i = 0 | ||
461 | while (i < #t) do | ||
462 | i = i + 1 | ||
463 | local r = t[i] | ||
464 | local n = UnitName(r) | ||
465 | if n == m then | ||
466 | d = r | ||
467 | break | ||
468 | end | ||
469 | end | ||
470 | if nil == d then | ||
471 | self.unitName = nil | ||
472 | self:Hide() | ||
473 | return | ||
474 | end | ||
475 | if UnitIsDead(d) then | ||
476 | self.unitName = nil | ||
477 | self:Hide() | ||
478 | end | ||
479 | |||
480 | if 1 == IsSpellInRange('Beacon of Light', d) then | ||
481 | self.artwork:SetVertexColor(1, 1, 1, 1) | ||
482 | else | ||
483 | self.artwork:SetVertexColor(1, 1, 1, 0.4) | ||
484 | end | ||
485 | end | ||
486 | |||
487 | local function initBeacon(rootFrame) | ||
488 | local beacon = CreateFrame('FRAME', 'DaybreakBeaconOfLightFrame', rootFrame) | ||
489 | beacon:SetSize(28, 28) | ||
490 | beacon:SetPoint('BOTTOMLEFT', 10 * 32, 3 * 32) | ||
491 | |||
492 | local artwork = beacon:CreateTexture(beacon:GetName() .. 'Artwork', 'ARTWORK') | ||
493 | artwork:SetAllPoints() | ||
494 | artwork:SetTexture("Interface\\Icons\\Ability_Paladin_BeaconOfLight") | ||
495 | beacon.artwork = artwork | ||
496 | |||
497 | beacon:SetScript('OnEvent', beaconEventProcessor) | ||
498 | beacon:SetScript('OnUpdate', beaconUpdateProcessor) | ||
499 | beacon:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED') | ||
500 | |||
501 | return beacon | ||
502 | end | ||
503 | |||
409 | 504 | --[[-- | --[[-- |
410 | 505 | Blessed life. | Blessed life. |
411 | 506 | Track availability of Blessed Life effect on the player character. | Track availability of Blessed Life effect on the player character. |
... | ... | local function init(rootFrame) | |
738 | 833 | initDaybreak(rootFrame) | initDaybreak(rootFrame) |
739 | 834 | initHolyPower(rootFrame) | initHolyPower(rootFrame) |
740 | 835 | initRole(rootFrame) | initRole(rootFrame) |
836 | initBeacon(rootFrame) | ||
741 | 837 | ||
742 | 838 | print('[Daybreak]: Addon loaded.') | print('[Daybreak]: Addon loaded.') |
743 | 839 |
File daybreak.toc changed (mode: 100644) (index f8a1543..ff01aa6) | |||
1 | 1 | ##Interface: 40300 | ##Interface: 40300 |
2 | 2 | ##Title: Daybreak | ##Title: Daybreak |
3 | ##Version: 0.0.19-SNAPSHOT | ||
3 | ##Version: 0.0.20-SNAPSHOT | ||
4 | 4 | ##Notes: Add paladin player buff indicator | ##Notes: Add paladin player buff indicator |
5 | 5 | daybreak.xml | daybreak.xml |
6 | 6 | daybreak.lua | daybreak.lua |