From 17a014b267696ff02c80ddd15d8e6105ff9fb8c4 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sat, 28 May 2016 17:29:35 +0200 Subject: dx: Switch base map and adjust placement I think we can say this Fixes #53 and Fixes #52 still should add support for making it configurable, that that's not a must for DX16 to take place. --- include/nms/util.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/nms/util.pm b/include/nms/util.pm index f79df50..33c8735 100644 --- a/include/nms/util.pm +++ b/include/nms/util.pm @@ -67,35 +67,35 @@ sub guess_placement_dx { my ($e, $s) = ($1, $2); $src = "main"; - $x = int(1523 - (($e-1)/2) * 61); + $x = int(1850 - (($e-1)/2) * 63); $y = undef; if ($s > 1) { - $y = 137; + $y = 160; } else { - $y = 410; + $y = 480; } $xx = $x + 32; - $yy = $y + 200; + $yy = $y + 220; } elsif ($name =~ /^core$/) { $src = "core"; - $x = 1100; - $y = 650; + $x = 1360; + $y = 770; $xx = $x + 200; $yy = $y + 100; } elsif ($name =~ /^noc$/) { $src = "noc"; - $x = 300; - $y = 800; + $x = 132; + $y = 880; $xx = $x + 230; $yy = $y + 40; } elsif ($name =~ /^distro(\d)$/) { my $d = ($1); $src = "distro"; - $x = 1200 - $d * 700; - $y = 355; + $x = 1550 - $d * 700; + $y = 410; $xx = $x + 230; $yy = $y + 40; } else { -- cgit v1.2.3