diff --git a/DressToKillOptions.lua b/DressToKillOptions.lua
index 2bdb3f3..8b480ae 100644
--- a/DressToKillOptions.lua
+++ b/DressToKillOptions.lua
@@ -6,6 +6,7 @@ frame:Hide()
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)
@@ -85,8 +86,8 @@ frame:SetScript("OnShow", function(frame)
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)
@@ -361,7 +362,7 @@ debugframe:SetScript("OnShow", function(frame)
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)