From 484e2ca85f2b09c73243281a91d7de2aa4d6b1ee Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Tue, 26 May 2015 20:18:20 -0700 Subject: [PATCH] Split utility mounts and hard points, add refuel time --- app/js/app.js | 2 +- app/js/directives/directive-slot-internal.js | 3 ++- app/less/outfit.less | 8 +------- app/views/_slot-internal.html | 2 +- app/views/page-outfit.html | 14 ++++++++++++-- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/app/js/app.js b/app/js/app.js index 931ca90b..46e1669d 100755 --- a/app/js/app.js +++ b/app/js/app.js @@ -30,7 +30,7 @@ angular.module('app', ['ngTouch', 'ui.router', 'ct.ui.router.extras.sticky', 'ui $rootScope.fRound4 = function(d) { return d3.round(d, 4); }; $rootScope.fPct = d3.format('.2%'); $rootScope.fRPct = d3.format('%'); - $rootScope.fTime = function(d) { return Math.floor(d/60) + ":" + ("00" + (d%60)).substr(-2,2); }; + $rootScope.fTime = function(d) { return Math.floor(d/60) + ":" + ("00" + Math.floor(d%60)).substr(-2,2); }; // Global Event Listeners $doc.bind('keyup', function (e) { diff --git a/app/js/directives/directive-slot-internal.js b/app/js/directives/directive-slot-internal.js index f7336149..37f6da63 100755 --- a/app/js/directives/directive-slot-internal.js +++ b/app/js/directives/directive-slot-internal.js @@ -4,7 +4,8 @@ angular.module('app').directive('slotInternal', ['$rootScope', function ($r) { scope:{ c: '=slot', lbl: '=', - opts: '=' + ft: '=', + }, templateUrl: 'views/_slot-internal.html', link: function(scope) { diff --git a/app/less/outfit.less b/app/less/outfit.less index fcb22645..6ef57d5d 100755 --- a/app/less/outfit.less +++ b/app/less/outfit.less @@ -45,14 +45,8 @@ } } -#hardpoints { - .slot:nth-child(2n) { - clear: left; - margin-right: 0.5em; - } -} -#standard { +#hardpoints, #utility, #standard { margin-right: 0.3em; .slot { clear: left; diff --git a/app/views/_slot-internal.html b/app/views/_slot-internal.html index 547fa7ae..c3f499d4 100755 --- a/app/views/_slot-internal.html +++ b/app/views/_slot-internal.html @@ -7,7 +7,7 @@
Opt: {{c.c.optmass}} T
Max: {{c.c.maxmass}} T
{{c.c.bins}} Bins
-
Rate: {{$r.fRound4(c.c.rate/1000)}} T/s
+
Rate: {{c.c.rate}} Kg/s   Refuel Time: {{$r.fTime(ft.c.capacity * 1000 / c.c.rate)}}
Ammo: {{c.c.ammo}}
Cells: {{c.c.cells}}
Recharge: {{c.c.recharge}} Mj
diff --git a/app/views/page-outfit.html b/app/views/page-outfit.html index b8054e02..f417b20e 100755 --- a/app/views/page-outfit.html +++ b/app/views/page-outfit.html @@ -146,7 +146,17 @@

HardPoints

-
+
+
+
+
+
+
+
+ +
+

Utility Mounts

+
@@ -157,7 +167,7 @@

Internal Compartments

-
+