KF2-YetAnotherScoreboard/YAS/Classes/KFGUI_FloatingWindowHeader.uc

24 lines
385 B
Ucode
Raw Normal View History

2022-09-03 20:26:40 +03:00
class KFGUI_FloatingWindowHeader extends KFGUI_Base;
2021-06-12 23:11:37 +03:00
2020-01-10 07:14:11 -06:00
var bool bDragWindow;
function PreDraw()
{
ComputeCoords();
2020-01-10 07:14:11 -06:00
}
2021-06-13 06:00:19 +03:00
function MouseClick(bool bRight)
2020-01-10 07:14:11 -06:00
{
2021-06-13 05:53:33 +03:00
if (!bRight)
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(true);
2020-01-10 07:14:11 -06:00
}
2021-06-13 06:00:19 +03:00
function MouseRelease(bool bRight)
2020-01-10 07:14:11 -06:00
{
2021-06-13 05:53:33 +03:00
if (!bRight)
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(false);
2020-01-10 07:14:11 -06:00
}
defaultproperties
{
bClickable=true
}