View Single Post
09-17-22, 01:26 AM   #18
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
Probably easier just apply a backdrop and close button to the addon frame

Lua Code:
  1. if BackdropTemplateMixin then
  2.     Mixin(LocationMessageView, BackdropTemplateMixin)
  3. end
  4. LocationMessageView:SetBackdrop({
  5.       bgFile="Interface\\DialogFrame\\UI-DialogBox-Background",
  6.       edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border",
  7.       tile=1, tileSize=32, edgeSize=32,
  8.       insets={left=11, right=12, top=12, bottom=11}
  9. })
  10. LocationMessageView.Close = CreateFrame('Button', '$parentClose', LocationMessageView, "UIPanelCloseButton")
  11. LocationMessageView.Close:SetPoint('TOPRIGHT', 0,0)
  12. LocationMessageView.Close:SetSize(30, 30)
  13. LocationMessageView.Close:SetFrameLevel(4)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 09-17-22 at 01:32 AM.
  Reply With Quote