Quantcast Kgpanels script:hide panel permanent after click - WoWInterface
Thread Tools Display Modes
06-24-12, 04:58 AM   #1
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
Kgpanels script:hide panel permanent after click

Hi guys,i have a script for kgpanels wich alows me to click on a panel (button) and 3 new buttons appear where u can choose the set up u want from my UI.
U will be able to choose from : DPS,Cancel and Healing (3 buttons)

My question is,is it possible to let Kgpanels load this script automaticly (instead of click) on your first visit in the gameworld on your main and afterwards an alt.
But once one of the 3 buttons is pressed,they shouldnt load or pop up anymore when u enter the gameworld again on that toon.
I just wanna know if this is possible with Kgpanels.

Last edited by Léthalvenom : 06-24-12 at 05:11 AM.
  Reply With Quote
06-29-12, 07:39 AM   #2
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
***Fixed***
  Reply With Quote
06-29-12, 12:06 PM   #3
Smashbolt
A Deviate Faerie Dragon
Join Date: Mar 2010
Posts: 13
In order to do something like that, you'd need some saved variables to carry over between sessions on a per-character basis.

kgPanels DOES have a saved table called kgPanelsDB. It wouldn't be too hard to add your own fields to that table and then override some event in a panel to retrieve the part of kgPanelsDB you're using to store that information.

Unfortunately, kgPanelsDB is a per-account variable (not a per-character variable), so you'd have to explicitly store each character's name as the first-run message is disabled for each of them.

Though, seriously, with stuff like that, why not just make your own addon? Then you could store data per character or however else you'd like.

http://www.wowpedia.org/Saving_varia..._game_sessions might give you some ideas of how to set that up.
  Reply With Quote
06-29-12, 01:06 PM   #4
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
Thumbs up

Thnx m8 but i allready have it fixed atm Just tweaking my interface for the last bits and its ready for upload.
Ty very much tho.

Last edited by Léthalvenom : 06-30-12 at 05:08 AM.
  Reply With Quote
06-30-12, 02:49 AM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Léthalvenom View Post
***Fixed***
Rather than just posting "nevermind, fixed", why not post the solution you found, so that other people who may have a similar question can benefit too?
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
06-30-12, 03:13 AM   #6
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
True,soz hehe.
Just wanted the community to know i didn t need help with it anymore. So they wouldn t spend effort and time on something not needed anymore.

Last edited by Léthalvenom : 06-30-12 at 05:09 AM.
  Reply With Quote
06-30-12, 12:23 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,556
You still didn't share with the community.

We turned it into a custom addon that disables itself for that character once it's been used.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
07-01-12, 02:04 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Léthalvenom View Post
Just wanted the community to know i didn t need help with it anymore. So they wouldn t spend effort and time on something not needed anymore.
Yes, but that wasn't the point I was trying to make. What happens next week when someone wants to do the same thing you did? They'll find this thread, but instead of finding the solution, they'll just find your post saying "nevermind, I found a solution!" which is completely useless and a waste of their time to have read... and then they'll have to post a new thread, and someone else will have to waste time finding the solution that you already found. Why not just save everyone's time and copy/paste your solution? It's a kgPanels script, even... it's completely self-contained and would take 10 seconds of your time to copy/paste it.
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
07-01-12, 04:50 AM   #9
Léthalvenom
A Wyrmkin Dreamwalker
 
Léthalvenom's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 50
I will later on when my ui is finished and when i ve tested everything on all classes,in group/raid/solo.
  Reply With Quote
07-01-12, 10:37 AM   #10
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
My head hurts, now.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
07-02-12, 07:28 AM   #11
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 356
Originally Posted by Torhal View Post
My head hurts, now.
Try doing this—it usually works for me:
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Kgpanels script:hide panel permanent after click

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off