mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add textinput:SetTrackingEnabled and textinput:GetTrackingEnabled
This commit is contained in:
parent
0af17482ce
commit
31f768cd14
@ -2108,3 +2108,28 @@ function newobject:ClearLine(line)
|
||||
return self
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetTrackingEnabled(bool)
|
||||
- desc: sets whether or not the object should
|
||||
automatically scroll to the position of its
|
||||
indicator
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetTrackingEnabled(bool)
|
||||
|
||||
self.trackindicator = bool
|
||||
return self
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetTrackingEnabled()
|
||||
- desc: gets whether or not the object should
|
||||
automatically scroll to the position of its
|
||||
indicator
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetTrackingEnabled()
|
||||
|
||||
return self.trackindicator
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user