From 632290002d056026e57aa3d1198991ca4e38cb89 Mon Sep 17 00:00:00 2001 From: Sattva Date: Sun, 24 Sep 2023 05:08:02 +0300 Subject: [PATCH] FlightTimers - prepare editbox for data work. To easy copy-paste. --- Changelog and Notes.txt | 14 ++++++-------- Leatrix_Plus.lua | 20 +++++++++++++++++--- Leatrix_Plus_Flight_Horde.lua | 2 +- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Changelog and Notes.txt b/Changelog and Notes.txt index afda2dc..716132a 100644 --- a/Changelog and Notes.txt +++ b/Changelog and Notes.txt @@ -22,19 +22,13 @@ MinimapEnhance - Replace non-standard buttons option! Aka those that don't use AhExtras - Need to make new description for alt click, tab confirm. And do locales. -SlashCommand - /ltp neeeds to be fixed, not working at all. - -GUI - FIX the width for long strings https://cdn.discordapp.com/attachments/766767499987386402/1119067878885437531/wow_otLn4jPKyo.jpg - Tooltip - FIX center popup when closed the leatrix window, its still staying... WebLink - Fix ruRU encoding!!! -Minimap - Move the zone text overlapping the mail icon - ViewPort - fixes, left,right, transperency or disable -DisableLootWarning - Make sure it's working +FlightTimers - Start Working on DB FlightTimers - disable report by default @@ -50,10 +44,12 @@ Accept Ress - Will it ever accept ressurection if ressurecter in combat ? QueueTimer - Need to test if timer .After 0.1 is fine in SetupBar func (was 1 second before) -LibCandyBar - Will it be conflicting with other addons that use 3.3.5 version of CandyBar lib? +LibCandyBar - Will it be conflicting with other addons that use 3.3.5 version of CandyBar lib? Like with BigWigs? ShowFlightPaths - Will StopLandingEvent work correctly on summon, BG/arena accept +DisableLootWarning - Make sure it's working + -------------------------------------------------------------------------------- -- Stuff to-do: @@ -121,6 +117,8 @@ HideChatButtons - Add Configuration to enable certain chat buttons. ManageBuff - Add Debuffs mover. Currently only moving Buffs, but not Debuffs. +GUI - FIX the width for long strings https://cdn.discordapp.com/attachments/766767499987386402/1119067878885437531/wow_otLn4jPKyo.jpg + -------------------------------------------------------------------------------- diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 10a5eba..ebbe0c2 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -6753,7 +6753,9 @@ debugString = debugString .. ":" .. destination routeString = routeString .. ":" .. destination end - debugString = debugString .. '"] = ' + --debugString = debugString .. '"] = ' + debugString = debugString .. '"]' + -- Show flight time in tooltip if it exists if data[faction] and data[faction][continent] and data[faction][continent][routeString] then @@ -6771,7 +6773,8 @@ local debugTwonumEnterHops = (GetNumRoutes(index) - 1) -- Add node names to debug string - debugString = debugString .. " -- " .. nodeName + --debugString = debugString .. " -- " .. nodeName + debugString = debugString -- for i = 20, numEnterHops do -- local fpName = TaxiNodeName(i) @@ -6786,12 +6789,23 @@ -- If debug string does not contain destination, add it to the end if not string.find(debugString, barName) then - debugString = debugString .. ", " .. barName .. " with " .. debugTwonumEnterHops .. " hops" + --debugString = debugString .. ", " .. barName .. " with " .. debugTwonumEnterHops .. " hops" + debugString = debugString end -- Print debug string (used for showing full routes for nodes) print(debugString) + -- Open the chat edit box, pre-fill with debugString, and highlight the text for easy copying + local defaultChatFrame = DEFAULT_CHAT_FRAME + if defaultChatFrame then + ChatFrame_OpenChat(debugString, defaultChatFrame) + local editBox = ChatFrame1EditBox + if editBox then + LibCompat.After(0.1, function() editBox:HighlightText() end) + end + end + end end end) diff --git a/Leatrix_Plus_Flight_Horde.lua b/Leatrix_Plus_Flight_Horde.lua index de0b198..7f6cf70 100644 --- a/Leatrix_Plus_Flight_Horde.lua +++ b/Leatrix_Plus_Flight_Horde.lua @@ -968,7 +968,7 @@ ["0.63:0.44:0.56:0.53:0.45:0.56:0.32:0.58"] = 373, -- Orgrimmar, Crossroads, Thunder Bluff, Shadowprey Village ["0.63:0.44:0.45:0.56"] = 224, -- Orgrimmar, Thunder Bluff (David Galindo suggested 233) ["0.63:0.44:0.56:0.53"] = 110, -- Orgrimmar, Crossroads - ["0.63:0.44:0.61:0.55"] = 108, -- Orgrimmar, Ratchet + ["0.63:0.56:0.61:0.45"] = 107, -- Orgrimmar, Ratchet ["0.63:0.44:0.63:0.36"] = 95, -- Orgrimmar, Valormok ["0.63:0.44:0.55:0.42"] = 90, -- Orgrimmar, Splintertree Post ["0.63:0.44:0.56:0.53:0.41:0.47"] = 258, -- Orgrimmar, Crossroads, Sun Rock Retreat