WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to disable Mission Table Alerts? (https://www.wowinterface.com/forums/showthread.php?t=58926)

zelgados 09-16-21 05:42 AM

How to disable Mission Table Alerts?
 
Upon login the alerts come up and I want to be able to manage them with my own addon. For now, I'd like to simply hide the alerts, but this is supposed to be a bigger addon later with more options. I've made a few minor addons where I hide or show certain things. What I normally do is find the UI element's name with /fstack and then try to run a macro like

Code:

/run Whatever:Hide()
or I take the thing and I do this:

Code:

TimerTracker.Show = function() end
AlertFrame.Show = function() end
...
etc..

Here is what I found using fstack on the mission alert:

Code:

ObjectiveTrackerUIWidgetContainer.FrontModelScene
ObjectiveTrackerUIWidgetContainer.BackModelScene
UIWidgetBelowMinimapContainerFrame.FrontModelScene
UIWidgetBelowMinimapContainerFrame.BackModelScene
UIWidgetTopCenterContainerFrame.FrontModelScene
UIWidgetTopCenterContainerFrame.BackModelScene
TimerTracker
UIWidgetPowerBarContainerFrame.FrontModelScene
UIWidgetPowerBarContainerFrame.BackModelScene
GlobalFXBackgroundModelScene
AlertFrame
GlobalFXDialogModelScene
GlobalFXMediumModelScene

I'm just taking bits from other addons and using them as a guide I really don't know what I'm doing. I write in another language so I'm also new to LUA.

In addition to my above question what is the way to begin to solve a problem like this besides /fstack and digging around in MoveAnything's LUA code? I exported the UI code from the game and I've been swimming around in that trying to make heads or tails of which thing might help with Mission Alerts.

Also, is this a situation where I need to manually load a Blizzard addon and then hide the alert/toast?

Also, any in depth resources that you have found helpful would be GREATLY appreciated. I want to get some reading done on addon dev before I dig in too much more.

Thanks for any help.

Kanegasi 09-16-21 06:25 AM

I suggest looking into ls:toasts on how they handle alerts.

https://www.wowinterface.com/downloads/info24123.html


All times are GMT -6. The time now is 01:52 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI