This commit is contained in:
Frakist
2024-01-31 21:44:20 +02:00
2 changed files with 4 additions and 3 deletions
@@ -70,8 +70,9 @@ class CharterEventTypeSelection extends UISubstateWindow {
buttonCameras.x = -subCam.scroll.x + Std.int(windowSpr.x+10);
buttonCameras.y = -subCam.scroll.y + Std.int(windowSpr.y+41);
buttonCameras.scroll.y = FlxMath.bound(buttonCameras.scroll.y - (buttonsBG.hovered ? FlxG.mouse.wheel : 0) * 12, 0,
(buttons[buttons.length-1].y + buttons[buttons.length-1].bHeight) - buttonCameras.height);
if (buttons.length > 16)
buttonCameras.scroll.y = FlxMath.bound(buttonCameras.scroll.y - (buttonsBG.hovered ? FlxG.mouse.wheel : 0) * 12, 0,
(buttons[buttons.length-1].y + buttons[buttons.length-1].bHeight) - buttonCameras.height);
}
override function destroy() {