From 988cededac20965106039846969ad43db70285e4 Mon Sep 17 00:00:00 2001 From: Sattva <74269253+Sattva-108@users.noreply.github.com> Date: Mon, 19 May 2025 11:56:02 +0300 Subject: [PATCH] media: reposition search, stop --- Leatrix_Plus.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 05da5c7..ab7e834 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -15586,7 +15586,7 @@ function LeaPlusLC:RunOnce() -- Anchor stopBtn's TOPLEFT to conbtn[L["Random"]]'s BOTTOMLEFT. -- X offset 0 to align vertically with L["Random"]. -- Y offset -5 for a small gap below L["Random"]. You can adjust -5 as needed. - stopBtn:SetPoint("TOPLEFT", conbtn[L["Random"]], "BOTTOMLEFT", 0, -5) + stopBtn:SetPoint("TOPLEFT", conbtn[L["Random"]], "BOTTOMLEFT", 0, -20) else -- Fallback: If L["Random"] button isn't found for some reason, or stopBtn failed to create. if stopBtn then @@ -15689,7 +15689,7 @@ function LeaPlusLC:RunOnce() -- Create editbox for search - local sBox = LeaPlusLC:CreateEditBox("MusicSearchBox", LeaPlusLC["Page9"], 100, 24, "TOPLEFT", 135, -260, "MusicSearchBox", "MusicSearchBox", 50) + local sBox = LeaPlusLC:CreateEditBox("MusicSearchBox", LeaPlusLC["Page9"], 100, 24, "TOPLEFT", 135, -292, "MusicSearchBox", "MusicSearchBox", 50) -- MODIFIED Y-offset sBox:SetMaxLetters(50) sBox:SetTextInsets(6, 12, 0, 0) -- (left, right, top, bottom) sBox:SetBackdropBorderColor(1.0, 0.82, 0.0, 0.4) @@ -15733,6 +15733,7 @@ function LeaPlusLC:RunOnce() sBox:SetText("") clearButton:Hide() searchIcon:Show() + sBox:ClearFocus() end) -- Implement pushed effect by adjusting the existing SetPoint clearButton:SetScript("OnMouseDown", function(self)