KF2-YetAnotherScoreboard/YAS/Classes/KFGUI_FloatingWindowHeader.uc

24 lines
385 B
Ucode

class KFGUI_FloatingWindowHeader extends KFGUI_Base;
var bool bDragWindow;
function PreDraw()
{
ComputeCoords();
}
function MouseClick(bool bRight)
{
if (!bRight)
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(true);
}
function MouseRelease(bool bRight)
{
if (!bRight)
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(false);
}
defaultproperties
{
bClickable=true
}