-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathUtils.lua
37 lines (33 loc) · 1.11 KB
/
Utils.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- function AutoTurnIn:trim(s)
-- return s:match "^%s*(.-)%s*$"
-- end
-- function AutoTurnIn:getFreeInventoryNum(bagtype)
-- local commonbag, specificbag = 0, 0;
-- for bag = 0, NUM_BAG_SLOTS do
-- local slots, bt = GetContainerNumFreeSlots(bag);
-- if (bt == bagtype) then
-- specificbag = specificbag + slots
-- end
-- if (bt == 0) then
-- commonbag = commonbag + slots
-- end
-- end
-- if (specificbag > 0) then
-- return specificbag
-- else
-- return commonbag;
-- end
-- end
--[[
Alt + leftclick purges item under cursor
Execution tainted by lurui while reading ContainerFrameItemButton_OnModifiedClick - ContainerFrame1Item15:OnClick()
]]--
--hooksecurefunc("ContainerFrameItemButton_OnModifiedClick", function (self, button)
-- hooksecurefunc("ContainerFrameItemButton_OnModifiedClick", function (self, button)
-- if ( AutoTurnIn.db.profile.unsafe_item_wipe and button == "LeftButton" and IsAltKeyDown() ) then
-- PickupContainerItem(self:GetParent():GetID(), self:GetID());
-- if (CursorHasItem()) then
-- DeleteCursorItem()
-- end
-- end
-- end)