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 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 diff --git a/Outfitter-Vanilla.toc b/Outfitter-Vanilla.toc new file mode 100644 index 0000000..6ed2a3e --- /dev/null +++ b/Outfitter-Vanilla.toc @@ -0,0 +1,68 @@ +## Interface: 11403 +## Author: Gogo, LemonDrake +## 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 +## X-Contributors: GovtGeek + +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/Vanilla-C_Container.lua +Libraries/Vanilla-C_Minimap.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