File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,17 @@ public class StartUp extends Transitionable {
85
85
m. p1. name = p1Name. getText();
86
86
m. p2. name = p2Name. getText();
87
87
88
+ p1Name. remove();
89
+ p2Name. remove();
90
+
88
91
// Begin transitioning!
89
92
trans = true ;
93
+
90
94
}
91
95
}
92
96
93
97
protected void onTransOutBegin () {
94
- p1Name. remove();
95
- p2Name. remove();
98
+ onDone();
96
99
}
97
100
98
101
private class StartGameBtn extends Btn {
Original file line number Diff line number Diff line change @@ -53,11 +53,7 @@ public abstract class Transitionable extends Obj {
53
53
54
54
if (m. transIn. done && m. transOut. done) {
55
55
// When the trans is done
56
- trans = false ;
57
- done = true ;
58
- middle = false ;
59
-
60
- clean();
56
+ onDone();
61
57
}
62
58
}
63
59
@@ -66,6 +62,14 @@ public abstract class Transitionable extends Obj {
66
62
m. transOut. reset();
67
63
}
68
64
65
+ protected void onDone () {
66
+ trans = false ;
67
+ done = true ;
68
+ middle = false ;
69
+
70
+ clean();
71
+ }
72
+
69
73
// Method whitch inheriting classes should implement
70
74
// for cleanup
71
75
protected void onTransOutBegin () {}
You can’t perform that action at this time.
0 commit comments