From 7969e4f171cf8e5c08f8791c0bf6ab1da7ce7ff0 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:54:34 -0700 Subject: [PATCH 01/10] Add files via upload --- Libraries/VanillaConversion.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Libraries/VanillaConversion.lua diff --git a/Libraries/VanillaConversion.lua b/Libraries/VanillaConversion.lua new file mode 100644 index 0000000..4c3fc5c --- /dev/null +++ b/Libraries/VanillaConversion.lua @@ -0,0 +1,33 @@ +if C_Container == nil then + C_Container = {} + ----[[ + -- Create an autoload function that will try to call the global namespace + setmetatable(C_Container, {__index = function (t, funcname, args) return _G[funcname] end } ) + --]] + function C_Container.GetContainerItemInfo(bagIndex, slotIndex) + icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagIndex, slotIndex) + containerItemInfo = { + ["iconFileId"] = icon, + ["stackCount"] = itemCount, + ["isLocked"] = locked, + ["quality"] = quality, + ["isReadable"] = readable, + ["hasLoot"] = lootable, + ["hyperlink"] = itemLink, + ["isFiltered"] = isFiltered, + ["hasNoValue"] = noValue, + ["itemID"] = itemID, + ["isBound"] = isBound + }; + return containerItemInfo + end +end + +if C_Minimap == nil then + local C_Minimap = {} + setmetatable(C_Minimap, {__index = function (t, funcname, args) return _G[funcname] end } ) + function C_Minimap.SetTracking(vIndex, pEnabled) + -- pEnabled was sometimes set to 1 instead of true. This forces true/false + return SetTracking(vIndex, pEnabled == true or pEnabled == 1) + end +end \ No newline at end of file From 5fcdcef75ad457c9822808a2538818d213fe969f Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:54:52 -0700 Subject: [PATCH 02/10] Add files via upload --- Outfitter-Vanilla.toc | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Outfitter-Vanilla.toc diff --git a/Outfitter-Vanilla.toc b/Outfitter-Vanilla.toc new file mode 100644 index 0000000..2e8c901 --- /dev/null +++ b/Outfitter-Vanilla.toc @@ -0,0 +1,66 @@ +## Interface: 11403 +## Author: Gogo, LemonDrake Updates: GovtGeek +## X-Credits: Mundocani, Miv +## Title: Outfitter +## Version: 3.0.4 +## Notes: Automate Gear Set Changes, and Build Gear Sets using Pawn Stat Weights +## OptionalDeps: +## RequiredDeps: +## SavedVariablesPerCharacter: gOutfitter_Settings +## SavedVariables: gOutfitter_GlobalSettings +## X-ReloadTag: 2 +## X-Curse-Project-ID: 356701 + +Libraries/UTF8/utf8data.lua +Libraries/UTF8/utf8.lua + +Libraries/LibStub.lua +Libraries/CallbackHandler-1.0.lua +Libraries/LibDataBroker-1.1.lua +Libraries/LibBabble-3.0.lua +Libraries/LibBabble-SubZone-3.0.lua +Libraries/LibBabble-Inventory-3.0.lua +Libraries/LibTipHooker-1.1.lua +Libraries/LibDropdown-1.0.lua + +OutfitterPrefix.lua + +Libraries/VanillaConversion.lua + +Libraries/MC2AddonLib/MC2AddonLib.lua +Libraries/MC2DebugLib/MC2DebugLib.lua +Libraries/MC2SchedulerLib/MC2SchedulerLib.lua +Libraries/MC2EventLib/MC2EventLib.lua +Libraries/MC2UIElementsLib/MC2UIElementsLib.lua +Libraries/MC2ItemLinkLib/MC2ItemLinkLib.lua +Libraries/MC2TooltipLib/MC2TooltipLib.lua +Libraries/MC2ItemStatsLib/MC2ItemStatsLib.lua + +OutfitterStrings.lua +OutfitterStrings_de.lua +OutfitterStrings_fr.lua +OutfitterStrings_cn.lua +OutfitterStrings_tw.lua +OutfitterStrings_kr.lua +OutfitterStrings_ru.lua +OutfitterStrings_ru.lua + +Outfitter.lua + +OutfitterOutfits.lua +OutfitterInventory.lua +OutfitterEquipment.lua +OutfitterItemStats.lua +OutfitterOptimize.lua +OutfitterUITools.lua +OutfitterScripting.lua +OutfitterScriptDialog.lua +OutfitterQuickSlots.lua +OutfitterMinimapButton.lua +OutfitterBar.lua +OutfitterAbout.lua + +OutfitterLDB.lua + +Outfitter.xml +OutfitterBar.xml From 33cba13788fff25144f58a71c0a03b2c54b722c8 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:55:50 -0700 Subject: [PATCH 03/10] Update Outfitter-Vanilla.toc --- Outfitter-Vanilla.toc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Outfitter-Vanilla.toc b/Outfitter-Vanilla.toc index 2e8c901..066dfe3 100644 --- a/Outfitter-Vanilla.toc +++ b/Outfitter-Vanilla.toc @@ -1,6 +1,6 @@ ## Interface: 11403 -## Author: Gogo, LemonDrake Updates: GovtGeek -## X-Credits: Mundocani, Miv +## Author: Gogo, LemonDrake +## X-Credits: Mundocani, Miv, GovtGeek ## Title: Outfitter ## Version: 3.0.4 ## Notes: Automate Gear Set Changes, and Build Gear Sets using Pawn Stat Weights From 52ace6ec2f290ff4a1be2937bbcbe6803255281e Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Thu, 20 Apr 2023 09:51:40 -0700 Subject: [PATCH 04/10] Update VanillaConversion.lua Fixed "iconFileID" spelling --- Libraries/VanillaConversion.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/VanillaConversion.lua b/Libraries/VanillaConversion.lua index 4c3fc5c..9a582d8 100644 --- a/Libraries/VanillaConversion.lua +++ b/Libraries/VanillaConversion.lua @@ -7,7 +7,7 @@ if C_Container == nil then function C_Container.GetContainerItemInfo(bagIndex, slotIndex) icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagIndex, slotIndex) containerItemInfo = { - ["iconFileId"] = icon, + ["iconFileID"] = icon, ["stackCount"] = itemCount, ["isLocked"] = locked, ["quality"] = quality, @@ -30,4 +30,4 @@ if C_Minimap == nil then -- pEnabled was sometimes set to 1 instead of true. This forces true/false return SetTracking(vIndex, pEnabled == true or pEnabled == 1) end -end \ No newline at end of file +end From 98662cd014bdb00888a9e568ab5ea3d363626e6a Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 10:55:16 -0700 Subject: [PATCH 05/10] Update VanillaConversion.lua --- Libraries/VanillaConversion.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/VanillaConversion.lua b/Libraries/VanillaConversion.lua index 9a582d8..b8c6b29 100644 --- a/Libraries/VanillaConversion.lua +++ b/Libraries/VanillaConversion.lua @@ -1,9 +1,7 @@ if C_Container == nil then C_Container = {} - ----[[ -- Create an autoload function that will try to call the global namespace setmetatable(C_Container, {__index = function (t, funcname, args) return _G[funcname] end } ) - --]] function C_Container.GetContainerItemInfo(bagIndex, slotIndex) icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagIndex, slotIndex) containerItemInfo = { @@ -24,7 +22,8 @@ if C_Container == nil then end if C_Minimap == nil then - local C_Minimap = {} + C_Minimap = {} + -- Create an autoload function that will try to call the global namespace setmetatable(C_Minimap, {__index = function (t, funcname, args) return _G[funcname] end } ) function C_Minimap.SetTracking(vIndex, pEnabled) -- pEnabled was sometimes set to 1 instead of true. This forces true/false From 1ba9ebf1d367c0e8ab2c7b3887ab0d219fd4a719 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 11:03:47 -0700 Subject: [PATCH 06/10] Update Outfitter-Vanilla.toc --- Outfitter-Vanilla.toc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Outfitter-Vanilla.toc b/Outfitter-Vanilla.toc index 066dfe3..9b0f836 100644 --- a/Outfitter-Vanilla.toc +++ b/Outfitter-Vanilla.toc @@ -1,6 +1,6 @@ ## Interface: 11403 -## Author: Gogo, LemonDrake -## X-Credits: Mundocani, Miv, GovtGeek +## Author: Gogo, LemonDrake Updates: GovtGeek +## X-Credits: Mundocani, Miv ## Title: Outfitter ## Version: 3.0.4 ## Notes: Automate Gear Set Changes, and Build Gear Sets using Pawn Stat Weights @@ -25,7 +25,8 @@ Libraries/LibDropdown-1.0.lua OutfitterPrefix.lua -Libraries/VanillaConversion.lua +Libraries/Vanilla-C_Container.lua +Libraries/Vanilla-C_Minimap.lua Libraries/MC2AddonLib/MC2AddonLib.lua Libraries/MC2DebugLib/MC2DebugLib.lua From 47c1fc6fb6fb6f3b69c884d8b873d81a0dd01caf Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 11:05:40 -0700 Subject: [PATCH 07/10] Add files via upload --- Libraries/Vanilla-C_Container.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Libraries/Vanilla-C_Container.lua diff --git a/Libraries/Vanilla-C_Container.lua b/Libraries/Vanilla-C_Container.lua new file mode 100644 index 0000000..0ab45bf --- /dev/null +++ b/Libraries/Vanilla-C_Container.lua @@ -0,0 +1,24 @@ +if C_Container == nil then + C_Container = {} + ----[[ + -- Create an autoload function that will try to call the global namespace + setmetatable(C_Container, {__index = function (t, funcname, args) return _G[funcname] end } ) + --]] + function C_Container.GetContainerItemInfo(bagIndex, slotIndex) + icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagIndex, slotIndex) + containerItemInfo = { + ["iconFileID"] = icon, + ["stackCount"] = itemCount, + ["isLocked"] = locked, + ["quality"] = quality, + ["isReadable"] = readable, + ["hasLoot"] = lootable, + ["hyperlink"] = itemLink, + ["isFiltered"] = isFiltered, + ["hasNoValue"] = noValue, + ["itemID"] = itemID, + ["isBound"] = isBound + }; + return containerItemInfo + end +end \ No newline at end of file From a97992ce6c3ddb4fc460d6b672c6c80c2bf1bf18 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 11:06:11 -0700 Subject: [PATCH 08/10] Add files via upload --- Libraries/Vanilla-C_Minimap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Libraries/Vanilla-C_Minimap.lua diff --git a/Libraries/Vanilla-C_Minimap.lua b/Libraries/Vanilla-C_Minimap.lua new file mode 100644 index 0000000..3b8ef3a --- /dev/null +++ b/Libraries/Vanilla-C_Minimap.lua @@ -0,0 +1,8 @@ +if C_Minimap == nil then + C_Minimap = {} + setmetatable(C_Minimap, {__index = function (t, funcname, args) return _G[funcname] end } ) + function C_Minimap.SetTracking(vIndex, pEnabled) + -- pEnabled was sometimes set to 1 instead of true. This forces true/false + return SetTracking(vIndex, pEnabled == true or pEnabled == 1) + end +end \ No newline at end of file From 118107a3e641e27807829e075b8837e8fd4927b0 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 11:07:44 -0700 Subject: [PATCH 09/10] Delete VanillaConversion.lua Broke out C_Container and C_Minimap into their own files --- Libraries/VanillaConversion.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Libraries/VanillaConversion.lua diff --git a/Libraries/VanillaConversion.lua b/Libraries/VanillaConversion.lua deleted file mode 100644 index b8c6b29..0000000 --- a/Libraries/VanillaConversion.lua +++ /dev/null @@ -1,32 +0,0 @@ -if C_Container == nil then - C_Container = {} - -- Create an autoload function that will try to call the global namespace - setmetatable(C_Container, {__index = function (t, funcname, args) return _G[funcname] end } ) - function C_Container.GetContainerItemInfo(bagIndex, slotIndex) - icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagIndex, slotIndex) - containerItemInfo = { - ["iconFileID"] = icon, - ["stackCount"] = itemCount, - ["isLocked"] = locked, - ["quality"] = quality, - ["isReadable"] = readable, - ["hasLoot"] = lootable, - ["hyperlink"] = itemLink, - ["isFiltered"] = isFiltered, - ["hasNoValue"] = noValue, - ["itemID"] = itemID, - ["isBound"] = isBound - }; - return containerItemInfo - end -end - -if C_Minimap == nil then - C_Minimap = {} - -- Create an autoload function that will try to call the global namespace - setmetatable(C_Minimap, {__index = function (t, funcname, args) return _G[funcname] end } ) - function C_Minimap.SetTracking(vIndex, pEnabled) - -- pEnabled was sometimes set to 1 instead of true. This forces true/false - return SetTracking(vIndex, pEnabled == true or pEnabled == 1) - end -end From 13933b393771b0004caaa9178ed9d85ca53d0c39 Mon Sep 17 00:00:00 2001 From: GovtGeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 26 Apr 2023 09:53:16 -0700 Subject: [PATCH 10/10] Update Outfitter-Vanilla.toc --- Outfitter-Vanilla.toc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Outfitter-Vanilla.toc b/Outfitter-Vanilla.toc index 9b0f836..6ed2a3e 100644 --- a/Outfitter-Vanilla.toc +++ b/Outfitter-Vanilla.toc @@ -1,5 +1,5 @@ ## Interface: 11403 -## Author: Gogo, LemonDrake Updates: GovtGeek +## Author: Gogo, LemonDrake ## X-Credits: Mundocani, Miv ## Title: Outfitter ## Version: 3.0.4 @@ -10,6 +10,7 @@ ## SavedVariables: gOutfitter_GlobalSettings ## X-ReloadTag: 2 ## X-Curse-Project-ID: 356701 +## X-Contributors: GovtGeek Libraries/UTF8/utf8data.lua Libraries/UTF8/utf8.lua