TextT.scrollSubstringToPoint

Makes an object visible on the screen at a given position by scrolling all necessary parents.

template TextT(TStruct)
bool
scrollSubstringToPoint
(,,
AtkCoordType coords
,
int x
,
int y
)

Parameters

startOffset int

start position

endOffset int

end position, or -1 for the end of the string.

coords AtkCoordType

specify whether coordinates are relative to the screen or to the parent object.

x int

x-position where to scroll to

y int

y-position where to scroll to

Return Value

Type: bool

whether scrolling was successful.

Meta

Since

2.32