Thread Tools Display Modes
03-29-09, 05:49 PM   #1
Artanis186
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 18
Custom buttons

I'd like skinnable buttons that you maybe can make go to certain places, like clicking and going to the Start menu, friends list, etc. I'm doing somehing for my interface and it'd just finish it off.
  Reply With Quote
03-31-09, 01:55 PM   #2
Artanis186
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 18
erm.. bump?
  Reply With Quote
03-31-09, 03:48 PM   #3
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
kgPanels. Use the onclick scripts.
  Reply With Quote
03-31-09, 06:36 PM   #4
Artanis186
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 18
Thank you for your reply. It looks promising and all... but as much as I'd love to take the time to learn an entire scripting language just to get a button that sends me to the main menu... ya, I think you get it. Could someone just tell me the scripts I would use to make 3 different buttons go to the main menu, friends list, and quest log plz? Would be so much help.
  Reply With Quote
03-31-09, 07:17 PM   #5
Miralen
A Rage Talon Dragon Guard
 
Miralen's Avatar
Join Date: Dec 2006
Posts: 341
simple I think:

Quest Log Frame OnClick:
if QuestLogFrame:IsShown() then
QuestLogFrame:Hide()
else
QuestLogFrame:Show
end

Game Menu Frame OnClick:
if GameMenuFrame:IsShown() then
GameMenuFrame:Hide()
else
GameMenuFrame:Show
end

Friends Frame OnClick:
if FriendsFrame:IsShown() then
FriendsFrame:Hide()
else
FriendsFrame:Show
end

These are untested but they should do the trick. BTW you dont have to know a whole scripting language to do it I sure as hell don't I just dug through a ton of other peoples things to learn the basics as well as used wowwiki.com as a source to look up frame names, api, and events as well as other such nonsense
__________________
Never hold discussions with the monkey when the organ grinder is in the room.

- Winston Churchill
  Reply With Quote
04-02-09, 03:49 PM   #6
Artanis186
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 18
Originally Posted by Miralen View Post
simple I think:

Quest Log Frame OnClick:
if QuestLogFrame:IsShown() then
QuestLogFrame:Hide()
else
QuestLogFrame:Show
end

Game Menu Frame OnClick:
if GameMenuFrame:IsShown() then
GameMenuFrame:Hide()
else
GameMenuFrame:Show
end

Friends Frame OnClick:
if FriendsFrame:IsShown() then
FriendsFrame:Hide()
else
FriendsFrame:Show
end

These are untested but they should do the trick. BTW you dont have to know a whole scripting language to do it I sure as hell don't I just dug through a ton of other peoples things to learn the basics as well as used wowwiki.com as a source to look up frame names, api, and events as well as other such nonsense
Thank you very much, it didn't work at first, but I modified it to make it. You simply forgot to add () after show. Plus, you had to hold it in, I just got rid of the hide line. It works like a charm now. Thanks for your help, means a lot to me. Now I can finally finish my mod.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Custom buttons


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