KF2-Server-Extension/ServerExt/Classes/KFGUI_FloatingWindowHeader.uc

25 lines
386 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
}