mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
Rename vars
This commit is contained in:
@@ -69,12 +69,12 @@ public class CPicture implements ICDoc {
|
||||
*/
|
||||
void showCard(final CardView c, final boolean isInAltState, final boolean mayView, final boolean mayFlip) {
|
||||
final CardStateView toShow = c != null && mayView ? c.getState(isInAltState) : null;
|
||||
boolean showFlipped = c != null && c.isFlipped();
|
||||
boolean displayFlipped = c != null && c.isFlipped();
|
||||
if (c != null && c.isFlipCard() && isInAltState) {
|
||||
showFlipped = !showFlipped;
|
||||
displayFlipped = !displayFlipped;
|
||||
}
|
||||
flipIndicator.setVisible(toShow != null && mayFlip);
|
||||
picturePanel.setCard(toShow, mayView, showFlipped);
|
||||
picturePanel.setCard(toShow, mayView, displayFlipped);
|
||||
zoomer.setCard(toShow, mayFlip);
|
||||
}
|
||||
|
||||
|
||||
@@ -551,9 +551,9 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
||||
generateBackFace(r, t, false);
|
||||
}
|
||||
|
||||
private void generateBackFace(Reward r, Texture t, boolean mustFlip) {
|
||||
private void generateBackFace(Reward r, Texture t, boolean displayFlipped) {
|
||||
try {
|
||||
alternateToolTipImage = new RewardImage(processDrawable(t, mustFlip));
|
||||
alternateToolTipImage = new RewardImage(processDrawable(t, displayFlipped));
|
||||
|
||||
if (holdTooltip != null) {
|
||||
if (holdTooltip.tooltip_actor.getChildren().size <= 2) {
|
||||
@@ -635,9 +635,9 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
||||
return processDrawable(texture, false);
|
||||
}
|
||||
|
||||
private TextureRegionDrawable processDrawable(Texture texture, boolean mustFlip) {
|
||||
private TextureRegionDrawable processDrawable(Texture texture, boolean displayFlipped) {
|
||||
TextureRegion textureRegion = ImageCache.getInstance().croppedBorderImage(texture);
|
||||
if (mustFlip) {
|
||||
if (displayFlipped) {
|
||||
textureRegion.flip(true, true);
|
||||
}
|
||||
TextureRegionDrawable drawable = new TextureRegionDrawable(textureRegion);
|
||||
|
||||
Reference in New Issue
Block a user