GE Lua Documentation

Press F to search!

BeginDragDropSource

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:1038
function M.BeginDragDropSource(ImGuiDragDropFlags_flags)
  if ImGuiDragDropFlags_flags == nil then ImGuiDragDropFlags_flags = 0 end
  return imgui.BeginDragDropSource(ImGuiDragDropFlags_flags)
end

Callers

@/lua/ge/extensions/editor/api/assets.lua
local function dragDropSource(dragDropId, data, callback)
  if imgui.BeginDragDropSource(imgui.DragDropFlags_SourceAllowNullID) then
    if not dragDropAsset.data then dragDropAsset.data = im.ArrayChar(2048, data) end
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if ImGuiDragDropFlags_flags == nil then ImGuiDragDropFlags_flags = 0 end
  return imgui.BeginDragDropSource(ImGuiDragDropFlags_flags)
end
@/lua/ge/extensions/editor/assetBrowser.lua

  if im.BeginDragDropSource(im.DragDropFlags_SourceAllowNullID) then
    if asset.ready == false then createAssetData(asset, true, true) end
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local function dragDropSource(texture)
  if im.BeginDragDropSource() then
    onDrag()
local function dragDropSourceTextureSet(name, set)
  if im.BeginDragDropSource() then
    onDrag()
local function dragDropSourceGlowMap(name, glowMap)
  if im.BeginDragDropSource() then
    onDrag()
@/lua/ge/extensions/editor/dynamicDecals/textures.lua

      if im.BeginDragDropSource(im.DragDropFlags_SourceAllowNullID) then
        local payload = im.ArrayChar(256, filePath)
@/lua/ge/extensions/flowgraph/manager.lua
function C:dragDropSource(payloadType, data)
  if im.BeginDragDropSource() then
    self:onDrag()
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
  im.tooltip("LMB + drag to move layer")
  if im.BeginDragDropSource(im.DragDropFlags_SourceAllowNullID) then
    dragging = true