aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms
diff options
context:
space:
mode:
authorroot <root@colazero.tele.tg18.gathering.org>2018-03-26 13:04:05 +0200
committerroot <root@colazero.tele.tg18.gathering.org>2018-03-26 13:04:05 +0200
commitbe54730288b9925003e88788e65f11199cc8292b (patch)
treef5a96e9b34fa43fb1fc36cc6923c346d75ed9f5f /include/nms
parentd6a5794527b555dca86be61c757d24bb86930dd3 (diff)
Mange dager med rot på TG18
Diffstat (limited to 'include/nms')
-rw-r--r--include/nms/util.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/nms/util.pm b/include/nms/util.pm
index 511da33..69f5392 100644
--- a/include/nms/util.pm
+++ b/include/nms/util.pm
@@ -91,10 +91,11 @@ sub guess_placement_dx {
$y = 880;
$xx = $x + 230;
$yy = $y + 40;
- } elsif ($name =~ /^distro(\d)$/) {
+ } elsif ($name =~ /^s(\d).floor$/) {
my $d = ($1);
+ $d -= 1;
$src = "distro";
- $x = 1550 - $d * 700;
+ $x = 1550 - $d * 600;
$y = 410;
$xx = $x + 230;
$yy = $y + 40;
@@ -180,11 +181,12 @@ sub guess_placement_tg {
$y = int(759 + 20.5 * $s);
$xx = $x + 65;
$yy = $y + 14;
- } elsif ($name =~ /^distro(\d)/) {
+ } elsif ($name =~ /^s(\d).floor/) {
my $d = ($1);
$src = "distro";
- $x = 292 + $d * 165;
- $y = 415;
+ $d -= 1;
+ $x = 260 + $d * 145;
+ $y = 417;
$xx = $x + 130;
$yy = $y + 20;
} else {