Fixing more display issues.

This commit is contained in:
marcins78@gmail.com
2011-11-03 22:34:34 +00:00
parent c05b313450
commit abf09cfb40
2 changed files with 9 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ var GameAnimations = Class.extend({
getAnimationLength: function(origValue) {
if (this.game.replayMode)
return origValue * 2;
return origValue * 1;
return origValue;
},
@@ -137,6 +137,12 @@ var GameAnimations = Class.extend({
var targetCardWidth = $(targetCard).width();
var targetCardHeight = $(targetCard).height();
if (card.horizontal != $(targetCard).data("card").horizontal) {
var tempSize = targetCardHeight;
targetCardHeight = targetCardWidth;
targetCardWidth = tempSize;
}
$(cardDiv).css(
{
position: "absolute",
@@ -159,9 +165,9 @@ var GameAnimations = Class.extend({
queue: false,
complete: null});
}
setTimeout(next, that.getAnimationLength(that.cardAffectsCardDuration));
}
setTimeout(next, that.getAnimationLength(that.cardAffectsCardDuration));
}).queue(
function(next) {
$(".card").each(

View File

@@ -205,7 +205,6 @@ var GempLotrGameUI = Class.extend({
this.gameStateElem = $("<div class='ui-widget-content'></div>");
this.gameStateElem.css({"border-radius": "7px"});
this.gameStateElem.append("<b>Players:</b><br>");
for (var i = 0; i < this.allPlayerIds.length; i++) {
this.gameStateElem.append("<div class='player'>" + this.allPlayerIds[i] + "<div id='clock" + i + "' class='clock'></div>"
+ "<div class='playerStats'><div id='deck" + i + "' style='display: inline;'></div> <div id='hand" + i + "' style='display: inline;'></div> <div id='discard" + i + "' style='display: inline;'></div> <div id='deadPile" + i + "' style='display: inline;'></div></div></div>");
@@ -214,7 +213,6 @@ var GempLotrGameUI = Class.extend({
this.gameStateElem.append("<br>");
this.gameStateElem.append("<div class='twilightPool'>0</div>");
this.gameStateElem.append("<b>Phases:</b><br>");
this.gameStateElem.append("<div class='phase' id='FELLOWSHIP'>Fellowship</div>");
this.gameStateElem.append("<div class='phase' id='SHADOW'>Shadow</div>");
this.gameStateElem.append("<div class='phase' id='MANEUVER'>Maneuver</div>");