Skip to content

Commit

Permalink
fix: use my own dropdown skin
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Aug 17, 2024
1 parent 0821498 commit 20d23f3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Modules/Skins/Addons/SimpleAddonManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,26 @@ local function ReskinSizer(frame)
frame:SetFrameLevel(200)
end

local function SAMDropDownSkin(frame)
frame:Width(200)
frame:Height(32)
frame:StripTextures()
frame:CreateBackdrop(template)
frame:SetFrameLevel(frame:GetFrameLevel() + 2)
frame.backdrop:Point("TOPLEFT", 20, 1)
frame.backdrop:Point("BOTTOMRIGHT", frame.Button, "BOTTOMRIGHT", 2, -2)
S:ESProxy("HandleNextPrevButton", frame.Button, "down")
frame.Text:ClearAllPoints()
frame.Text:Point("RIGHT", frame.Button, "LEFT", -2, 0)
end

local function ReskinModules(frame)
-- MainFrame
S:ESProxy("HandleButton", frame.OkButton)
S:ESProxy("HandleButton", frame.CancelButton)
S:ESProxy("HandleButton", frame.EnableAllButton)
S:ESProxy("HandleButton", frame.DisableAllButton)
S:ESProxy("HandleDropDownBox", frame.CharacterDropDown, nil, nil, true)
SAMDropDownSkin(frame.CharacterDropDown)

frame.OkButton:ClearAllPoints()
frame.OkButton:SetPoint("RIGHT", frame.CancelButton, "LEFT", -2, 0)
Expand Down

0 comments on commit 20d23f3

Please sign in to comment.