Anim Editor: polishing, refactoring, ensuring data

This commit is contained in:
Maruno17
2024-03-25 22:08:11 +00:00
parent 8a218ca834
commit 323b62b7d5
7 changed files with 336 additions and 176 deletions

View File

@@ -33,6 +33,14 @@ class UIControls::Scrollbar < UIControls::BaseControl
return (@range - @tray_size) * @slider_top / (@tray_size - @slider_size)
end
def minimum?
return @slider_top <= 0
end
def maximum?
return @slider_top >= @tray_size - @slider_size
end
# Range is the total size of the large area that the scrollbar is able to
# show part of.
def range=(new_val)