Garry's Mod Wiki

dragndrop.HandleDroppedInGame

  dragndrop.HandleDroppedInGame()

Description

Allows you to capture the panel that was dropped into the game (dropped onto the root panel). This function is meant to be overridden.

Example

dragndrop.HandleDroppedInGame = function() print("This panel was dropped inside the game:", dragndrop.m_DraggingMain) end