Prevent flickering when multiple dialogs appear in quick succession

This commit is contained in:
drdev
2014-10-03 13:25:52 +00:00
parent 1d19df364f
commit 9f25b55cfb
6 changed files with 22 additions and 19 deletions

View File

@@ -823,8 +823,8 @@ public class CardView extends GameEntityView {
/**
* @return the imageKey
*/
public String getImageKey() {
return mayBeShown ? imageKey : ImageKeys.HIDDEN_CARD;
public String getImageKey(boolean ignoreMayBeShown) {
return mayBeShown || ignoreMayBeShown ? imageKey : ImageKeys.HIDDEN_CARD;
}
/**