rott/kf_sources/XInterface/Classes/GUIHorzScrollZone.uc
2026-07-14 20:27:09 +07:00

22 lines
565 B
Ucode

// ====================================================================
// Class: XInterface.GUIHorzScrollZone
// Parent: XInterface.GUIComponent
//
// Scrollzone implementation for horizontal lists.
// ====================================================================
class GUIHorzScrollZone extends GUIScrollZoneBase;
function bool InternalOnClick(GUIComponent Sender)
{
local float perc;
if (!IsInBounds())
return false;
perc = ( Controller.MouseX - ActualLeft() ) / ActualWidth();
OnScrollZoneClick(perc);
return true;
}