mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
attempt replay fixes
This commit is contained in:
parent
5e6e985dbf
commit
a686be2ffd
2 changed files with 3 additions and 3 deletions
|
|
@ -2359,7 +2359,8 @@ class MarbleWorld extends Scheduler {
|
|||
} else {
|
||||
nextLevelCode();
|
||||
}
|
||||
}, mission, this.gameMode.getFinishScore(), this.gameMode.getScoreType());
|
||||
}, mission, this.gameMode.getFinishScore(),
|
||||
this.gameMode.getScoreType(), this.replay.write());
|
||||
MarbleGame.canvas.pushDialog(egg);
|
||||
this.setCursorLock(false);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class EndGameGui extends GuiImage {
|
|||
var scoreSubmitted:Bool = false;
|
||||
|
||||
public function new(continueFunc:GuiControl->Void, restartFunc:GuiControl->Void, nextLevelFunc:GuiControl->Void, mission:Mission, score:Float,
|
||||
scoreType:ScoreType) {
|
||||
scoreType:ScoreType, replayData:haxe.io.Bytes) {
|
||||
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
|
||||
super(res);
|
||||
this.horizSizing = Width;
|
||||
|
|
@ -189,7 +189,6 @@ class EndGameGui extends GuiImage {
|
|||
continueFunc(nextButton);
|
||||
}
|
||||
bottomBar.addChild(nextButton);
|
||||
var replayData = MarbleGame.instance.world.replay.write();
|
||||
var submitScore = () -> {
|
||||
var lbScoreValue = score;
|
||||
if (scoreType == Score)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue