A powerfull info panel?
Ok, one small thing i whold like is if some one was able to code a info panel addon for me?
What i whold like it to do is, When solo (not in a party) show carbonite When in party or raid show Skada (i going to try that now seeing some other posts on this boards) How hand whold suck a thing be to code? And any hope some one can code such a thing? |
I don't actually know the answer to your question (although I doubt it would be very hard, considering it's basically already been done); but I'm curious: assuming that "hand whold suck" -> "hard would such" -- what keyboard layout are you using? :p
|
It sounds simple enough but we would have to delve into the nUI code to see how the info panels are switched when you click the button . However, it may not be possible to automatically switch the panels when jumping into combat. The panel switch button may be a secure button which you can programmatically predefine to process a certain way and thus most likely unaffected by combat. An automatic processor may not be possible but interesting enough to try.
|
Quote:
Quote:
I will be sure to happy to help if i can :) The main reson why i ask is atm when i zone in i cant see a map on carbonaite :/ (never been bothed to check to see if it a know bug) |
Okay, getting closer to figuring this out.
So far I can manually change to any info panel with a slash command test. However, when I tested this while in combat it didn't work. So I am guessing there is something else I need to figure out to make it work while in combat. There's probably something I am missing from the main infopanel selector code but I can't spot it yet. Also, even if I put the switcher to only switch when out of combat, at least useful for party/solo/raid changes, if it is attempted while in combat it doesn't update the window properly when you then tell it to switch after the fight is over. Even though it works while not in combat ( or so it seems ). Methinks more investigation required. |
Odds are that the attempt to change the panel with a slash command is tainting in combat since most info panels use secure code.
|
Quote:
The idea is to set up a config system whereby a user can specify which panels to display when. Raiding ? Show Skada. In a Town ? Show Chat Frame. Default display etc. When the specified event occurs, switch panels. The question is whether the switch will work in combat ( using just code ) or whether I can fix it so that it switches after combat finishes and switches properly which at present I have to /rl to get it to display the requested panel properly after combat if requested during combat. |
Yeah -- you would have to test for InCombatLockdown() and not respond to the slash command if in combat... the player would have to click the button then to change panels... it's a Bliz thing to prevent botting.
|
Ah, that could be where I am going wrong. I put the InCombatLockdown test in the function that is called from the slash command handler so I guess I just need to set it there too.
But reading back on what was requested there should be no need to auto switch based on combat. But just in case you join a raid mid combat I would have to add that check. Thanks Scott. |
All times are GMT -6. The time now is 10:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI