From b8d6a366fd5fc07a4a4955e9e3d11b0edcd5e3d9 Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Wed, 20 Jul 2022 12:08:40 -0400 Subject: [PATCH 1/5] added TOC WotLKC client expects --- Details-Wrath.toc | 137 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Details-Wrath.toc diff --git a/Details-Wrath.toc b/Details-Wrath.toc new file mode 100644 index 00000000..e328dc42 --- /dev/null +++ b/Details-Wrath.toc @@ -0,0 +1,137 @@ +## Interface: 30400 +## Title: Details! Damage Meter +## Notes: Essential tool to impress that chick in your raid. +## SavedVariables: _detalhes_global +## SavedVariablesPerCharacter: _detalhes_database +## OptionalDeps: Ace3, LibSharedMedia-3.0, LibWindow-1.1, LibDBIcon-1.0, NickTag-1.0, LibDataBroker-1.1, LibItemUpgradeInfo-1.0, LibGroupInSpecT-1.1, LibCompress, LibGraph-2.0 +#@no-lib-strip@ +Libs\libs.xml +#@end-no-lib-strip@ + +locales\Details-enUS.lua +locales\Details-deDE.lua +locales\Details-esES.lua +locales\Details-esMX.lua +locales\Details-frFR.lua +locales\Details-itIT.lua +locales\Details-koKR.lua +locales\Details-ptBR.lua +locales\Details-ruRU.lua +locales\Details-zhCN.lua +locales\Details-zhTW.lua + +boot.lua +indent.lua +core\util.lua +API.lua + +functions\profiles.lua +functions\hooks.lua +functions\bossmods.lua +functions\coach.lua +functions\skins.lua +functions\boss.lua +functions\spells.lua +functions\events.lua +functions\classes.lua +functions\buff.lua +functions\spellcache.lua +functions\attributes.lua +functions\savedata.lua +functions\slash.lua +functions\playerclass.lua +functions\timedata.lua +functions\report.lua +functions\rowanimation.lua +functions\raidinfo.lua +functions\dungeon.lua +functions\pack.lua +functions\mythicdungeon.lua +functions\immersion.lua +functions\schedules.lua +functions\autorun.lua +functions\deathrecap.lua +functions\plater.lua +functions\deathmenu.lua +functions\macros.lua +functions\testbars.lua + +core\timemachine.lua + +frames\anime.lua +frames\anime.xml +frames\fw_mods.lua +frames\toolbar_button.xml + +frames\window_copy.lua +frames\window_options2.lua +frames\window_options2_sections.lua +frames\window_api.lua +frames\window_cdtracker.lua +frames\window_playerbreakdown.lua +frames\window_playerbreakdown_list.lua +frames\window_report.lua +frames\window_main.lua +frames\window_custom.lua +frames\window_welcome.lua +frames\window_news.lua +frames\window_wa.lua +frames\window_forge.lua +frames\window_switch.lua +frames\window_scrolldamage.lua +frames\window_dump.lua +frames\window_eventtracker.lua +frames\window_currentdps.lua +frames\window_benchmark.lua +frames\window_runcode.lua +frames\window_plater.lua +frames\window_macros.lua +frames\window_profiler.lua +frames\window_rowtexteditor.lua +frames\window_brokertexteditor.lua +frames\window_bookmark.lua +frames\window_classcolor.lua +frames\window_statistics.lua + +classes\class_error.lua +classes\class_combat.lua +classes\class_damage.lua +classes\class_spelldamage.lua +classes\class_heal.lua +classes\class_spellhealing.lua +classes\class_resources.lua +classes\class_spellresources.lua +classes\class_utility.lua +classes\class_spellutility.lua +classes\include_instance.lua +classes\class_instance.lua + +classes\class_custom.lua +classes\custom_damagedone.lua +classes\custom_healingdone.lua + +core\control.lua + +classes\container_actors.lua +classes\container_spells.lua +classes\container_segments.lua +classes\container_pets.lua + +core\plugins.lua +core\plugins_toolbar.lua +core\plugins_statusbar.lua +core\plugins_raid.lua +core\plugins_solo.lua +core\gears.lua +core\windows.lua +core\meta.lua +core\network.lua + +core\parser.lua +#core\parser_timewalk.lua + +functions\loaddata.lua + +startup.lua + +functions\api2.lua From fea926f6bd537c976d90ee6d8203e66a9613f247 Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Wed, 20 Jul 2022 12:38:37 -0400 Subject: [PATCH 2/5] recognize WotLKC as "timewalking" everywhere GetBuildInfo is used --- Libs/DF/fw.lua | 2 +- Libs/LibOpenRaid/GetPlayerInformation.lua | 2 +- Libs/LibOpenRaid/LibOpenRaid.lua | 2 +- Libs/LibOpenRaid/ThingsToMantain.lua | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 4978ded0..6b5b3dd7 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -41,7 +41,7 @@ local PixelUtil = PixelUtil or DFPixelUtil if (not PixelUtil) then --check if is in classic or TBC wow, if it is, build a replacement for PixelUtil local gameVersion = GetBuildInfo() - if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then + if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then PixelUtil = { SetWidth = function (self, width) self:SetWidth (width) end, SetHeight = function (self, height) self:SetHeight (height) end, diff --git a/Libs/LibOpenRaid/GetPlayerInformation.lua b/Libs/LibOpenRaid/GetPlayerInformation.lua index 30de4256..89d59d0a 100644 --- a/Libs/LibOpenRaid/GetPlayerInformation.lua +++ b/Libs/LibOpenRaid/GetPlayerInformation.lua @@ -13,7 +13,7 @@ local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0") local isTimewalkWoW = function() local gameVersion = GetBuildInfo() - if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then + if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then return true end end diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 525d2290..67b0d3cb 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -131,7 +131,7 @@ LIB_OPEN_RAID_CAN_LOAD = false local isTimewalkWoW = function() local gameVersion = GetBuildInfo() - if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2") then + if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then return true end end diff --git a/Libs/LibOpenRaid/ThingsToMantain.lua b/Libs/LibOpenRaid/ThingsToMantain.lua index b7b5eb80..02fb7273 100644 --- a/Libs/LibOpenRaid/ThingsToMantain.lua +++ b/Libs/LibOpenRaid/ThingsToMantain.lua @@ -965,6 +965,9 @@ if (GetBuildInfo():match ("%d") == "1") then elseif (GetBuildInfo():match ("%d") == "2") then LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {} +elseif (GetBuildInfo():match ("%d") == "3") then + LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = {} + else LIB_OPEN_RAID_SPELL_CUSTOM_NAMES = { [44461] = {name = GetSpellInfo(44461) .. " (" .. L["STRING_EXPLOSION"] .. ")"}, --Living Bomb (explosion) From eaf2644c17531baa78b1731a10bd01176aaa21e6 Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Wed, 20 Jul 2022 13:07:46 -0400 Subject: [PATCH 3/5] forgot the plugins' TOCs... https://youtu.be/OeZ-VIWLYHw --- .../Details_Streamer/Details_Streamer-Wrath.toc | 11 +++++++++++ .../Details_TinyThreat-Wrath.toc | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 plugins/Details_Streamer/Details_Streamer-Wrath.toc create mode 100644 plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc diff --git a/plugins/Details_Streamer/Details_Streamer-Wrath.toc b/plugins/Details_Streamer/Details_Streamer-Wrath.toc new file mode 100644 index 00000000..bd1d8966 --- /dev/null +++ b/plugins/Details_Streamer/Details_Streamer-Wrath.toc @@ -0,0 +1,11 @@ +## Interface: 30400 +## Title: Details!: Streamer (plugin) +## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. +## RequiredDeps: Details +## SavedVariables: Details_StreamerDB + +#@no-lib-strip@ +embeds.xml +#@end-no-lib-strip@ + +Details_Streamer.lua \ No newline at end of file diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc b/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc new file mode 100644 index 00000000..46668f11 --- /dev/null +++ b/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc @@ -0,0 +1,14 @@ +## Interface: 30400 +## Title: Details!: Tiny Threat (plugin) +## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. +## RequiredDeps: Details +## OptionalDeps: Ace3 + +#@no-lib-strip@ +embeds.xml +#@end-no-lib-strip@ + +enUS.lua +ptBR.lua + +Details_TinyThreat.lua From 06908d7f28819bbba8abfe21ba68e054f4302061 Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Wed, 20 Jul 2022 14:13:37 -0400 Subject: [PATCH 4/5] revised a comment to match what the code is now doing --- Libs/DF/fw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 6b5b3dd7..06b09423 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -39,7 +39,7 @@ DF.AuthorInfo = { local PixelUtil = PixelUtil or DFPixelUtil if (not PixelUtil) then - --check if is in classic or TBC wow, if it is, build a replacement for PixelUtil + --check if is in classic, TBC, or WotLK wow, if it is, build a replacement for PixelUtil local gameVersion = GetBuildInfo() if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then PixelUtil = { From f22c937c347d6413b2f08999bd0e36039cd2bfe8 Mon Sep 17 00:00:00 2001 From: Daniel Henry Date: Thu, 21 Jul 2022 14:38:50 -0400 Subject: [PATCH 5/5] extended a specific TBC check to Wrath as well --- plugins/Details_Streamer/Details_Streamer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Details_Streamer/Details_Streamer.lua b/plugins/Details_Streamer/Details_Streamer.lua index b74f782d..b13f49e3 100644 --- a/plugins/Details_Streamer/Details_Streamer.lua +++ b/plugins/Details_Streamer/Details_Streamer.lua @@ -1296,7 +1296,7 @@ function listener:UnregisterMyEvents() listener:UnregisterEvent ("UNIT_SPELLCAST_CHANNEL_UPDATE") listener:UnregisterEvent ("UNIT_SPELLCAST_STOP") - if (not DetailsFramework.IsTBCWow()) then + if (not (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow())) then listener:UnregisterEvent ("UNIT_SPELLCAST_INTERRUPTIBLE") listener:UnregisterEvent ("UNIT_SPELLCAST_NOT_INTERRUPTIBLE") end