View Single Post
04-26-24, 12:25 PM   #11
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,897
Stealing from Blizz. code, add this to your timer before the other code:
Lua Code:
  1. local canUseRated = C_PvP.CanPlayerUseRatedPVPUI();
  2. local canUsePremade = C_LFGInfo.CanPlayerUsePremadeGroup();
  3. if canUseRated then
  4.     PVPQueueFrame_SetCategoryButtonState(PVPQueueFrame.CategoryButton2, true);
  5.     PVPQueueFrame.CategoryButton2.tooltip = nil;
  6. end
  7. if canUsePremade then
  8.     PVPQueueFrame.CategoryButton3.tooltip = nil;
  9.     PVPQueueFrame_SetCategoryButtonState(PVPQueueFrame.CategoryButton3, true);
  10. end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-26-24 at 12:27 PM.
  Reply With Quote