Files
Basalt/docs/docs1_6/objects/Frame/setScrollAmount.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

388 B

setScrollAmount

Sets the maximum offset it is allowed to scroll

Parameters:

  1. number maximum y offset

Returns:

  1. frame The frame being used

Usage:

  • Creates a new base frame and makes it scrollable and sets the maximum amount to 25
local myFrame = basalt.createFrame():setScrollable():setScrollAmount(25)
<frame scrollAmount="25"></frame>