Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla namespace #142

Merged
merged 10 commits into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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