2020-01-10 13:14:11 +00:00
|
|
|
Class KFGUI_FloatingWindowHeader extends KFGUI_Base;
|
|
|
|
|
2021-06-12 20:11:37 +00:00
|
|
|
`include(Build.uci)
|
|
|
|
`include(Logger.uci)
|
|
|
|
|
2020-01-10 13:14:11 +00:00
|
|
|
var bool bDragWindow;
|
|
|
|
|
|
|
|
function PreDraw()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
ComputeCoords();
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
2021-06-13 02:53:33 +00:00
|
|
|
function MouseClick( bool bRight)
|
2020-01-10 13:14:11 +00:00
|
|
|
{
|
2021-06-13 02:53:33 +00:00
|
|
|
if (!bRight)
|
2021-05-16 09:40:02 +00:00
|
|
|
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(true);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
2021-06-13 02:53:33 +00:00
|
|
|
function MouseRelease( bool bRight)
|
2020-01-10 13:14:11 +00:00
|
|
|
{
|
2021-06-13 02:53:33 +00:00
|
|
|
if (!bRight)
|
2021-05-16 09:40:02 +00:00
|
|
|
KFGUI_FloatingWindow(ParentComponent).SetWindowDrag(false);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
bClickable=true
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|