From c4b3e254261b5ff75aa93277beb656348eeec6b6 Mon Sep 17 00:00:00 2001 From: Freewood <948+freewood@noreply.octowow.st> Date: Thu, 29 Oct 2026 00:34:31 +0000 Subject: [PATCH] Dateien nach "UI" hochladen --- UI/MainWindow.lua | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/UI/MainWindow.lua b/UI/MainWindow.lua index e8c2cd3..340bcd5 100644 --- a/UI/MainWindow.lua +++ b/UI/MainWindow.lua @@ -132,9 +132,25 @@ local function SetupResize() grip:SetSize(18, 18) grip:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -3, 3) grip:SetFrameLevel((frame:GetFrameLevel() or 1) + 30) - grip:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Up") - grip:SetPushedTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Down") - grip:SetHighlightTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Highlight") + -- Sichtbarer Griff: sechs Punkte als Dreieck in der Ecke (die Chat-Grafik gibt es auf Octo nicht) + local dots = {} + local spots = { { 0, 0 }, { 5, 0 }, { 10, 0 }, { 0, 5 }, { 5, 5 }, { 0, 10 } } + for i, p in ipairs(spots) do + local t = grip:CreateTexture(nil, "OVERLAY") + t:SetSize(3, 3) + t:SetPoint("BOTTOMRIGHT", grip, "BOTTOMRIGHT", -2 - p[1], 2 + p[2]) + t:SetColorTexture(UI.Color("gold")) + t:SetAlpha(0.75) + dots[i] = t + end + local function Tint(key, alpha) + for _, t in ipairs(dots) do + t:SetColorTexture(UI.Color(key)) + t:SetAlpha(alpha) + end + end + grip:SetScript("OnEnter", function() Tint("goldLight", 1) end) + grip:SetScript("OnLeave", function() Tint("gold", 0.75) end) grip:SetScript("OnMouseDown", function() local mw, mh = SizeLimits() if frame.SetResizeBounds then