- reinit the play again button before displaying since the image could have been a downloaded
resource
This commit is contained in:
@@ -842,6 +842,7 @@ public abstract class Getdown extends Thread
|
|||||||
Timer timer = new Timer("playAgain", true);
|
Timer timer = new Timer("playAgain", true);
|
||||||
timer.schedule(new TimerTask() {
|
timer.schedule(new TimerTask() {
|
||||||
@Override public void run () {
|
@Override public void run () {
|
||||||
|
initPlayAgain();
|
||||||
_playAgain.setVisible(true);
|
_playAgain.setVisible(true);
|
||||||
}
|
}
|
||||||
}, PLAY_AGAIN_TIME);
|
}, PLAY_AGAIN_TIME);
|
||||||
@@ -928,6 +929,16 @@ public abstract class Getdown extends Thread
|
|||||||
_patchNotes.setBounds(_ifc.patchNotes);
|
_patchNotes.setBounds(_ifc.patchNotes);
|
||||||
_patchNotes.setVisible(false);
|
_patchNotes.setVisible(false);
|
||||||
|
|
||||||
|
initPlayAgain();
|
||||||
|
|
||||||
|
// we were displaying progress while the UI wasn't up. Now that it is, whatever progress
|
||||||
|
// is left is scaled into a 0-100 DISPLAYED progress.
|
||||||
|
_uiDisplayPercent = _lastGlobalPercent;
|
||||||
|
_stepMinPercent = _lastGlobalPercent = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void initPlayAgain ()
|
||||||
|
{
|
||||||
if (_playAgain != null) {
|
if (_playAgain != null) {
|
||||||
Image image = loadImage(_ifc.playAgainImage);
|
Image image = loadImage(_ifc.playAgainImage);
|
||||||
boolean hasImage = image != null;
|
boolean hasImage = image != null;
|
||||||
@@ -947,11 +958,6 @@ public abstract class Getdown extends Thread
|
|||||||
}
|
}
|
||||||
_playAgain.setVisible(false);
|
_playAgain.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we were displaying progress while the UI wasn't up. Now that it is, whatever progress
|
|
||||||
// is left is scaled into a 0-100 DISPLAYED progress.
|
|
||||||
_uiDisplayPercent = _lastGlobalPercent;
|
|
||||||
_stepMinPercent = _lastGlobalPercent = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected RotatingBackgrounds getBackground ()
|
protected RotatingBackgrounds getBackground ()
|
||||||
|
|||||||
Reference in New Issue
Block a user