From cf7054935b281ee372ddbd106d2b54b3ffd5894c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 28 Apr 2011 21:03:46 +0200 Subject: [PATCH] =?UTF-8?q?Utilisation=20de=20minScore=20et=20maxScore=20d?= =?UTF-8?q?ans=20le=20jeu=20(javascript)=20au=20lieu=20de=20-5=20et=2010?= =?UTF-8?q?=20cod=C3=A9s=20en=20dur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/serveur/php/ressources/pticlic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/serveur/php/ressources/pticlic.js b/code/serveur/php/ressources/pticlic.js index 8346bc7..e6797f5 100644 --- a/code/serveur/php/ressources/pticlic.js +++ b/code/serveur/php/ressources/pticlic.js @@ -443,7 +443,7 @@ score.ui = function () { $("#score .scores").empty(); $("#score .scoreTotal") .text(state.game.scoreTotal) - .goodBad(-50,100,{r:255,g:0,b:0},{r:0,g:192,b:0}); + .goodBad(state.game.minScore*state.game.cloud.length,state.game.maxScore*state.game.cloud.length,{r:255,g:0,b:0},{r:0,g:192,b:0}); $.each(state.game.cloud, function(i,e) { try { $("#templates .scoreLine") @@ -453,7 +453,7 @@ score.ui = function () { .end() .find(".score") .text(e.score) - .goodBad(-5,10,{r:255,g:0,b:0},{r:0,g:192,b:0}) + .goodBad(state.game.minScore,state.game.maxScore,{r:255,g:0,b:0},{r:0,g:192,b:0}) .end() .appendTo("#score .scores"); } catch(e) {alert("Error anonymous 1 in score.ui");alert(e);}