fix other paging sizes

This commit is contained in:
Beu
2023-09-08 16:00:30 +02:00
parent 478e842230
commit 8b3e624d1c
6 changed files with 46 additions and 20 deletions

View File

@ -238,9 +238,10 @@ class HelpManager implements CommandListener, CallbackListener, ManialinkPageAns
$index = 1;
$posY -= 10;
$pageFrame = null;
$pageMaxCount = floor($height * 0.80 / 4);
foreach ($commands as $command) {
if ($index % 15 === 1) {
if ($index % $pageMaxCount === 1) {
$pageFrame = new Frame();
$frame->addChild($pageFrame);
$posY = $height / 2 - 10;