How do you hide cooldown text?
How do you hide the built in cooldown text.
I use the cooldownframe template. I just want my addon to hide the text, since I have my own text showing the cooldown. EDIT: found it CooldownFrame:SetHideCountdownNumbers(true or false) This setting stops working once you resize the cooldown frame. I have no idea how to work around this. Changing the UI scale in the blizzard settings has the same effect, reporting this as a bug in the forums. |
Cooldown text is one of the regions of cooldown frame, currently it's the first one, so I "hide" it this way:
Lua Code:
You may try to force hide it, doing something like this to regions normally doesn't cause problems, but I dun remember whether it's a taint-free solution or not. But there's definitely an issue, cuz I dun use it in this case, hehe... Lua Code:
You may try to re-parent it to a hidden dummy frame. |
The CVar that is ultimately the master switch is countdownForCooldowns. cooldown:SetHideCountdownNumbers() differentiates which CooldownFrames should show the numbers and when to show them.
|
Yeah I already found that function. Problem is its bugged on beta when you change the scale of the texture.
Blizzard uses the same function in the death knight rune code. Its thru xml, but it bugs out just the same. I haven't tried the work around yet. |
I was explaining the differences between the CVar and the API function. The CVar better suits your needs.
|
I can't turn off the setting, that would effect the whole UI, and someone may get annoyed that my mod turns it off, and they're not seeing cooldown text on their UI.
|
I thought you were asking how to turn it off globally. I'm guessing as a workaround to the resizing problem, you can try to hook into the OnSizeChanged script and reapply the setting. Either that or set it every time you call cooldown:SetCooldown().
|
Already tried reapplying doesn't work. I think the work around posted above is best unless it causes taint.
Haven't had time to try it yet. |
You can try it, but as the entire thing happens on C side, I doubt it'll work.
|
You're right the work around didn't work.
Most will probably turn it off and use omnicc. The built in stuff isn't as flexible where you can use it. If blizzard fixes it then i'll use it in my mod. Edit: The cooldown animation bugs out even if you're not using the hidecooldowntext call. Blizzard needs to fix that. |
Found a work around.
Code:
local AG = CooldownFrame:CreateAnimationGroup() And now I can use SetHideCountdownNumbers(true), all works now. Hopefully they fix it cause I hate doing hacks like this. |
I can't even begin to fathom how this works. It must be a quirk of some type.
|
Here's another weird one.
Interface\ChatFrame\ChatFrameColorSwatch If I try to show this texture it appears green like it doesn't exist. But its in the files. Blizzards built in color picker has issues showing it too. |
"Interface\\ChatFrame\\ChatFrameColorSwatch"
You have to double up the backslashes when setting a texture. |
Only when used in quotes when using [[ ]] you don't. Already tested this and the default UI bugs out using this texture as well. But its weird how it doesn't work even though you can extract the texture from the game files and view it.
|
Quote:
|
Loaded the texture using both notations and it's working fine using either of these.
Code:
"Interface\\ChatFrame\\ChatFrameColorSwatch" Here's a copy of the test code: Lua Code:
|
Well I'm at a loss. the ace3 gui is showing green around all the color picker buttons. And when I went in and changed the alpha to zero it turned into a green square. That lead me to believe it was the swatch texture. AceGUIWidget-ColorPicker.lua maybe you can find something that can be fixed.
The color picker is suppose to show a colored square too. There's something weird going on, go into general tab then background. The square doesn't stay on as you change the color. This is in the default UI. I redid my test, and it worked, but still doesn't solve the issue. |
Is this live or alpha? I've been testing both so far.
|
alpha, hoping next build fixes some of these bugs.
|
All times are GMT -6. The time now is 12:43 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI