View Single Post
04-21-22, 01:28 AM   #3
Kupotek
An Aku'mai Servant
 
Kupotek's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 38
Can you help if I post the addon's code?

PantherWelcomeShow = true -- savedvar

local f = CreateFrame("Frame","PantherWelcome",UIParent)
f:RegisterEvent("PLAYER_LOGIN")


f:SetFrameStrata("dialog")
f:SetScript("OnEvent",function()
if PantherWelcomeShow then
-- main background frame (you can apply your blue border to this backdrop)
f:SetSize(400,350)
f:SetPoint("CENTER")
f:SetBackdrop( { bgFile="Interface\\Addons\\DialogFrame\\Smoke", insets={left=4,right=4,top=4,bottom=4}, tileSize=16, tile=false, edgeFile="Interface\\Addons\\DialogFrame\\Border", edgeSize = 8 } )
-- logo to left
f.image = f.image or f:CreateTexture(nil,"ARTWORK")
f.image:SetSize(150,150)
f.image:SetPoint("LEFT",8,0)
f.image:SetTexture("Interface\\Addons\\DialogFrame\\Border-Cat-Round2")
-- title at top
f.title = f.title or f:CreateFontString(nil,"ARTWORK","GameFontNormalLarge")
f.title:SetPoint("TOP",0,-16)
f.title:SetText("Panther")
f.title:SetFont("Interface\\AddOns\\SharedMedia_MyMedia\\font\\BlackChancery.ttf", 20)
-- place to put a paragraph or two of text
f.text = f.text or f:CreateFontString(nil,"ARTWORK","GameFontHighlight")
f.text:SetPoint("TOPRIGHT",-32,-42)
f.text:SetPoint("BOTTOMRIGHT",-32,42)
f.text:SetPoint("LEFT",f.image,"RIGHT",16,0)
f.text:SetJustifyH("LEFT")
f.text:SetText("Welcome to Panther UI v.15.0\n\n04/21/2022\n\nŠ 2008-2022\n\nDarwinsradio - Area 52\n\nI am so happy you decided to try my UI.\n\nIf you are having any problems, post a comment at Wowinterface or email me at \n\n-Jonathan")
-- checkbutton in bottomleft
f.prompt = f.prompt or CreateFrame("CheckButton",nil,f,"UICheckButtonTemplate")
f.prompt:SetPoint("BOTTOMLEFT",12,10)
f.prompt.text:SetText("Don't show this again")
f.prompt.text:SetFontObject("GameFontHighlightSmall")
-- okay button
f.okay = f.okay or CreateFrame("Button",nil,f,"UIPanelButtonTemplate")
f.okay:SetSize(96,22)
f.okay:SetPoint("BOTTOMRIGHT",-12,12)
f.okay:SetText(OKAY)
-- when okay clicked, set savedvar to whether prompt not checked and hide window
f.okay:SetScript("OnClick",function(self)
local parent = self:GetParent()
PantherWelcomeShow = not parent.prompt:GetChecked()
parent:Hide()
end)
end
end)
__________________
Panther UI | My Home on the Web
  Reply With Quote