You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
931 B
33 lines
931 B
|
3 years ago
|
-- ------------------------------------------------------------------------------ --
|
||
|
|
-- TradeSkillMaster --
|
||
|
|
-- https://tradeskillmaster.com --
|
||
|
|
-- All Rights Reserved - Detailed license information included with addon. --
|
||
|
|
-- ------------------------------------------------------------------------------ --
|
||
|
|
|
||
|
|
--- Drag Functions
|
||
|
|
-- @module DragContext
|
||
|
|
|
||
|
|
local _, TSM = ...
|
||
|
|
local DragContext = TSM.Init("Util.DragContext")
|
||
|
|
local private = {
|
||
|
|
context = nil,
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
-- ============================================================================
|
||
|
|
-- Module Functions
|
||
|
|
-- ============================================================================
|
||
|
|
|
||
|
|
function DragContext.Get()
|
||
|
|
return private.context
|
||
|
|
end
|
||
|
|
|
||
|
|
function DragContext.Set(items)
|
||
|
|
private.context = items
|
||
|
|
end
|
||
|
|
|
||
|
|
function DragContext.Clear()
|
||
|
|
private.context = nil
|
||
|
|
end
|