View Single Post
08/08/21, 12:48 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,032
In chat try this script:

/script CompanionUltimateButton:SetHidden(true)

If this works add the line without the /script in front of it to any of your addons callback function of EVENT_PLAYER_ACTIVATED (if given).
If not add this to any of your addons:

Lua Code:
  1. local function hideCompanionUltimate()
  2.   local ultiButtonCompanion = CompanionUltimateButton
  3.   if ultiButtonCompanion ~=nil and not ultiButtonCompanion:IsHidden() then
  4.     ultiButtonCompanion:SetHidden(true)
  5.   end
  6. end
  7. EVENT_MANAGER:RegisterForEvent("nameOfTheAddonYouHaveAddedTheEVentToHere", EVENT_PLAYER_ACTIVATED, function(event, isFirst)
  8.    hideCompanionUltimate()
  9. end)

I have added this to FCOCompanion soon as it also needs to update the visibility after a weapon pair/bar switch e.g.
It will flicker shortly after a weapon pair switch but that shouldn't be an issue, hopefully.

Last edited by Baertram : 08/08/21 at 01:22 PM.
  Reply With Quote