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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
-- If the cursor contains a store item, just let that system handle it...
if ( cursorType == MOUSE_CONTENT_STORE_ITEM ) then
return
end
if ( cursorType == MOUSE_CONTENT_QUEST_ITEM ) then
if ( bagId == BAG_BANK ) then
ZO_Alert ( UI_ALERT_CATEGORY_ERROR , SOUNDS . NEGATIVE_CLICK , GetString ( SI_INVENTORY_ERROR_NO_QUEST_ITEMS_IN_BANK ) )
end
-- can't really move quest items anywhere, so return no matter what
return
end
-- Should not auto-stack, that's what right click is for as of now.
-- This is only called after all cursor data has been checked.
end
local dropHandlers =
{
[ "inventory" ] = function ( landingArea , cursorType )
end ,
[ "store" ] = function ( landingArea , cursorType )
end ,
}
-- Allow calling from external systems (the inventory system will once again begin using this
-- to auto-drop into inventory (bank/bag) when the split stack menu item is chosen.
end
end
end
--[[
InitializeTooltip(InformationTooltip, GuiMouse, TOPLEFT, 0, 32)
SetTooltipText(InformationTooltip, zo_strformat(landingArea.hintTextStringId))
--]]
end
--[[
ClearTooltip(InformationTooltip)
--]]
end
if ( not hidden ) then
-- It's assumed that landing areas are children of a ZO_ScrollListContents control that hold ZO_ListInventorySlots
-- which is how the offsets are determined when there are icons present in the list.
-- The right offset is determined from the scrollbar.
local iconOffset = 0
-- Don't adjust for icon offset for now, just allow the landing area to take up the full area of the window
-- iconOffset = landingArea.iconOffset
end
landingArea . hintTextStringId = hintTextStringId
-- Hint text isn't shown, you can only click on the landing area if an item isn't being moused over.
--GetControl(landingArea, "HintText"):SetText(zo_strformat(hintTextStringId))
end
end
landingArea . bagId = bagId
landingArea . descriptor = descriptor
landingArea . iconOffset = customOffset or 50
end |