/trunk
frame:SetScript("OnShow", function(frame) |
-- Initialize the system |
DressToKill:Initialize() |
local editbox, dropdown, reset, save, delete |
local title = frame:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge") |
title:SetPoint("TOPLEFT", frame, "TOPLEFT", 15, -15) |
title:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 10, -45) |
dropdown:SetPoint("LEFT", dropdownlabel, "RIGHT") |
UIDropDownMenu_Initialize(dropdown, initdropdown) |
UIDropDownMenu_SetSelectedValue(dropdown, DressToKill.profile.selected) |
UIDropDownMenu_SetWidth(160, dropdown) |
UIDropDownMenu_JustifyText("LEFT", dropdown) |
UIDropDownMenu_SetWidth(dropdown, 160) |
UIDropDownMenu_JustifyText(dropdown, "LEFT") |
editbox = CreateFrame("EditBox", "DressToKillEditBox", frame) |
editbox:SetPoint("TOPLEFT", dropdownlabel, "BOTTOMLEFT", 0, -15) |
local close = CreateFrame("Button", nil, frame, "UIPanelCloseButton") |
close:SetPoint("TOPRIGHT", frame, "TOPRIGHT") |
copylog = CreateFrame("Button", "DressToKillCopyLogButton", DressToKillDebugScrollFrame, "UIPanelButtonTemplate2") |
local copylog = CreateFrame("Button", "DressToKillCopyLogButton", DressToKillDebugScrollFrame, "UIPanelButtonTemplate2") |
copylog:SetText(L["Copy Log"]) |
copylog:SetWidth(80) |
copylog:SetPoint("TOPRIGHT", scrollframe, "BOTTOMRIGHT", 0, -5) |