Thread Tools Display Modes
12-05-17, 08:21 AM   #1
Nakama
A Murloc Raider
Join Date: Nov 2017
Posts: 4
Addon Request: Disabling or Hiding Appearance Tab.

Hi. Just wondering if anyone can help me achieve this. I am not a big fan of the new appearance tab system and preferred the old school method of using the Mogit addon to plan and see what I have collected and not collected. Is there a way I can disable the appearance tab or at least hide it completely?

Help would be much appreciated!
  Reply With Quote
12-05-17, 01:27 PM   #2
briskman3000
A Flamescale Wyrmkin
 
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 108
Replied to your pm, i will look into adding it to the other addon that i made for you.
__________________
My Addons: Convert Ratings Honor Track
  Reply With Quote
12-06-17, 08:19 PM   #3
briskman3000
A Flamescale Wyrmkin
 
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 108
So I've run into a problem trying to get this to work. The appearance tab is called "CollectionsJournalTab5".

It appears that, that particular variable is not declared in the UI until after you either open the Collections Journal, so until you actually open the panel, I can not set the frame hidden via:

Lua Code:
  1. CollectionsJournalTab5:SetScript("OnEvent", nil)
  2. CollectionsJournalTab5:Hide()

There is no event fired when you open the overall collections frame, at least that I saw in the event trace, there is an event fired when you change to the appearance tab, but since you don't want to even see that tab, that event is useless. The same event fires when you open the xmog vendor, but again that is kind of useless.

If anyone has any ideas on how to overcome this it would be appreciated.
__________________
My Addons: Convert Ratings Honor Track
  Reply With Quote
12-06-17, 08:32 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Hook the OnShow of the Collections Journal.
__________________
"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
12-06-17, 10:27 PM   #5
briskman3000
A Flamescale Wyrmkin
 
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 108
Took me a minute to figure out how in the hell to get it right, but this seems to work, at least in my testing:

Lua Code:
  1. --Hide the Appearance tab function
  2. local function hideapptab(self)
  3.     CollectionsJournalTab5:SetScript("OnEvent", nil)
  4.     CollectionsJournalTab5:Hide()
  5. end
  6.  
  7. function events:ADDON_LOADED(...)
  8.     if IsAddOnLoaded("Blizzard_Collections") then
  9.         hideapptab(self)
  10.     end
  11. end

Not exactly hooking the OnShow, but it accomplishes the same end result from what I can tell.
__________________
My Addons: Convert Ratings Honor Track
  Reply With Quote
12-07-17, 06:47 PM   #6
briskman3000
A Flamescale Wyrmkin
 
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 108
Added this functionality to the new release of xmogsethide
__________________
My Addons: Convert Ratings Honor Track
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Addon Request: Disabling or Hiding Appearance Tab.

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