Fixing more display issues.
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user