View Single Post
10/01/19, 07:23 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Maybe th modal underlay at dialogs is also what you are looking for:
https://github.com/esoui/esoui/blob/...dialog.xml#L72

It creates something like a black transparent overlay below the modal and you cannot click anything except the shown dialog.

The code is an animation and maybe you can use it as well (self = the dialog int his case, so it could be your TopLevelControl or fragment control here):
Lua Code:
  1. if not self.animation then
  2.                 self.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("DialogModalUnderlay", self)
  3.                 end
  4.                 self.animation:PlayFromStart()
  Reply With Quote