From b79f55eb04ef0626adb181f6212a8152ef2c9513 Mon Sep 17 00:00:00 2001 From: Sattva <74269253+Sattva-108@users.noreply.github.com> Date: Wed, 22 Jan 2025 01:16:31 +0300 Subject: [PATCH] Minimap - Show clock on mouseover final --- Leatrix_Plus.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index a50ec50..f0be3b2 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -5954,8 +5954,18 @@ function LeaPlusLC:Player() "poiWorldMapPOIFrame", "WorldMapPOIFrame", "QuestMapPOI", - "pfMiniMapPin" + "pfMiniMapPin", + -- Add TimeManagerClockButton based on ClockMouseover option + LeaPlusLC["ClockMouseover"] == "Off" and "TimeManagerClockButton" or nil } + + -- Remove nil values from the keepVisible table + for i = #keepVisible, 1, -1 do + if not keepVisible[i] then + table.remove(keepVisible, i) + end + end + if searchStr == "" then -- Set alpha of all buttons to 0 if MiniExcludeList is empty for _, button in pairs(minimapButtons) do