Dungeon improves:

* Dungeons: added dungeon name hint to room's game log and choices (part of #12274);
* GUI, game: added card popup hints support in feedback panel (yes/no choices);
* Images: fixed miss images for dungeons in command zone, game logs and choice dialogs;
This commit is contained in:
Oleg Agafonov 2024-09-19 13:42:23 +04:00
parent cd51954208
commit b40e7222b3
9 changed files with 94 additions and 26 deletions

View file

@ -878,7 +878,8 @@ public class CardView extends SimpleCardView {
this.displayName = name;
this.displayFullName = name;
this.rules = new ArrayList<>(emblem.getRules());
// emblem images are always with common (black) symbol
// image - emblem are always with common (black) symbol
this.frameStyle = FrameStyle.M15_NORMAL;
this.expansionSetCode = emblem.getExpansionSetCode();
this.cardNumber = emblem.getCardNumber();
@ -901,12 +902,13 @@ public class CardView extends SimpleCardView {
this.displayName = name;
this.displayFullName = name;
this.rules = new ArrayList<>(dungeon.getRules());
// emblem images are always with common (black) symbol
this.frameStyle = FrameStyle.M15_NORMAL;
// image
this.frameStyle = FrameStyle.M15_NORMAL; // TODO: needs in full art? Test dungeon choose dialog
this.expansionSetCode = dungeon.getExpansionSetCode();
this.cardNumber = "";
this.imageFileName = "";
this.imageNumber = 0;
this.imageFileName = dungeon.getImageFileName();
this.imageNumber = dungeon.getImageNumber();
this.rarity = Rarity.SPECIAL;
this.playableStats = dungeon.playableStats.copy();
@ -923,7 +925,8 @@ public class CardView extends SimpleCardView {
this.displayName = name;
this.displayFullName = name;
this.rules = new ArrayList<>(plane.getRules());
// Display the plane in landscape (similar to Fused cards)
// image - display the plane in landscape (similar to Fused cards)
this.rotate = true;
this.frameStyle = FrameStyle.M15_NORMAL;
this.expansionSetCode = plane.getExpansionSetCode();
@ -947,6 +950,8 @@ public class CardView extends SimpleCardView {
this.displayFullName = name;
this.rules = new ArrayList<>();
this.rules.add(stackAbility.getRule(designation.getName()));
// image
this.frameStyle = FrameStyle.M15_NORMAL;
this.cardNumber = designation.getCardNumber();
this.expansionSetCode = designation.getExpansionSetCode();
@ -954,6 +959,7 @@ public class CardView extends SimpleCardView {
this.imageFileName = "";
this.imageNumber = 0;
this.rarity = Rarity.SPECIAL;
// no playable/chooseable marks for designations
}