From 595261c2bd61af1f40f96309415b3f850f25e9a8 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 7 Aug 2016 23:52:48 +0200 Subject: [PATCH] dropdown border change --- gui.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gui.lua b/gui.lua index 6d45eb3..d5f36b9 100644 --- a/gui.lua +++ b/gui.lua @@ -81,7 +81,15 @@ function m.LOAD() local ret = {aux.orig.ToggleDropDownMenu(unpack(arg))} local dropdown = getglobal(arg[4] or '') or this:GetParent() if strfind(dropdown:GetName() or '', 'aux_frame') then - m.set_content_style(DropDownList1Backdrop) + DropDownList1Backdrop:SetBackdrop({}) + DropDownList1Backdrop.border = DropDownList1Backdrop.border or DropDownList1Backdrop:CreateTexture() + DropDownList1Backdrop.border:SetTexture(1,1,1,0.02) + DropDownList1Backdrop.border:SetPoint('TOPLEFT', -1.5, 1.5) + DropDownList1Backdrop.border:SetPoint('BOTTOMRIGHT', 1.5, -1.5) + DropDownList1Backdrop.border:SetBlendMode('ADD') + DropDownList1Backdrop.backdrop = DropDownList1Backdrop.backdrop or DropDownList1Backdrop:CreateTexture() + DropDownList1Backdrop.backdrop:SetTexture(unpack(m.color.content.backdrop)) + DropDownList1Backdrop.backdrop:SetAllPoints() DropDownList1Backdrop:SetBackdropBorderColor(1, 1, 1, 0.03) DropDownList1:SetWidth(dropdown:GetWidth() * 0.9) DropDownList1:SetHeight(DropDownList1:GetHeight() - 10)