Skip to content

Commit

Permalink
Merge pull request #241 from BaxAndrei/patch-6
Browse files Browse the repository at this point in the history
Add spacing
  • Loading branch information
tltneon authored Jan 18, 2025
2 parents cc42e9c + 6bded49 commit c6ec9b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions userbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ function drawHistory(&$im, $x, $y, $w, $h, &$server) {

imagettftext($im, 10, 0, 62, 19, $color_nm, $font, /* name */ $server->getName(true));
imagettftext($im, 8, 0, 62, 32, $color_ip, $font, /* ip&port */ str_replace('https://', '', $link));
imagettftext($im, 7, 0, 154, 47, $color_mp, $font, /* map */ "{$lgsl_config['text']['map']}:{$server->getMap()}");
imagettftext($im, 7, 0, 62, 48, $color_pl, $font, /* players */ "{$lgsl_config['text']['plr']}:{$server->getPlayersCount()}{$max}");
imagettftext($im, 7, 0, 154, 47, $color_mp, $font, /* map */ "{$lgsl_config['text']['map']}: {$server->getMap()}");
imagettftext($im, 7, 0, 62, 48, $color_pl, $font, /* players */ "{$lgsl_config['text']['plr']}: {$server->getPlayersCount()}{$max}");
imagettftext($im, 7, 0, 62, 59, $color_tm, $font, /* game */ ucfirst($server->getGame()));
imagettftext($im, 7, 0, 238, 59, $color_tm, $font, /* updated */ "upd:{$time} /{$server->getGame()}");

Expand Down Expand Up @@ -212,11 +212,11 @@ function drawHistory(&$im, $x, $y, $w, $h, &$server) {
imagecopy($im, $on_id, 7, 2, 0, 0, 16, 16); // place status icon
imagecopy($im, $game_id, 25, 2, 0, 0, 16, 16); // place game icon

imagettftext($im, 7, 0, 43, 17, $color_mp, $font, /* map */ "{$lgsl_config['text']['map']}:{$map}");
imagettftext($im, 7, 0, 43, 17, $color_mp, $font, /* map */ "{$lgsl_config['text']['map']}: {$map}");
imagettftext($im, 7, 0, 43, 9, $color_ip, $font, /* ip&port */ str_replace('https://', '', $link));
imagettftext($im, 8, 0, 156, 9, $color_nm, $font, /* name */ $server->getName(false));
imagettftext($im, 7, 0, 156, 17, $color_pl, $font, /* players */ "{$lgsl_config['text']['plr']}:{$server->getPlayersCount()}{$max}");
imagettftext($im, 5, 0, 238, 18, $color_tm, $font, /* updated */ "upd:{$time} /{$server->getGame()}");
imagettftext($im, 7, 0, 156, 17, $color_pl, $font, /* players */ "{$lgsl_config['text']['plr']}: {$server->getPlayersCount()}{$max}");
imagettftext($im, 5, 0, 238, 18, $color_tm, $font, /* updated */ "upd: {$time} / {$server->getGame()}");
}
}

Expand Down

0 comments on commit c6ec9b6

Please sign in to comment.