- bug fixes.

This commit is contained in:
Tercio
2018-08-16 22:05:10 -03:00
parent 00d306a7b3
commit e3e63dcd67
7 changed files with 93 additions and 37 deletions
+15 -8
View File
@@ -2009,25 +2009,32 @@ end
function DF:ShowPromptPanel (message, func_true, func_false)
if (not DF.prompt_panel) then
local f = CreateFrame ("frame", "DetailsFrameworkPrompt", UIParent)
f:SetSize (400, 65)
local f = CreateFrame ("frame", "DetailsFrameworkPromptSimple", UIParent)
f:SetSize (400, 80)
f:SetFrameStrata ("DIALOG")
f:SetPoint ("center", UIParent, "center", 0, 300)
f:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
f:SetBackdropColor (0, 0, 0, 0.8)
f:SetBackdropBorderColor (0, 0, 0, 1)
tinsert (UISpecialFrames, "DetailsFrameworkPromptSimple")
DF:CreateTitleBar (f, "Prompt!")
DF:ApplyStandardBackdrop (f)
local prompt = f:CreateFontString (nil, "overlay", "GameFontNormal")
prompt:SetPoint ("top", f, "top", 0, -15)
prompt:SetPoint ("top", f, "top", 0, -28)
prompt:SetJustifyH ("center")
f.prompt = prompt
local button_true = DF:CreateButton (f, nil, 60, 20, "Yes")
button_true:SetPoint ("bottomleft", f, "bottomleft", 5, 5)
local button_text_template = DF:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE")
local options_dropdown_template = DF:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE")
local button_true = DF:CreateButton (f, nil, 60, 20, "Yes", nil, nil, nil, nil, nil, nil, options_dropdown_template)
button_true:SetPoint ("bottomright", f, "bottomright", -5, 5)
f.button_true = button_true
local button_false = DF:CreateButton (f, nil, 60, 20, "No")
button_false:SetPoint ("bottomright", f, "bottomright", -5, 5)
local button_false = DF:CreateButton (f, nil, 60, 20, "No", nil, nil, nil, nil, nil, nil, options_dropdown_template)
button_false:SetPoint ("bottomleft", f, "bottomleft", 5, 5)
f.button_false = button_false
button_true:SetClickFunction (function()