HideMiniButtons & ShowWhoPinged - fix

Deleted old framestack button, and added new, better one.
Fixed ShowWhoPinged.

Signed-off-by: Sattva <Sattvagit@gmail.com>
This commit is contained in:
Sattva
2023-05-30 13:07:18 +03:00
parent 90ecd582a2
commit ff730cb6f9
3 changed files with 28 additions and 3 deletions
+6
View File
@@ -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.
+16 -3
View File
@@ -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
+6
View File
@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=C:\Users\Ѹìà\Icons\WoWLogo.ico,0
[ViewState]
Mode=
Vid=
FolderType=Pictures