26 addCostume(
new Costume(
"title",
"dndiablo/title.png", 0, 0));
30 this.whenIReceive(
"menuoff", () -> {
33 this.whenScaleChanged((old, newscale) -> {
34 double scfa = newscale / (old+0.0);
35 this.goTo(this.getX() * scfa, this.getY() * scfa);
36 this.setScaleX(this.getScaleX() * scfa);
37 this.setScaleY(this.getScaleY() * scfa);
48 addCostume(
new Costume(
"play",
"dndiablo/play.png", 0, 0));
52 this.whenIReceive(
"menuoff", () -> {
55 this.whenClicked(() -> {
61 this.whenScaleChanged((old, newscale) -> {
62 double scfa = newscale / (old+0.0);
63 this.goTo(this.getX() * scfa, this.getY() * scfa);
64 this.setScaleX(this.getScaleX() * scfa);
65 this.setScaleY(this.getScaleY() * scfa);
76 addCostume(
new Costume(
"play",
"dndiablo/charactercreation.png", 0, 0));
80 this.whenIReceive(
"menuoff", () -> {
84 this.whenClicked(() -> {
90 this.whenScaleChanged((old, newscale) -> {
91 double scfa = newscale / (old+0.0);
92 this.goTo(this.getX() * scfa, this.getY() * scfa);
93 this.setScaleX(this.getScaleX() * scfa);
94 this.setScaleY(this.getScaleY() * scfa);