View Single Post
09-17-22, 03:29 AM   #19
Sharpedge
A Wyrmkin Dreamwalker
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 54
Originally Posted by Fizzlemizz View Post
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)
It seems like its working. I had to do some adjustments to height, and kept the bottom Close button. I really appreciate all your help. I will most defiantly keep studying LUA. Thank you again for your help.
  Reply With Quote