This commit is contained in:
DBotThePony 2022-09-29 01:01:28 +07:00
parent bb689a39eb
commit d927bf8694
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -15,7 +15,7 @@ open class DiscreteScrollBarPanel<out S : Screen>(
height: Float = 20f,
isSlim: Boolean = false
) : EditablePanel<S>(screen, parent, x, y, width = if (isSlim) ScrollBarConstants.SLIM_WIDTH else ScrollBarConstants.WIDTH, height = height) {
inner class Button : EditablePanel<S>(screen, this@DiscreteScrollBarPanel, 1f, 1f, this@DiscreteScrollBarPanel.width - 12f, 15f) {
inner class Button : EditablePanel<S>(screen, this@DiscreteScrollBarPanel, 1f, 1f, this@DiscreteScrollBarPanel.width - 2f, 15f) {
var isScrolling = false
private set