diff --git a/api/options-credits.lua b/api/options-credits.lua index f729e2d..f71f782 100644 --- a/api/options-credits.lua +++ b/api/options-credits.lua @@ -5,13 +5,6 @@ local MTH_CREDITS_READY = MTH_OptionsRequire and MTH_OptionsRequire("options-cre local MTH_CREDITS_FONT_DELTA = 2 -local function MTH_CR_L(key, default) - if MTH and MTH.GetLocalization then - return MTH:GetLocalization(key, default) - end - return default or key -end - local function MTH_CreditsBumpFont(fs) if not fs or not fs.GetFont or not fs.SetFont then return end local path, size, flags = fs:GetFont() @@ -25,12 +18,12 @@ local function MTH_CreditsInsertLink(url) if link == "" then return end if type(MTH_InsertLinkToChat) == "function" and MTH_InsertLinkToChat(link) then if MTH and MTH.Print then - MTH:Print(MTH_CR_L("CREDITS_LINK_INSERTED", "Link inserted in chat: ") .. link) + MTH:Print("Link inserted in chat: " .. link) end return end if MTH and MTH.Print then - MTH:Print(MTH_CR_L("CREDITS_LINK_FALLBACK", "Link: ") .. link) + MTH:Print("Link: " .. link) end end @@ -97,7 +90,7 @@ function MTH_SetupCreditsOptions() if not container then return end local panel = MTH_Layout.Panel(container) - local title = panel:Title(MTH_CR_L("CREDITS_TITLE", "Credits")) + local title = panel:Title("Credits") local scrollFrame = MTH_GetFrame("MetaHuntOptionsCreditsScroll") if not scrollFrame then @@ -116,20 +109,27 @@ function MTH_SetupCreditsOptions() MTH_CreditsClearFrame(content) scrollFrame:SetScrollChild(content) - local cursor = MTH_CreditsCreateText(content, content, MTH_CR_L("CREDITS_ABOUT_CODE_TITLE", "About the code"), "GameFontNormal", -2, 1.00, 0.82, 0.00) + local cursor = MTH_CreditsCreateText(content, content, "About the code", "GameFontNormal", -2, 1.00, 0.82, 0.00) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_CODE_INTRO", - "This addon is, in others, a compilation of old vanilla addons that I loved and played with during years. But most of them had become very buggy with TwoW as new contain was added to the server. \n I fixed, reworked, enhanced, and melted them within a modern modular framework that I created.\n" - .. "I want to make it clear about what work is mine, and what is not and respectfully credit the original authors for the great stuff I've taken from them:"), + "This addon is, among others, a compilation of old Vanilla addons that I loved and played with for years. But most of them had become very buggy on Turtle WoW as new content was added to the server.\nI fixed, reworked, enhanced, and melted them within a modern modular framework that I created.\n" + .. "I want to make clear what work is mine, what is not, and respectfully credit the original authors for the great stuff I've taken from them:", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_ZHUNTER", - "- zBars, Antidaze and Autostrip were core functionalities of Vanilla zHunterMod addon. And I kept the \"z\" naming of bars/buttons to always remember it. I improve it and added zBar, zAmmo, zCompanions, zMount, zToys, zCraft.\nAlso the SmartAmmo feature idea is coming from Zhuntermod: there was a file in it with that functionality, but was like a work-in-progress, totally unfunctional and even \"dangerous\" in its current state, and was not active in the addon. Since it was a fucking great idea, I recoded it mostly from scratch and made it work reliably and safely."), + "- MetaHunt animations are powered by the great PizzaSauce library of Pizzahawaii! Thank you man.", + "GameFontNormalSmall", -10) + cursor = MTH_CreditsCreateLink(content, + "https://codeberg.org/Pizzahawaii/", + "https://codeberg.org/Pizzahawaii/", + cursor, + -4) + + cursor = MTH_CreditsCreateText(content, cursor, + "- zBars, AntiDaze, and AutoStrip were core functionalities of the Vanilla zHunterMod addon. I kept the \"z\" naming of bars/buttons to always remember it. I improved it and added zBar, zAmmo, zCompanions, zMount, zToys, and zCraft.\nAlso, the SmartAmmo feature idea comes from zHunterMod: there was a file with that functionality, but it was a work in progress, totally non-functional and even \"dangerous\" in its current state, and was not active in the addon. Since it was a fucking great idea, I recoded it mostly from scratch and made it work reliably and safely.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_FEEDOMATIC", "- Feed-o-Matic was entirely the work of Fizzwidget. I made it work for Twow, by melting it as a module calling Metahunt core to get pet's state and up-to-date data for new pet families and their diet."), + "- Feed-o-Matic was entirely the work of Fizzwidget. I made it work for Turtle WoW by melting it into a module that calls the MetaHunt core to get the pet's state and up-to-date data for new pet families and their diet.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateLink(content, "https://www.wowinterface.com/downloads/info4160-FizzwidgetFeed-O-Matic.html", @@ -138,7 +138,7 @@ function MTH_SetupCreditsOptions() -4) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_TOOLTIPS", "- Tooltips module is based on Hunter Helper, another vanilla addon of Fizzwidget. I kept the general idea, but there's not much original code left from it in Metahunt as I refactored everything so it plugs on MetaHunt controlled event handlers, can work with Twow data, and is now usable on other things than Beasts."), + "- The Tooltips module is based on Hunter Helper, another Vanilla addon by Fizzwidget. I kept the general idea, but there's not much original code left from it in MetaHunt, as I refactored everything so it plugs into MetaHunt-controlled event handlers, can work with Turtle WoW data, and is now usable for things other than Beasts.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateLink(content, "https://legacy-wow.com/vanilla-addons/fizzwidget-hunter-helper/", @@ -147,7 +147,7 @@ function MTH_SetupCreditsOptions() -4) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_CHRONOMETER", "- Chronometer was an old and very popular vanilla addon working with ACE2 libraries. It has known uncountable iterations by various people over the years, and I can't credit them all of them here. The current version used by Metahunt is based on this Twow conversion made by \"wigan91\". I have reworked it to have it Hunter-focused-only: removed the non-hunter/race stuff, improved the definition for spells/effects config that were not correct, added missing hunter spells (not many), and implemented my own bar color scheme fitting better the hunter spells."), + "- Chronometer was an old and very popular Vanilla addon working with ACE2 libraries. It has had countless iterations by various people over the years, and I can't credit them all here. The current version used by MetaHunt is based on this Turtle WoW conversion made by \"wigan91\". I reworked it to be Hunter-focused only: removed the non-Hunter/racial stuff, improved incorrect spell/effect configuration definitions, added missing Hunter spells (not many), and implemented my own bar color scheme that fits Hunter spells better.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateLink(content, "https://github.com/wigan91/Chronometer-TWoW", @@ -157,7 +157,7 @@ function MTH_SetupCreditsOptions() cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_ICU", "- ICU was an old vanilla addon. I used the following last revision and added many more features of config options to it."), + "- ICU was an old Vanilla addon. I used the latest revision below and added many more configuration options to it.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateLink(content, "https://github.com/wigan91/ICU-TWoW", @@ -166,30 +166,29 @@ function MTH_SetupCreditsOptions() -4) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_MAP", "- The Map/Marker system is the one of pfQuest from Master Shagu. I mostly let it untouched, I just made slight modifications so it can integrate better within Metahunt, and doesn't conflict with pfQuest."), + "- The Map/Marker system is from pfQuest by Master Shagu. I mostly left it untouched and only made slight modifications so it can integrate better within MetaHunt and does not conflict with pfQuest.", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_ATLAS_LINKS", "- The system allowing to fetch itemlinks in game (In the Weapon tab of the Hunter Book notably) is the one of Atlas Twow."), + "- The system allowing item links to be fetched in-game, notably in the Hunter Book Weapon tab, is from Atlas Turtle WoW.", "GameFontNormalSmall", -10) - cursor = MTH_CreditsCreateText(content, cursor, MTH_CR_L("CREDITS_ABOUT_DATA_TITLE", "About data sources"), "GameFontNormal", -14, 1.00, 0.82, 0.00) + cursor = MTH_CreditsCreateText(content, cursor, "About data sources", "GameFontNormal", -14, 1.00, 0.82, 0.00) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_ABOUT_DATA_INTRO", "Metahunt ships with its own Twow datastores, limited to hunter stuff only, and most of this data is up-to-date (twow 1.18.1). The beast information is coming directly from a extract of live twow DB, made for MetaHunt by twow dev lead in March 2026.\n\n" - .. "Other sources used to build the data include:"), + "MetaHunt ships with its own Turtle WoW datastores, limited to Hunter-related information, and most of this data is up to date for Turtle WoW 1.18.1. The beast information comes directly from an extract of the live Turtle WoW database, made for MetaHunt by the Turtle WoW dev lead in March 2026.\n\n" + .. "Other sources used to build the data include:", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_DATA_OTHER", "- Atlas twow for ranged weapon sources\n\n" - .. "- Twow wiki for pet diet (which was incomplete, missing Serpents and Foxes)"), + "- Atlas Turtle WoW for ranged weapon sources\n\n" + .. "- Turtle WoW Wiki for pet diets (which was incomplete, missing Serpents and Foxes)", "GameFontNormalSmall", -10) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_CLOSING", ""), + "", "GameFontNormalSmall", -10, 1.00, 0.82, 0.00) cursor = MTH_CreditsCreateText(content, cursor, - MTH_CR_L("CREDITS_SIGNATURE", "\n" - .. "Metasploit , of Nordaanar, now N'Zoth"), + "\n" .. "Metasploit , of Nordaanar, now N'Zoth", "GameFontNormalSmall", -10) end