Thread Tools Display Modes
09-01-10, 11:48 AM   #1
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Post show and hide buttons.

Hi there all im trying to set up a semi con-fig to show or hide the emote,friends,and arrows from the chat.

but from all the ways i have tried i cant work it out.

Code:
emote = Hide
friends = Hide

ChatFrameMenuButton:emote
FriendsMicroButton:friends
I have tryed adding () as i know
Code:
FriendsMicroButton:Hide()
works.

and also maken the names local,. but no change.

also i wanted to ask what the up/down arrow code is called. as i felt it might be.
Code:
ChatFrameButtonFrame:
.


thanks for your time.
  Reply With Quote
09-01-10, 12:09 PM   #2
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
well if you really want to do it that way

Code:
emote = "Hide"
friends = "Show"
ChatFrameMenuButton[emote]()
FriendsMicroButton[friends]()
  Reply With Quote
09-01-10, 12:35 PM   #3
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Post

Originally Posted by d87 View Post
well if you really want to do it that way

Code:
emote = "Hide"
friends = "Show"
ChatFrameMenuButton[emote]()
FriendsMicroButton[friends]()
i get this error when i try that. i did try adding : and .


Code:
Interface\AddOns\Ctest\Ctest.lua:88: Attempt to find 'this' in non-table object (used '.' instead of ':' ?)
Count: 1

Call Stack:
(tail call): ?
[C]: ?
[C]: in function `?'
Interface\AddOns\Ctest\Ctest.lua:88: in main chunk
  Reply With Quote
09-01-10, 12:37 PM   #4
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
ChatFrameMenuButton[emote](ChatFrameMenuButton)
FriendsMicroButton[friends](FriendsMicroButton)

a:b() <==> a.b(a)
a.b <==> a["b"]

Last edited by d87 : 09-01-10 at 12:42 PM.
  Reply With Quote
09-01-10, 12:44 PM   #5
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Post

thanks that worked great. do you know how i can hide the up/down arrows.

as ChatFrameButtonFrame: dont seem to work.
ty again
  Reply With Quote
09-01-10, 12:47 PM   #6
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
type /framestack and mouseover them to see their names.
Tho there's a chance that they'll reappear if you refresh your chat or something.
You can shut them for good overriding their 'Show' method
FriendsMicroButton.Show = function() end

Last edited by d87 : 09-01-10 at 12:53 PM.
  Reply With Quote
09-01-10, 02:47 PM   #7
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Post

helpful hehe/ thanks again

i found that
ChatFrame1ButtonFrame
will hide the arrorws but not on any of the chat tabs. this is due to the 1. is there a way to hide the same on other tabs without adding more of them.


just a quick question. can i make a code that will resize the arrows,emote,friends, when you resize that chat frame. if someone has one of theses on show.

ty again
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » show and hide 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