Changeset 361 for binary-improvements


Ignore:
Timestamp:
Oct 2, 2020, 2:10:34 PM (4 years ago)
Author:
alloc
Message:

Web map: Updated inventory viewer for the 10 slots toolbelt, switched order of coordinate display to match game (both provided by BadPlayer)

Location:
binary-improvements/webserver/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/webserver/js/inventory_dialog.js

    r345 r361  
    33var BAG_COLS = 9;
    44var BAG_ROWS = 5;
    5 var BELT_COLS = 8;
     5var BELT_COLS = 10;
    66var INV_ITEM_WIDTH = 58;
    77var INV_ITEM_HEIGHT = 40;
  • binary-improvements/webserver/js/leaflet.control.coordinates.js

    r244 r361  
    88                    container = L.DomUtil.create('div', name + ' webmap-control');
    99       
    10                 container.innerHTML = "Mouse pos: - N / - E<br/>Last click: - N / - E"
     10                container.innerHTML = "Mouse pos: -E / - N<br/>Last click: -E / - N"
    1111                L.DomEvent.on (container, 'mousemove', L.DomEvent.stopPropagation);
    1212
     
    4646        _formatCoord: function(latlng) {
    4747                if (latlng == false)
    48                         return "- N / - E";
     48                        return "-E / - N";
    4949                else
    5050                        return "" +
    51                                 Math.abs(latlng.lng).toFixed(0) + (latlng.lng>=0 ? " N" : " S") + " / " +
    52                                 Math.abs(latlng.lat).toFixed(0) + (latlng.lat>=0 ? " E" : " W");
     51                                Math.abs(latlng.lng).toFixed(0) + (latlng.lng>=0 ? " E" : " W") + " / " +
     52                                Math.abs(latlng.lat).toFixed(0) + (latlng.lat>=0 ? " N" : " S");
    5353        },
    5454       
Note: See TracChangeset for help on using the changeset viewer.