Skip to content

Commit

Permalink
Merge pull request #142 from GovtGeek/vanilla-namespace
Browse files Browse the repository at this point in the history
Vanilla namespace
  • Loading branch information
cdmichaelb authored Jun 13, 2023
2 parents cfdf782 + 13933b3 commit f02dc4e
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Libraries/Vanilla-C_Container.lua
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions Libraries/Vanilla-C_Minimap.lua
Original file line number Diff line number Diff line change
@@ -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
68 changes: 68 additions & 0 deletions Outfitter-Vanilla.toc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f02dc4e

Please sign in to comment.