From ff730cb6f90d90d30debad2715447baa948fab40 Mon Sep 17 00:00:00 2001 From: Sattva Date: Tue, 30 May 2023 13:07:18 +0300 Subject: [PATCH] HideMiniButtons & ShowWhoPinged - fix Deleted old framestack button, and added new, better one. Fixed ShowWhoPinged. Signed-off-by: Sattva --- Changelog and Notes.txt | 6 ++++++ Leatrix_Plus.lua | 19 ++++++++++++++++--- desktop.ini | 6 ++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 desktop.ini diff --git a/Changelog and Notes.txt b/Changelog and Notes.txt index df48a89..8954fc0 100644 --- a/Changelog and Notes.txt +++ b/Changelog and Notes.txt @@ -21,6 +21,8 @@ EnhanceMinimap - "Example Input" needs Locales! InviteFromWhispers - Need to fix visual bag in config panel. +EnhanceMinimap - Hide Tracking needs updated description! About right clicking minimap. + -------------------------------------------------------------------------------- -- What needs to be tested: @@ -115,4 +117,8 @@ Minimap - Tracking button animation fade-in-out. Minimap - distance of buttons OnEnter alpha trigger user option? +Minimap - show time by user option. + +Minimap - add alt+shift click to reset position of minimap. + diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 76a15d6..248cd25 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -3744,8 +3744,8 @@ function LeaPlusLC:FriendCheck(name) titleTX:SetWordWrap(false) titleTX:SetJustifyH("LEFT") - -- Show framestack button to help user make an exclusion for certain addon button / blizzard button from hiding. - LeaPlusLC:CreateFrameStackButton("ExcludedButtonsFrameStackButton", ExcludedButtonsPanel, titleTX, "Enter item IDs separated by commas. Item IDs can be found in item tooltips while this panel is showing.|n|nJunk items entered here will not be sold automatically.|n|nWhite items entered here will be sold automatically.|n|nThe editbox tooltip will show you more information about the items you have entered.") + -- -- Show framestack button to help user make an exclusion for certain addon button / blizzard button from hiding. + -- LeaPlusLC:CreateFrameStackButton("ExcludedButtonsFrameStackButton", ExcludedButtonsPanel, titleTX, "Enter item IDs separated by commas. Item IDs can be found in item tooltips while this panel is showing.|n|nJunk items entered here will not be sold automatically.|n|nWhite items entered here will be sold automatically.|n|nThe editbox tooltip will show you more information about the items you have entered.") -- Add second excluded button @@ -3757,6 +3757,17 @@ function LeaPlusLC:FriendCheck(name) return end) + + -- Add second Framestack button + local MiniExcludedButton2 = LeaPlusLC:CreateButton("FramestackButton2", ExcludedButtonsPanel, "Framestack", "TOPLEFT", 16, -72, 0, 25, true, "Click to toggle framestack, to view names of minimap buttons, and then be able to exclude them by entering their name.") + LeaPlusCB["FramestackButton2"]:ClearAllPoints() + LeaPlusCB["FramestackButton2"]:SetPoint("LEFT", ExcludedButtonsPanel.h, "RIGHT", 80, 0) + -- LeaPlusCB["FramestackButton2"]:SetScript("OnClick", function() + -- ExcludedButtonsPanel:Hide(); SideMinimap:Show() + -- return + -- end) + LeaPlusCB["FramestackButton2"]:SetScript("OnClick", function() toggleFrameStack(true) end) + -- Add large editbox local eb = CreateFrame("Frame", nil, ExcludedButtonsPanel) eb:SetSize(548, 180) @@ -3921,6 +3932,7 @@ function LeaPlusLC:FriendCheck(name) -- Do nothing if unit has not changed if UnitIsUnit(unit, "player") or UnitIsUnit(unit, lastUnit) and x == lastX and y == lastY then return end + -- if UnitIsUnit(unit, lastUnit) and x == lastX and y == lastY then print("end") return end lastUnit, lastX, lastY = unit, x, y -- Show name in class color @@ -3931,7 +3943,7 @@ function LeaPlusLC:FriendCheck(name) -- Set frame details pFrame.f:SetFormattedText("|cff%02x%02x%02x%s|r", color.r * 255, color.g * 255, color.b * 255, UnitName(unit)) - pFrame:SetSize(pFrame.f:GetUnboundedStringWidth() + 12, 20) + pFrame:SetSize(pFrame.f:GetStringWidth() + 12, 20) -- Hide frame after 5 seconds pFrame:Show() @@ -4559,6 +4571,7 @@ function LeaPlusLC:FriendCheck(name) -- We set up the minimap to respond to mouse events. Minimap:SetScript("OnEnter", Minimap_OnEnter) Minimap:SetScript("OnLeave", Minimap_OnLeave) + local ticks = 0 -- keep track of how many times the function has been called local ticker = nil -- keep track of the timer object diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 0000000..0940aaa --- /dev/null +++ b/desktop.ini @@ -0,0 +1,6 @@ +[.ShellClassInfo] +IconResource=C:\Users\Ѹìà\Icons\WoWLogo.ico,0 +[ViewState] +Mode= +Vid= +FolderType=Pictures