This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- debug utils | |
local df = df or function(...) print(string.format(...)) end | |
local function dstring(arg) | |
if type(arg) == "string" then | |
return string.format("%q", arg) | |
else | |
return tostring(arg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
File : MultiCraft.lua | |
Author: Ayantir | |
Version : 3 | |
]]-- | |
-- MultiCraft totally rewrited by Ayantir | |
local ADDON_NAME = "MultiCraft" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--INTERNAL FUNCTION | |
--creates controls when options panel is first shown | |
--controls anchoring of these controls in the panel | |
local function CreateOptionsControlsRecursively(parent, optionsTable, maxDepth) | |
if not optionsTable or maxDepth < 0 then | |
return | |
end | |
local lastAddedControl, lacAtHalfRow | |
local anchorOffset = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wm = WINDOW_MANAGER | |
local PRIVATE = {} | |
local function df(...) | |
d(string.format(...)) | |
end | |
function PRIVATE.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local MAJOR, MINOR = "libFilters", 11.2 | |
local libFilters, oldminor = LibStub:NewLibrary(MAJOR, MINOR) | |
if not libFilters then return end --the same or newer version of this lib is already loaded into memory | |
--thanks to Seerah for the previous lines and library | |
--some constants for your filters | |
LAF_BAGS = 1 | |
LAF_BANK = 2 | |
LAF_GUILDBANK = 3 | |
LAF_STORE = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local newFilter = self:GetTabFilterInfo(inventoryType, filterTab) | |
if subfilterRows[newFilter] then | |
UpdateInventoryAnchors(self, inventoryType, ADV_FILTER_HEIGHT) | |
else | |
UpdateInventoryAnchors(self, inventoryType, 0) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local HarvensTraitAndStyle = {} | |
local g_savedVars = {} | |
local UnknowableTraitTypes = { | |
[ITEM_TRAIT_TYPE_NONE] = "none", | |
[ITEM_TRAIT_TYPE_WEAPON_INTRICATE] = "weapon", | |
[ITEM_TRAIT_TYPE_WEAPON_ORNATE] = "weapon", | |
[ITEM_TRAIT_TYPE_ARMOR_INTRICATE] = "armor", | |
[ITEM_TRAIT_TYPE_ARMOR_ORNATE] = "armor", | |
[ITEM_TRAIT_TYPE_JEWELRY_HEALTHY] = "jewelry", |