Skip to content
Snippets Groups Projects

Fixed reset view button

Merged Tam Minh Le requested to merge Reset_View into dev
6 files
+ 69
14
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -125,4 +125,16 @@ public class GameController {
public void emptyChaosGame() {
ChaosGame.getInstance().setDescription(null);
}
}
\ No newline at end of file
public void resetCanvasCoordinates() {
ChaosGameDescription description = ChaosGame.getInstance().getDescription();
Vector2D initialMin = description.getInitialMinCoords();
Vector2D initialMax = description.getInitialMaxCoords();
description.setMinCoords(initialMin);
description.setMaxCoords(initialMax);
ChaosGame.getInstance().setDescription(description);
}
}
Loading