• 0

    posted a message on kgPanels Offical Thread
    Quote from kagaro
    parenting your chatter frame to kgpanel frame would cause it to hide when the panel is hidden. As for a key-binding. The best you could do is make a macro to hide the panel and bing the macro to a key binding. Keybidingins behind the sceen take a bit of work. You also need to remember you also need to adjust the visiblity of the other frames occupying that spot. As for auto hide/show you could add an event list for PLAYER_REGEN_DISABLED/PLAYER_REGEN_ENABLED to figure out when you enter and leave combat.


    Thanks -- I did some more messing around - I decided to use the OnClick functionality to provide toggle between "Omen/Recount" and "ChatFrame3". This works nicely (Using ChatFrame3:Hide() and Recount_MainWindow:Show() and OmenBarList:Show(), and vice versa). However, every once in a while ChatFrame3 just seems to reappear on its own. It seems to be related to new information entering that window. Is there some reason WoW calls ChatFrameX:Show() when new text is added to the Chat Frame? Any way to override this behavior or suggestions on how I could prevent it? I am thinking perhaps I track a state variable and call the Hide() or Show() OnUpdate, but I'm not sure if that might be system unfriendly from a performance perspective.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    I apologize if this is out of the scope of kgPanels, but I thought I'd ask the most intelligent modding community --

    I would like to have an area of my screen dedicated to different functions based on status or macro. Specically, I'm trying to squish all my useful frames below a horizontal line on the screen. Since I've got more useful frames than space, I want to swap certain ones around on demand.

    Let me give this as an example:
    Say I have a combatlog in the lower right hand corner (pretty standard setup). Said combat log is handled through Chatter. Now, I'm heading off into combat, and I want that space to be occupied by my target and target of target frames. I would like to be able to toggle this functionality by pressing a keybinding or macro. Alternatively (or better yet, in addition), I'd like this to automatically switch if I noob out and forget to switch it before starting combat. The reason I want both a button press and an auto-function is there are times when i want to switch between combatlog and Targets on the fly, not just conditionally.

    Can kgPanels help me accomplish this? I vaguely think I could parent Chatter frames to kgPanels and Pitbull unit frames to a panel, but how would i switch them on demand via a keybind? Is there an OnEvent:keypress type function? A bit of detailed code would be appreciated.

    Also, would this functionality depend on a given frame having a handler to properly hide it? EG I dont know how to tell Chatter to hide a frame. Or is this just basic LUA? Forgive me, while a coder, I havent really looked into LUA at all :-(


    Thanks
    Posted in: General AddOns
  • To post a comment, please or register a new account.