PANEL:OnDrop

From Garry's Mod
Jump to: navigation, search
 PANEL:OnDrop( )

Description

We're being dropped on something We can create a new panel here and return it, so that instead of dropping us - it drops the new panel instead! We remain where we are!

Only works for panels derived from DDragBase.

Returns

Panel

The panel to drop instead of us. By default you should return self.
Personal tools
Navigation