• 0

    posted a message on Chat Message Groups
    Where should I start looking if I wanted to add my own custom chat message group to the default ui?
    Posted in: Lua Code Discussion
  • 0

    posted a message on ACE3 Lib -- AceConfigRegistery-3.0
    I'm not sure if this is a bug or not but here's the issue.

    Any call to "GetOptionsTable" eventually leads to a call "validateGetterArgs". validateGetterArgs expects 2 strings (uiType and uiName). I can not find a reference to how uiName is intended to be used anywhere. What is happening is that if uiName is not supplied an error is thrown. The kicker is that uiName is not used anywhere. If I even give it junk "foo-1.0" the call returns what is expected.

    I'm posting here in the hopes to be enlightened. :)

    For thread information I am using it like:
    LibStub("AceConfigRegistry-3.0"):GetOptionsTable( "someaddon", "dialog", "foo-1.0")

    Thanks!
    Posted in: AddOn HELP!
  • 0

    posted a message on Multiple Scroll Frames & Key Catching
    Quote from Tekkub
    I can't think of anyone that messes with the pgup'n'dn buttons... just set up your frame to capture the scrollywheel on the mouse correctly and you're good to go.


    So capturing the keyboard is generally frowned upon for scrolling a message frame? Personally, I comfortably use all methods of input. I like using pgup/pgdn for scrolling.

    Just a note to egingell: It's not that I want to hook the chatframe input... I have my own message frame that I would like to be able to scroll. I'm trying to understand if it makes sense to be able to use pgup/pgdn on it.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Multiple Scroll Frames & Key Catching
    Seeing as how we already have chat frames (default; and capturing pgup/pgdown keys), is it possible to capture these for my addon?

    That is to say, if my addon is the top most addon, and selected, can I snag pgup/pgdown (or any other "special" keys)?

    I'm interested in having my own scrolling frame (using ScrollingMessageFrame), with the ability to have user actioned scrolling.

    Looking through the BlizzardUI lua/xml I am unable to find how Blizzard is capturing "BINDING_NAME_CHATPAGEUP" and others.

    Thanks!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Variable Font Height
    Thanks Phanx. I feel like making a suggestion. We have escape codes for textures in line... seems silly not to have font size escape seqs.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Variable Font Height
    Is there a way, inline in the goal, to alter the height of a fontinstance?

    I.E:
    1234567
    Posted in: Lua Code Discussion
  • 0

    posted a message on Spell Cooldowns
    I've seen how to track buffs/procs, etc. but I'm interesting in learning more about how to detect when a spell is "available" to use. That is... I either want to determine if the ability is off its base cooldown *or* in the case of something like "sword and board" if the ability available.

    Is there an event message for this? Or does it involve probing every ability?

    ~!
    Posted in: AddOn HELP!
  • 0

    posted a message on Hooking or Event Handling
    I don't see any function being called inside TargetFrame_HealthUpdate that is related. Gimme a hint?
    Posted in: AddOn HELP!
  • 0

    posted a message on Hooking or Event Handling
    Ok this is where I'm confused. You say it increases addon interference, however I'm hooking a blizzard function (an onupdate). It's my understanding that unless another addon seriously munches up the Blizzard global space my addon will receive a callback after the blizzard call is mad. I am not using the callback to do anything but output information, and alter data structures related to my addon.

    For example:
    hooksecurefunc( "TargetFrame_HealthUpdate", self.OnHealthUpdate );
    


    Then my callback,
    MyPortraitInfo.text.SetText( string.format( "%d%%", (TargetFrame.unitHPPercent * 100) )
    


    Now in my example I've provided... I am not modifying the global name space, and I am not modifying an external/third party data structure.

    So now a follow up to my original question (perhaps I need more clarity), does my one line of code which uses a value that has been processed a set *before* I use it really that bad for addon programming?
    Posted in: AddOn HELP!
  • 0

    posted a message on Hooking or Event Handling
    I'm trying to get a sense of what's the most efficient or best practice to make updates in my addon. I'll use a simple example; I want to update my addon everytime the target's health changes.

    So I see we have access to TargetFrame (and all its properties), or I can handle the same events that the TargetFrame does and do all the same processing. Which is the better practice, as I see many addons ignoring all the work that Blizzard did and doing everything themselves?


    ALSO, is it ever unsafe to assume using the hooksecurefunc over SetHookScript?
    Posted in: AddOn HELP!
  • 0

    posted a message on Fixed Width Font
    I can't seem to find a fixed width font in the FrameXML files. Am I overlooking something? How would one go about adding a font? (Just out of curiosity, as I don't think this task is required for my addon.)
    Posted in: AddOn HELP!
  • 0

    posted a message on FontStrings and SetNonSpaceWrap
    Nevermind! I found I needed to specify a relative parent anchor to ensure that resizing was also affecting the font string itself. I don't need to use SetNonSpaceWrap (that's meant for a string without spaces anyways).
    Posted in: AddOn HELP!
  • 0

    posted a message on FontStrings and SetNonSpaceWrap
    I've tried a couple different things, including specifying a width of the font string. The font string is sitting in a layout element (a "label" frame). I can resize the frame (the parent is resizing, and the "label" is resizing appropriately). However, the text is not truncating (ie: "This is my stri...") when the other frames resize to a width that is smaller than the text's width.

    I see there's a method/property "NonSpaceWrap", however I can find no use of this in the FrameXML bundle, nor any of my own active addons. I assume it's meant to use a boolean, but neither value makes an impact on my FontString.

    Any ideas?
    Posted in: AddOn HELP!
  • 0

    posted a message on Visual Elements
    Awesome Phanx. Thank you, you've been helping me a lot.
    Posted in: AddOn HELP!
  • 0

    posted a message on Visual Elements
    Specifically want to use it for dialog/app windows. Just as a visual separator -- not to create a grid or anything like that.
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.