List of commits:
Subject Hash Author Date (UTC)
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
Initial commit 447e6a5ac2cc64f0f818663ba08681615327b19a Vladyslav Bondarenko 2021-01-11 20:26:55
Commit da49631eb74530816c74b17b5281087173414894 - feat!: Track Blessed Life effect
Author: Vladyslav Bondarenko
Author date (UTC): 2021-02-01 02:45
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2021-02-01 02:45
Parent(s): 09d4d242b70d69260fa6ac89ec0c57c9d823bb8a
Signer:
Signing key:
Signing status: N
Tree: f5b9123cfba858efa7f61212840e2e55797e31be
File Lines added Lines deleted
daybreak.lua 69 0
daybreak.toc 1 1
File daybreak.lua changed (mode: 100644) (index fbf87c6..72266ca)
... ... local function createButton(column, row, localizedSpellName, buttonName, parentF
412 412 return button return button
413 413 end end
414 414
415 --[[--
416 Process combat log events to track Blessed Life effect.
417 See COMBAT_LOG_EVENT event category.
418 @function blessedLifeEventProcessor
419 ]]
420 local function blessedLifeEventProcessor(blessedLife, eventCategory, instance,
421 combatLogEventCategory, ...)
422 local now = GetTime()
423 local unitDesignation = 'player'
424
425 --[[ Process if blessed life effect occurred
426 -- if it did, remember the time instance ]]--
427 local unitName = select(7, ...)
428 local playerName = UnitName(unitDesignation)
429 if 'SPELL_ENERGIZE' == combatLogEventCategory and playerName == unitName then
430 local spellName = select(11, ...)
431 if 'Blessed Life' == spellName then
432 blessedLife.lastEffectInstance = now
433 end
434 end
435
436 --[[ Calculate amount of seconds passed since last proc ]]--
437 local blessedLifeCooldown = 8
438 local lastEffectInstance = blessedLife.lastEffectInstance or 0
439 local blessedLifeReady = math.abs(now - lastEffectInstance) > blessedLifeCooldown
440
441 --[[ If player is in combat and more than eight seconds passed since last proc
442 -- then show that blessed life is ready to proc ]]--
443 local combatFlag = 1 == UnitAffectingCombat(unitDesignation) or false
444 if combatFlag and blessedLifeReady then
445 blessedLife:Show()
446 else
447 blessedLife:Hide()
448 end
449 end
450
451 --[[--
452 Create an indicator for Blessed Life effect.
453 @function initBlessedLife
454 @tparam frame rootFrame
455 @treturn frame
456 ]]
457 local function initBlessedLife(rootFrame)
458 assert (rootFrame ~= nil)
459
460 local blessedLife = CreateFrame('FRAME', 'DaybreakBlessedLifeFrame', rootFrame)
461 local size = getDefaultButtonSize()
462 local padding = math.max(32 - size, 0)
463 local s = size + padding
464 local column = 2
465 local row = 0
466 blessedLife:SetSize(size, size)
467 blessedLife:SetPoint('BOTTOMLEFT', s * column, s * row)
468
469 local artwork = blessedLife:CreateTexture(blessedLife:GetName() .. 'Artwork', 'ARTWORK')
470 artwork:SetAllPoints()
471 artwork:SetTexture("Interface\\Icons\\Spell_holy_blessedlife")
472 blessedLife.artwork = artwork
473
474 blessedLife:SetScript('OnEvent', blessedLifeEventProcessor)
475 blessedLife:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED')
476
477 blessedLife:Hide()
478
479 return blessedLife
480 end
481
415 482 --[[-- --[[--
416 483 When variables loaded then create and configure all required frames. When variables loaded then create and configure all required frames.
417 484 Must only be executed once per script lifetime. Must only be executed once per script lifetime.
 
... ... local function init(rootFrame)
461 528
462 529 --[[ Retribution ]]-- --[[ Retribution ]]--
463 530
531 initBlessedLife(rootFrame)
532
464 533 print('[Daybreak]: addon loaded') print('[Daybreak]: addon loaded')
465 534
466 535 return rootFrame return rootFrame
File daybreak.toc changed (mode: 100644) (index d42c432..572dcb7)
1 1 ##Interface: 40300 ##Interface: 40300
2 2 ##Title: Daybreak ##Title: Daybreak
3 ##Version: 0.0.11-SNAPSHOT
3 ##Version: 0.0.12-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
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/wowaddons

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/wowaddons

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/wowaddons

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main