mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +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 {
|
} else {
|
||||||
nextLevelCode();
|
nextLevelCode();
|
||||||
}
|
}
|
||||||
}, mission, this.gameMode.getFinishScore(), this.gameMode.getScoreType());
|
}, mission, this.gameMode.getFinishScore(),
|
||||||
|
this.gameMode.getScoreType(), this.replay.write());
|
||||||
MarbleGame.canvas.pushDialog(egg);
|
MarbleGame.canvas.pushDialog(egg);
|
||||||
this.setCursorLock(false);
|
this.setCursorLock(false);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class EndGameGui extends GuiImage {
|
||||||
var scoreSubmitted:Bool = false;
|
var scoreSubmitted:Bool = false;
|
||||||
|
|
||||||
public function new(continueFunc:GuiControl->Void, restartFunc:GuiControl->Void, nextLevelFunc:GuiControl->Void, mission:Mission, score:Float,
|
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();
|
var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile();
|
||||||
super(res);
|
super(res);
|
||||||
this.horizSizing = Width;
|
this.horizSizing = Width;
|
||||||
|
|
@ -189,7 +189,6 @@ class EndGameGui extends GuiImage {
|
||||||
continueFunc(nextButton);
|
continueFunc(nextButton);
|
||||||
}
|
}
|
||||||
bottomBar.addChild(nextButton);
|
bottomBar.addChild(nextButton);
|
||||||
var replayData = MarbleGame.instance.world.replay.write();
|
|
||||||
var submitScore = () -> {
|
var submitScore = () -> {
|
||||||
var lbScoreValue = score;
|
var lbScoreValue = score;
|
||||||
if (scoreType == Score)
|
if (scoreType == Score)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue