From a267b561f392c2f3355b4f2e8c4536501e8d327d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 26 Oct 2016 08:05:15 -0600 Subject: Minor UI tweaks. Humans start at 1, not zero. --- js/lost.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/js/lost.js b/js/lost.js index 022c10b..e2cfda5 100644 --- a/js/lost.js +++ b/js/lost.js @@ -829,10 +829,15 @@ function RenderCanvas2D( rMap, params ) // eMazeContainer, eUIContainer ) this.iBorder = 3; this.iIconSize = Math.floor( - ((iTargetSize/this.rMap.getSize( 0 ))-3-(this.iIconSquare*3))/this.iIconSquare + ( + (iTargetSize/this.rMap.getSize( 0 )) - + 3 - (this.iIconSquare*3) + )/this.iIconSquare ); if( this.iIconSize > 15 ) this.iIconSize = 15; + else if( this.iIconSize < 5 ) + this.iIconSize = 5; this.iCellSize = this.iBorder + @@ -1154,10 +1159,10 @@ RenderCanvas2D.prototype.updateReadout = function updateReadout() if( this.rMap.getDims() <= 2 ) return; - let text = 'Floor: ' + this.rMap.pPlayer.get( 2 ); + let text = 'Floor: ' + (this.rMap.pPlayer.get( 2 )+1); for( let j = 3; j < this.rMap.getDims(); j++ ) { - text += ', ' + this.rMap.pPlayer.get( j ) + text += ', ' + (this.rMap.pPlayer.get( j )+1); } this.readoutNode.textContent = text; -- cgit v1.2.3