diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/images/errata-vertical.png b/gemp-lotr/gemp-lotr-web/src/main/webapp/images/errata-vertical.png new file mode 100644 index 000000000..624829247 Binary files /dev/null and b/gemp-lotr/gemp-lotr-web/src/main/webapp/images/errata-vertical.png differ diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deckBuildingUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deckBuildingUi.js index 93569ef28..e2452fc40 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deckBuildingUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deckBuildingUi.js @@ -145,10 +145,10 @@ var GempLotrDeckBuildingUI = Class.extend({ if (confirm("Do you wish to save this deck?")) that.saveDeck(false); }, { - "404": function() { - alert("Couldn't find the deck to rename on the server."); - } - }); + "404": function() { + alert("Couldn't find the deck to rename on the server."); + } + }); } }); @@ -244,11 +244,11 @@ var GempLotrDeckBuildingUI = Class.extend({ this.infoDialog = $("
") .dialog({ - autoOpen: false, - closeOnEscape: true, - resizable: false, - title: "Card information" - }); + autoOpen: false, + closeOnEscape: true, + resizable: false, + title: "Card information" + }); var swipeOptions = { threshold: 20, @@ -296,14 +296,14 @@ var GempLotrDeckBuildingUI = Class.extend({ if (that.deckListDialog == null) { that.deckListDialog = $("") .dialog({ - title: "Your stored decks", - autoOpen: false, - closeOnEscape: true, - resizable: true, - width: 400, - height: 400, - modal: true - }); + title: "Your stored decks", + autoOpen: false, + closeOnEscape: true, + resizable: true, + width: 400, + height: 400, + modal: true + }); } that.deckListDialog.html(""); @@ -418,14 +418,14 @@ var GempLotrDeckBuildingUI = Class.extend({ if (this.selectionDialog == null) { this.selectionDialog = $("") .dialog({ - title: "Choose one", - autoOpen: false, - closeOnEscape: true, - resizable: true, - width: 400, - height: 200, - modal: true - }); + title: "Choose one", + autoOpen: false, + closeOnEscape: true, + resizable: true, + width: 400, + height: 200, + modal: true + }); this.selectionGroup = new NormalCardGroup(this.selectionDialog, function(card) { return true; @@ -440,7 +440,7 @@ var GempLotrDeckBuildingUI = Class.extend({ var blueprintIds = selection.split("|"); for (var i = 0; i < blueprintIds.length; i++) { var card = new Card(blueprintIds[i], "selection", "selection" + i, "player"); - var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), false, card.isPack()); + var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), false, card.isPack(), card.hasErrata()); cardDiv.data("card", card); cardDiv.addClass("cardToSelect"); this.selectionDialog.append(cardDiv); @@ -565,7 +565,7 @@ var GempLotrDeckBuildingUI = Class.extend({ addCardToContainer: function(blueprintId, zone, container, tokens) { var card = new Card(blueprintId, zone, "deck", "player"); - var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), tokens, card.isPack()); + var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), tokens, card.isPack(), card.hasErrata()); cardDiv.data("card", card); container.append(cardDiv); return cardDiv; @@ -662,10 +662,10 @@ var GempLotrDeckBuildingUI = Class.extend({ that.checkDeckStatsDirty(); }, that.checkDirtyInterval); }, { - "400": function() { - alert("Invalid deck for getting stats."); - } - }); + "400": function() { + alert("Invalid deck for getting stats."); + } + }); } else { $("#deckStats").html("Deck has no Ring, Ring-bearer or all 9 sites"); setTimeout( @@ -753,14 +753,14 @@ var GempLotrDeckBuildingUI = Class.extend({ if (blueprintId.substr(0, 3) == "(S)") { var card = new Card(blueprintId, "pack", "collection", "player"); card.tokens = {"count":count}; - var cardDiv = createCardDiv(card.imageUrl, null, false, true, true); + var cardDiv = createCardDiv(card.imageUrl, null, false, true, true, false); cardDiv.data("card", card); cardDiv.data("selection", contents); cardDiv.addClass("selectionInCollection"); } else { var card = new Card(blueprintId, "pack", "collection", "player"); card.tokens = {"count":count}; - var cardDiv = createCardDiv(card.imageUrl, null, false, true, true); + var cardDiv = createCardDiv(card.imageUrl, null, false, true, true, false); cardDiv.data("card", card); cardDiv.addClass("packInCollection"); } @@ -775,7 +775,7 @@ var GempLotrDeckBuildingUI = Class.extend({ countInDeck++; }); card.tokens = {"count":count - countInDeck}; - var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil()); + var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), true, false, card.hasErrata()); cardDiv.data("card", card); cardDiv.addClass("cardInCollection"); this.normalCollectionDiv.append(cardDiv); diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deliveryService.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deliveryService.js index 3b0cb481c..65b10a8b3 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deliveryService.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/deliveryService.js @@ -48,7 +48,7 @@ function deliveryService(xml) { var count = packElem.getAttribute("count"); var card = new Card(blueprintId, "delivery", "deliveryPack" + i, "player"); card.tokens = {"count":count}; - var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), true, true); + var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), true, true, false); cardDiv.data("card", card); deliveryDialogs[collectionName].append(cardDiv); } @@ -60,7 +60,7 @@ function deliveryService(xml) { var count = cardElem.getAttribute("count"); var card = new Card(blueprintId, "delivery", "deliveryCard" + i, "player"); card.tokens = {"count":count}; - var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil()); + var cardDiv = createCardDiv(card.imageUrl, null, card.isFoil(), true, false, card.hasErrata()); cardDiv.data("card", card); deliveryDialogs[collectionName].append(cardDiv); } diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameAnimations.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameAnimations.js index 9fba37330..0d00ad602 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameAnimations.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameAnimations.js @@ -218,7 +218,7 @@ var GameAnimations = Class.extend({ else card = new Card(blueprintId, zone, cardId, participantId); - var cardDiv = that.game.createCardDiv(card, null, card.isFoil()); + var cardDiv = that.game.createCardDiv(card, null, card.isFoil(), card.hasErrata()); if (zone == "DISCARD") that.game.discardPileDialogs[participantId].append(cardDiv); else if (zone == "DEAD") diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameUi.js index e5d10e664..7d60bbd90 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-002/gameUi.js @@ -659,21 +659,21 @@ var GempLotrGameUI = Class.extend({ initializeDialogs: function() { this.smallDialog = $("") .dialog({ - autoOpen: false, - closeOnEscape: false, - resizable: false, - width: 400, - height: 200 - }); + autoOpen: false, + closeOnEscape: false, + resizable: false, + width: 400, + height: 200 + }); this.cardActionDialog = $("") .dialog({ - autoOpen: false, - closeOnEscape: false, - resizable: true, - width: 600, - height: 300 - }); + autoOpen: false, + closeOnEscape: false, + resizable: true, + width: 600, + height: 300 + }); var that = this; @@ -688,11 +688,11 @@ var GempLotrGameUI = Class.extend({ this.infoDialog = $("") .dialog({ - autoOpen: false, - closeOnEscape: true, - resizable: false, - title: "Card information" - }); + autoOpen: false, + closeOnEscape: true, + resizable: false, + title: "Card information" + }); var swipeOptions = { threshold: 20, @@ -1203,12 +1203,12 @@ var GempLotrGameUI = Class.extend({ if (!this.replayMode) { this.smallDialog.dialog("option", "buttons", - { - "OK": function() { - $(this).dialog("close"); - that.decisionFunction(id, $("#integerDecision").val()); - } - }); + { + "OK": function() { + $(this).dialog("close"); + that.decisionFunction(id, $("#integerDecision").val()); + } + }); } $("#integerDecision").SpinnerControl({ type: 'range', @@ -1246,12 +1246,12 @@ var GempLotrGameUI = Class.extend({ if (!this.replayMode) { this.smallDialog.dialog("option", "buttons", - { - "OK": function() { - that.smallDialog.dialog("close"); - that.decisionFunction(id, $("#multipleChoiceDecision").val()); - } - }); + { + "OK": function() { + that.smallDialog.dialog("close"); + that.decisionFunction(id, $("#multipleChoiceDecision").val()); + } + }); } } else { this.smallDialog.append("
