tullamods / tullacc Goto Github PK
View Code? Open in Web Editor NEWMinimal addon for displaying cooldown text on buttons
License: MIT License
Minimal addon for displaying cooldown text on buttons
License: MIT License
hey im not a programer what so ever but i have noticed sence yesterday or early today that tullaCC have been acting like omniCC in the manner of that i can still see a countdown on enemy debuffs it occures on both classic wow and retail wow. I noticed when i last updated the addon and i would love if tullaCC to work like it used to thanks in advance and keep up the good job.
I'm using tekticles to change my global game fonts, which tullaCC picks up nicely.
However, I've noticed that tullaCC displays cooldowns using Blizzard's default font (FritzQuadrata I think?) when I've also enabled TellMeWhen.
Is there something that can be done about this? It's probably more a TMW issue than tullaCC but I couldn't figure out why this would happen at all.
The LUA error below breaks the addon completely. It happened immediately after I joined a group, and a reload UI didn't work. All of a sudden sometime in the middle of the Mythic+ dungeon, the timers worked again.
4084x tullaCC\cooldown.lua:126: attempt to index local 'style' (a nil value) tullaCC\cooldown.lua:126: in function
UpdateStyle'
tullaCC\cooldown.lua:152: in function <tullaCC\cooldown.lua:149>Locals:
{
self = Grid2iconbuffs0105 {
0 =
_tcc_start = 0
_tcc_duration = 0
}
style = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'style' (a nil value)"
Addon =
PLAYER_LOGOUT = defined @tullaCC\main.lua:33
CleanupDatabase = defined @tullaCC\config.lua:47
eventHandler = {
}
SetupDatabase = defined @tullaCC\config.lua:33
Config ={
}
ResetDatabase = defined @tullaCC\config.lua:188
PLAYER_LOGIN = defined @tullaCC\main.lua:28
OnEvent = defined @tullaCC\main.lua:21
Timer ={
}
Display = {
}
Cooldown ={
}
GetDatabaseDefaults = defined @tullaCC\config.lua:54
}
`
I've noticed that the cooldown frames behave somewhat odd when various time passage mechanics are involved, I belive Madness: Desynchronized uses it as well as global CDR effects to some extent.
I think the minDuration doesn't work well with but not only, I've noticed some odd interactions where the spell goes on cooldown but the frame doesn't update properly until a second or so later.
I'm not sure if that is in some way related to timeMod returned by _Aura or if it needs to be at all referenced by cooldowns.
Seems that some CDs bypass the MIN_SCALE check in Timer_OnSizeChanged, I 'solved' it by adding the following under Timer_OnUpdate
if(self:GetParent():GetWidth() / ICON_SIZE < MIN_SCALE) then
self.text:Hide()
self:SetScript('OnUpdate', nil)
return;
end;
Give us a clear and concise description of the problem, and what you expect to happen
ElvUI ActionBars only show a cooldown text if the option Show Numbers for Cooldowns
in the Interface/ActionBars options is enabled (only Buttons with charges show durations). The problem which comes up with that is that all WeakAuras have 2 duration texts, which is not so easy to read :)
The ElvUI Cooldown Text is disabled. The ElvUI option Force Hide Blizzard Text
is disabled (seems to disable Interface/ActionBars/Show Numbers for Cooldowns
)
Do you have any steps to reproduce this issue?
Interface/ActionBars/Show Numbers for Cooldowns
to offInterface/ActionBars/Show Numbers for Cooldowns
to onAre you getting any error messages?
No error messages!
What version of tullaCC are you running?
9.0.0 (2020-10-13)
What version of World of Warcraft are you on?
[1]="9.0.5",
[2]="38134",
[3]="Mar 29 2021",
[4]=90005
What other addons are you running?
Error occurs with all addons disabled besides tullaCC, WeakAuras and ElvUI
Back in version 7.2.0 the font size for any given cooldown was calculated based on the width of the icon it was displayed on:
function Timer.OnSizeChanged(self, width, height)
local fontScale = round(width) / ICON_SIZE
ad0dff9 changed the calculation to use the icons size via GetSize instead:
function Display:CalculateSizeRatio()
local sizeRatio = round(min(self:GetSize())) / ICON_SIZE
GetSize however causes the calculation to use the icons height instead.
The cooldown icons above the floating enemy health bars are much wider than they are high - in my case 20 wide by 14 high.
The old calculation using width resulted in a sizeRatio of ca. 20 / 36 = 0.55, which was quite readable:
The new calculation however leads to a sizeRatio of ca. 14 / 36 = 0.38, making the font way too small imho:
Would it be possible to change the calculation so the icons width / self.GetWidth()
is used to determine the font size (again)?
Square icons would be unaffected by this change and to my knowledge there are no other non square icons with cooldowns in the game.
Thanks in advance for your time!
Whenever I use something in my bags (like a flask) I get these .lua errors (got them from BugGrabber abd Bugsack). Maybe I should submit these on ElvUI site come to think of it, if that is the case, apologies.
22x tullaCC-5.4.1\cc.lua:77: attempt to index field "updater" (a nil value)
tullaCC-5.4.1\cc.lua:77: in function "Stop"
tullaCC-5.4.1\cc.lua:174: in function <tullaCC\cc.lua:155>
FrameXML\Cooldown.lua:4: in function "CooldownFrame_SetTimer"
ElvUI-6.94\modules\bags\bags.lua:141: in function "UpdateSlot"
ElvUI-6.94\modules\bags\bags.lua:370: in function "Layout"
ElvUI-6.94\modules\bags\bags.lua:433: in function <ElvUI\modules\bags\bags.lua:426>
Locals:
cd = ElvUI_ContainerFrameBag2Slot11Cooldown {
0 =
SetCooldown = defined =[C]:-1
timer = {
}
isHooked = true
}
start = 0
duration = 0
charges = nil
maxCharges = nil
remainingCharges = 0
timer = {
nextUpdate = -3.7029385599463e-009
fontScale = 0.75
text = {
}
0 =
}
MIN_DURATION = 3
Timer =
tullaCC Version: 4.3.1
WoW Version: 4.3.3(15354)
Bug: Incorrect timer on 'Unhatched Jubling Egg'(http://www.wowhead.com/item=19462) from quest 'Spawn of Jubjub'(http://www.wowhead.com/quest=7946)
Screenshot: http://i.imgur.com/esVuA.jpg
When I'm casting Ascendance on my (elemental) shaman, I lose the cooldown timer. The spiral is still there but no timings.
If I then remove the spell from my bars (Dominos) and put it back into the same slot, the cooldown magically pops up. It seems the cooldown only starts after the effect of the spell wears off.
This is rather annoying as it's a major CD for shamans of any spec.
A small white cooldown text is showing up in front of the normal TullaCC cooldown text. It doesn't appear on blizzards default bar but it does show on dominos and bartender in my testing.
Hi, i'm using shadowed unit frames and the count is stuck, for example if i have 46 min left in a buff tulla still shows 56, i reinstall the addon but nothing change. Thankyou!
Edit: i made more tests and apparently the issue can be solved if you unselect "disable blizzard cooldown count" in the general options of shadowed unit frames
Not sure if this is still 'supported' but since 7.1 if you hover over a button that's on CD the timer gets removed.
Previous version of omnicc had the ability to hide the spiral, is it possible to do in tullacc, I tried setting cd:SetAlpha(0) but that also hides the cooldown frame.
The cooldown timer gets 'confused' at times, I noticed it with Avenger Shield which has a cooldown reset mechanic. It seems to be related to the reset mechanic, where the timer doesn't get 'reset' correctly when the skill becomes available and instead gets carried over somehow.
PS. to clarify this is after the rewrite commit.
A previous version I was using had abilities that were recharging with more than one charge showing as grayed out with a spiral, the new version no longer does that and only shows the CD timer.
Is there a way to change this behaviour either with an option or perhaps someway to change the code?
This is very nice and lightweight, but it really needs a blacklist so i can stop it from showing on Plater auras :(
I've disabled all addons except for tcc and it still only show on the actionbars. Prior to 7.1 it would display on SUF ,TMW, and WA. I've tried adjusting the minscale and reducing it to .01 and it still only appears on actionbars. If I use omnicc everything appears correctly.
Hi. I can't get the duration timer to work from Grid2's buffs/debuffs with TullaCC.
It does work with OmniCC, but I do like TullaCC better, and want it to work with it as well. Can you please check this? Thank you.
Give us a clear and concise description of the problem, and what you expect to happen
Reloading while a WeakAura with the option Hide Cooldown Text
is showen, makes the duration visible regardless of the WA setting.
Do you have any steps to reproduce this issue?
Hide Cooldown Text
Are you getting any error messages?
No error messages!
What version of tullaCC are you running?
9.0.0 (2020-10-13)
What version of World of Warcraft are you on?
[1]="9.0.5",
[2]="38134",
[3]="Mar 29 2021",
[4]=90005
What other addons are you running?
Error occurs with all addons disabled besides tullaCC and WeakAuras
It's probably better in terms of garbage generation to return 3 parameters from getTimeText the first being the format string, and later use SetFormattedText. Since SetFormattedText is coded in C and isn't subject to lua garbage collection issue which string.format is.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.