Skip to content

Commit

Permalink
Core: add new timer objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Jan 5, 2024
1 parent 9795487 commit 7cc8b6a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
18 changes: 17 additions & 1 deletion DBM-Core/DBM-Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local function currentFullDate()
end

DBM = {
Revision = parseCurseDate("20231228004938"),
Revision = parseCurseDate("20240103184719"),
DisplayVersion = "10.1.11 alpha", -- the string that is shown as version
ReleaseRevision = releaseDate(2023, 12, 28) -- the date of the latest stable version that is available, optionally pass hours, minutes, and seconds for multiple releases in one day
}
Expand Down Expand Up @@ -10666,6 +10666,22 @@ do
return newTimer(self, "addscustom", ...)
end

function bossModPrototype:NewCDNPTimer(...)
return newTimer(self, "cdnp", ...)
end

function bossModPrototype:NewNextNPTimer(...)
return newTimer(self, "nextnp", ...)
end

function bossModPrototype:NewCDCountNPTimer(...)
return newTimer(self, "cdcountnp", ...)
end

function bossModPrototype:NewNextCountNPTimer(...)
return newTimer(self, "nextcountnp", ...)
end

function bossModPrototype:NewAITimer(...)
return newTimer(self, "ai", ...)
end
Expand Down
10 changes: 10 additions & 0 deletions DBM-Core/localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ L.AUTO_TIMER_TEXTS = {
addscustomshort = "Adds (%%s)",
roleplay = "Role play"
}
--This basically clones np only bar option and display text from regular counterparts
L.AUTO_TIMER_TEXTS.cdnp = L.AUTO_TIMER_TEXTS.cd
L.AUTO_TIMER_TEXTS.nextnp = L.AUTO_TIMER_TEXTS.next
L.AUTO_TIMER_TEXTS.cdcountnp = L.AUTO_TIMER_TEXTS.cdcount
L.AUTO_TIMER_TEXTS.nextcountnp = L.AUTO_TIMER_TEXTS.nextcount


L.AUTO_TIMER_OPTIONS = {
target = "Show timer for $spell:%s debuff (%ds)",
Expand All @@ -520,10 +526,14 @@ L.AUTO_TIMER_OPTIONS = {
ai = "Show AI timer for $spell:%s cooldown (%ds)",
cd = "Show timer for $spell:%s cooldown (%ds)",
cdcount = "Show timer for $spell:%s cooldown (%ds)",
cdnp = "Show nameplate only timer for $spell:%s cooldown (%ds)",
cdnpcount = "Show nameplate only timer (with count) for $spell:%s cooldown (%ds)",
cdsource = "Show timer (with source) for $spell:%s cooldown (%ds)",--Maybe better wording?
cdspecial = "Show timer for special ability cooldown (%ds)",
next = "Show timer for next $spell:%s (%ds)",
nextcount = "Show timer for next $spell:%s (%ds)",
nextnp = "Show nameplate only timer for next $spell:%s (%ds)",
nextnpcount = "Show nameplate only timer (with count) for next $spell:%s (%ds)",
nextsource = "Show timer (with source) for next $spell:%s (%ds)",--Maybe better wording?
nextspecial = "Show timer for next special ability (%ds)",
achievement = "Show timer for %s (%ds)",
Expand Down

0 comments on commit 7cc8b6a

Please sign in to comment.