callbacks can come at anytime though i would call it poor design if a addon registers media sometime after it loads.
this is what the default font is for. if the font you are looking for is not there then it uses the default one if at some other time your font becomes available it tells you via a callback that it is available. this is the only safe way to use fonts if you are not providing them yourself.
the problem with storing direct font paths of other addons fonts is that if you uninstall that addon your font now points at an invalid location and good luck with figuring out that mess :P
Edit:
also looking at your code why are you waiting till PLAYER_ENTERING_WORLD to update your textures? simply set your textures andright after register for the LSM callback and then update if the new one matches the one you need
i would call it poor design if a addon registers media sometime after it loads.
I was referring to addons that load via a addon loader. Like a raid addon that loads only after you joined a raid.
Yes I could set the font to a default value and then check (with LSM:IsValid) if the user selected media shows up. 1 extra update, but maybe better then no font. But this does not solve the problem with media from addons that load later.
the problem with storing direct font paths of other addons fonts is that if you uninstall that addon your font now points at an invalid location and good luck with figuring out that mess :P
Yes there would be no font then. It would be easy to select a different font but most users would panic^^
also looking at your code why are you waiting till PLAYER_ENTERING_WORLD to update your textures?
Because I didn't open LibSharedMedia-3.0.lua to find the LSM:IsValid function^^
Thanks for telling me about that function:)
Maybe in the end I will end up with an option to select how the media is saved xD I like to use the same textures on my alts without having all the addons enabled.
with addons that are load later your are pretty much out of luck and its the users fault if they pick that font :P. it basically comes down to the choice of either using lsm and accepting its problems (ie media not being available till later or not at all) or only using hardcoded fonts that you provide.
in my opinion LSM benefits far outway its problems.
and honestly i have never seen anyone complain of fonts loading in late. but i can see where that might cause an issue. you can always put a disclaimer warning of the issue and pointing to how users can add their own media so that that wont happen
I just updated today (the title of the option dialog says r67) and Fubar_GuildFu and Fubar_FriendFu have stopped being displayed. They appear in the like of addons for Chocolate and are both enabled. I tried disabling and re-enabling them but no luck.
Since neither of these nor Fubar2Broker has been updated, I guess something in the latest ChocolateBar made them go die in the dark. Any idea what it could be?
While I'm at it, there is something else that I noticed. DynPerf support for LDB, doesn't work as expected with ChocolateBar. The % after the number is not displayed when I log. If I disable and re-enable it, the % is now displayed as expected until the next relog/reboot. Not sure why but I suspect something around the suffix implementation.
I'm getting this issue in the latest version where plugins I have in the center won't show their tooltips if my mouse is all the way on the top of the screen. If I move it down very slightly they show up, but not as far up as I can go.
I'm getting this issue in the latest version where plugins I have in the center won't show their tooltips if my mouse is all the way on the top of the screen. If I move it down very slightly they show up, but not as far up as I can go.
Should be fixed now.
I noticed a similar problem with fubar plugins, but could not fix that yet.
I've been having an odd problem with ChocolateBar. I'm using 1.9.1. The addons on the 'edges' of the screen seem to grow progressively in size (.oO) towards the centre. This makes some of them look stretched and strange. This screeny shows the problem if you look closely at the left and right hand side of the bottom bar: http://img197.imageshack.us/img197/7042/wowscrnshot081109162917.jpg
It took me 2 minutes to disable a few plugins and place them how I want! Very nice, clean addon my friend!
Just a little question or maybe suggestion.
In look and feel, It is possible to adjust a different gap for the left and right ? I mean I love to have my mini icon without text on the right and keep my plugins with text on left side. But I want to put the gap on the right to like 4 and keep a bigger gap of like 15 on the left.
I'm curious if there could be an option to fix which object is the center of the center area. I want one particular one directly in the center, and two more to the right of it. Right now I'm sticking a couple little buttons to the left only to get the one I want centered.
Yeah, this is an easy workaround, so if it's much trouble at all, ignore this request. :)
request: make the buttons for the plugins the full height of the bar? sometimes my cursor will be at the very top of the screen & when right clicking will bring up the cocolatebar options instead of the right click being passed to the plugin.
this is what the default font is for. if the font you are looking for is not there then it uses the default one if at some other time your font becomes available it tells you via a callback that it is available. this is the only safe way to use fonts if you are not providing them yourself.
the problem with storing direct font paths of other addons fonts is that if you uninstall that addon your font now points at an invalid location and good luck with figuring out that mess :P
Edit:
also looking at your code why are you waiting till PLAYER_ENTERING_WORLD to update your textures? simply set your textures andright after register for the LSM callback and then update if the new one matches the one you need
I was referring to addons that load via a addon loader. Like a raid addon that loads only after you joined a raid.
Yes I could set the font to a default value and then check (with LSM:IsValid) if the user selected media shows up. 1 extra update, but maybe better then no font. But this does not solve the problem with media from addons that load later.
Yes there would be no font then. It would be easy to select a different font but most users would panic^^
Because I didn't open LibSharedMedia-3.0.lua to find the LSM:IsValid function^^
Thanks for telling me about that function:)
Maybe in the end I will end up with an option to select how the media is saved xD I like to use the same textures on my alts without having all the addons enabled.
in my opinion LSM benefits far outway its problems.
and honestly i have never seen anyone complain of fonts loading in late. but i can see where that might cause an issue. you can always put a disclaimer warning of the issue and pointing to how users can add their own media so that that wont happen
That solves all my problems for setting the font.
Since neither of these nor Fubar2Broker has been updated, I guess something in the latest ChocolateBar made them go die in the dark. Any idea what it could be?
While I'm at it, there is something else that I noticed. DynPerf support for LDB, doesn't work as expected with ChocolateBar. The % after the number is not displayed when I log. If I disable and re-enable it, the % is now displayed as expected until the next relog/reboot. Not sure why but I suspect something around the suffix implementation.
Meanwhile, thanks for a great addon!
I rolled back one and all is fine.
Should be fixed now.
I noticed a similar problem with fubar plugins, but could not fix that yet.
Glad you like it:)
Do you still have the problem with version 1.9.2?
It took me 2 minutes to disable a few plugins and place them how I want! Very nice, clean addon my friend!
Just a little question or maybe suggestion.
In look and feel, It is possible to adjust a different gap for the left and right ? I mean I love to have my mini icon without text on the right and keep my plugins with text on left side. But I want to put the gap on the right to like 4 and keep a bigger gap of like 15 on the left.
Yeah, this is an easy workaround, so if it's much trouble at all, ignore this request. :)