Created
November 4, 2019 09:11
-
-
Save mwiemarc/4fc90402230516d58578319da94b3db8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SAC.DialogFrame = CreateFrame('Frame', SAC_AddonName .. 'DialogFrame') | |
SAC.DialogFrame:SetBackdrop( | |
{ | |
bgFile = 'Interface\\DialogFrame\\UI-DialogBox-Background', | |
edgeFile = 'Interface\\DialogFrame\\UI-DialogBox-Border', | |
tile = 1, | |
tileSize = 32, | |
edgeSize = 32, | |
insets = {left = 11, right = 12, top = 12, bottom = 11} | |
} | |
) | |
SAC.DialogFrame:SetWidth(340) | |
SAC.DialogFrame:SetHeight(120) | |
SAC.DialogFrame:SetPoint('CENTER', UIParent) | |
SAC.DialogFrame:EnableMouse(true) | |
SAC.DialogFrame:SetFrameStrata('FULLSCREEN_DIALOG') | |
SAC.DialogFrame.EditBox = CreateFrame('EditBox', SAC.DialogFrame:GetName() .. 'InputEditBox', SAC.DialogFrame, 'InputBoxTemplate') | |
SAC.DialogFrame.EditBox:SetHeight(24) | |
SAC.DialogFrame.EditBox:SetWidth(SAC.DialogFrame:GetWidth() - 40) | |
SAC.DialogFrame.EditBox:SetPoint('TOP', SAC.DialogFrame, 'TOP', 2, -20) | |
SAC.DialogFrame.Button = CreateFrame('Button', SAC.DialogFrame:GetName() .. 'CloseButton', SAC.DialogFrame, 'UIPanelButtonTemplate') | |
SAC.DialogFrame.Button:SetHeight(24) | |
SAC.DialogFrame.Button:SetWidth(60) | |
SAC.DialogFrame.Button:SetPoint('BOTTOM', SAC.DialogFrame, 'BOTTOM', 0, 20) | |
SAC.DialogFrame.Button:SetText('Close') | |
SAC.DialogFrame.Button:SetScript( | |
'OnClick', | |
function(self) | |
self:GetParent():Hide() | |
end | |
) | |
SAC.DialogFrame:Hide() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment