add direction arrows after compas direction
This commit is contained in:
parent
a525fb5144
commit
4f8164ffd7
@ -111,7 +111,7 @@ window.getResonatorDetails = function(d) {
|
|||||||
// rotates clockwise. So, last one is 7 (southeast).
|
// rotates clockwise. So, last one is 7 (southeast).
|
||||||
window.renderResonatorDetails = function(slot, level, nrg, dist, nick) {
|
window.renderResonatorDetails = function(slot, level, nrg, dist, nick) {
|
||||||
if(level === 0) {
|
if(level === 0) {
|
||||||
var meter = '<span class="meter" title="octant:\t' + OCTANTS[slot] + '"></span>';
|
var meter = '<span class="meter" title="octant:\t' + OCTANTS[slot] + ' ' + OCTANTS_ARROW[slot] + '"></span>';
|
||||||
} else {
|
} else {
|
||||||
var max = RESO_NRG[level];
|
var max = RESO_NRG[level];
|
||||||
var fillGrade = nrg/max*100;
|
var fillGrade = nrg/max*100;
|
||||||
@ -120,7 +120,7 @@ window.renderResonatorDetails = function(slot, level, nrg, dist, nick) {
|
|||||||
+ 'level:\t' + level + '\n'
|
+ 'level:\t' + level + '\n'
|
||||||
+ 'distance:\t' + dist + 'm\n'
|
+ 'distance:\t' + dist + 'm\n'
|
||||||
+ 'owner:\t' + nick + '\n'
|
+ 'owner:\t' + nick + '\n'
|
||||||
+ 'octant:\t' + OCTANTS[slot];
|
+ 'octant:\t' + OCTANTS[slot] + ' ' + OCTANTS_ARROW[slot];
|
||||||
|
|
||||||
var style = 'width:'+fillGrade+'%; background:'+COLORS_LVL[level]+';';
|
var style = 'width:'+fillGrade+'%; background:'+COLORS_LVL[level]+';';
|
||||||
|
|
||||||
|
1
main.js
1
main.js
@ -199,6 +199,7 @@ window.MAX_XM_PER_LEVEL = [0, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000];
|
|||||||
window.MIN_AP_FOR_LEVEL = [0, 10000, 30000, 70000, 150000, 300000, 600000, 1200000];
|
window.MIN_AP_FOR_LEVEL = [0, 10000, 30000, 70000, 150000, 300000, 600000, 1200000];
|
||||||
window.HACK_RANGE = 40; // in meters, max. distance from portal to be able to access it
|
window.HACK_RANGE = 40; // in meters, max. distance from portal to be able to access it
|
||||||
window.OCTANTS = ['E', 'NE', 'N', 'NW', 'W', 'SW', 'S', 'SE'];
|
window.OCTANTS = ['E', 'NE', 'N', 'NW', 'W', 'SW', 'S', 'SE'];
|
||||||
|
window.OCTANTS_ARROW = ['→', '↗', '↑', '↖', '←', '↙', '↓', '↘'];
|
||||||
window.DESTROY_RESONATOR = 75; //AP for destroying portal
|
window.DESTROY_RESONATOR = 75; //AP for destroying portal
|
||||||
window.DESTROY_LINK = 187; //AP for destroying link
|
window.DESTROY_LINK = 187; //AP for destroying link
|
||||||
window.DESTROY_FIELD = 750; //AP for destroying field
|
window.DESTROY_FIELD = 750; //AP for destroying field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user