• 0

    posted a message on DynPerf - Automagically update video settings based on frame rate.
    Quote from Tristanian
    For everything else, you can make an informed decision at object creation time, which for the most part should be accurate.


    A DO could change any of the keys at any time and guess who gets the bug report then?:)
    CB also supports the iconR, iconG, iconB and iconCoords attributes.

    Quote from Tristanian
    You should never register callbacks for attributes you don't/can't support in the display anyway.


    Like I said I would end up registering 13 callbacks (instead of one) for every DO. Normally I prefer cpu vs memory but I think it that case memory just beats it.

    My point was that I believe an addon should not have unnecessary keys in the DO. Especially when they are frequently changed. Just because of the way LDB is designed. It creates unnecessary table lookups even when there is no callback registered, or am I wrong about that?
    Posted in: General AddOns
  • 0

    posted a message on DynPerf - Automagically update video settings based on frame rate.
    Quote from Adirelle
    though I don't understand why ChocolateBar listens to *every* attributes.


    I thought about registering only to the relevant attributes, but I realized I would need to register for almost all the attributes of the data spec. Making a total of 13 attributes to register for every DO (only enabled ones). So I'm not sure thats a good idea.

    Besides that all that ChocolateBar does on the callback is a lookup for the attribute in the update function table.

    I just thought I tell you about what I found while debugging a bug with ChocolateBar and DynPerf someone reported. (Was not relatet to this just a bug in ChocolateBar)
    Posted in: General AddOns
  • 0

    posted a message on DynPerf - Automagically update video settings based on frame rate.
    Maybe you should move the the fps, elapsed and modifier keys out of the DO because they are triggering allot LDB callbacks.

    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  fps 46.948353628177
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  elapsed 0.21300001442432
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  modifier 1.7040001153946
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  fps 47.393361762652
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  elapsed 0.2110000140965
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  modifier 1.688000112772
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  fps 47.846886800057
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  elapsed 0.20900001376867
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  modifier 1.6720001101494
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  fps 47.393361762652
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  elapsed 0.2110000140965
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  modifier 1.688000112772
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  fps 47.619044459731
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  elapsed 0.21000001393259
    [01:32:46] ChocolateBar Debug: AttributeChanged  DynPerf  key:  modifier 1.6800001114607
    Or is this intended for some reason?
    Posted in: General AddOns
  • 0

    posted a message on PlaySoundFile Stop/Pause?
    You can add the playtime of all the sound files to your table and start a timer when you play a sound. Then you can check if the timer is up before you play another sound file.
    Posted in: Lua Code Discussion
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    thanks, should all be fixed now.
    Posted in: Data Broker AddOns
  • 0

    posted a message on The New Curse Client
    Quote from jokeyrhyme

    Regarding Linux, I imagine we're between a rock and a hard place right now. The Curse team can't very well release the details required to author a new client, seeing as they are beseiged by WowMatrix and the like. And they just don't have the resources to produce a Linux-compatible client.


    You could use a virtual machine to update your addons with the Curse Client.
    With the right setup the VM is up in no time and you can update your addons with 2 clicks. It's not like you need to run the VM all the time, just for the update.
    Posted in: Updaters
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    Just found that FontInstance:SetFont("path", height[,"flags"]) returns 1 if the path was valid, nil otherwise.

    That solves all my problems for setting the font.
    Posted in: Data Broker AddOns
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    Quote from yssaril
    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.

    Quote from yssaril

    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^^

    Quote from yssaril

    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.
    Posted in: Data Broker AddOns
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    Yes I know about the default media but I don't think that it is better to get a wrong texture instead of none.
    It makes more sense for the font. Some users will freak out when suddenly there isn't a font anymore^^
    But it is not that hard to right click the panel and select a new font if you have removed the addon the font is from.

    I really hate the idea of a timer oO

    Also some addons won't load until a specific action like joining a raid. If you select a texture provided by that addon if will not show until then.

    edit:
    Quote from yssaril
    to check if your font is available you can check with
    LibStub("LibSharedMedia-3.0"):IsValid('font', font_name_here)
    that returns true if its available and false if not :P


    Ah ok, but when do I know that there are no more callbacks coming?
    Posted in: Data Broker AddOns
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    Quote from OrionShock
    Don't forget to also adjust the LSM callback to account for the fonts been added on load :)


    I won't, not this time:)

    But I don't want to update all the frames with the font I get from LSM on every callback.
    I am also not happy with the way I postponed the texture update for the bars until PLAYER_ENTERING_WORLD is fired.

    Maybe its best to save the actual texture/font path. That way I don't even need the LSM callback and you can use textures from disabled addons.
    Posted in: Data Broker AddOns
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    No, the only way to change the font at the moment is to change the WoW fonts like some font addons do.

    But I can add an option to let you select a font provided by LibSharedMedia.
    Posted in: Data Broker AddOns
  • 0

    posted a message on replacement for FuBar?
    Quote from StormFX
    CB is OK, just too kiddish with all the "chocolate" references.


    Sorry I couldn't help it, I like chocolate^^

    So you prefer boring options then? I just thought why add a boring description for an option that is clear about what it does from the name of it anyway.
    If some options are confusing just point them out I'll fix them.
    Posted in: AddOn HELP!
  • 0

    posted a message on ChocolateBar, do you like chocolate?
    thanks, I'll add that. If I should change something else just let me know.
    Posted in: Data Broker AddOns
  • 0

    posted a message on Updating addons to current patch..
    Just stumbled across across a description about libs while searching for something else: http://forums.wowace.com/showpost.php?p=266601&postcount=3

    If an addon needs a lib to make it work and the lib is not embedded (actually they should be) then you just download and install the lib like any other addon.
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.