File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed
src/org/openpatch/scratch Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ classes
12
12
docs /en /public /reference
13
13
docs /en /book /changelog.md
14
14
15
+ natives
15
16
16
17
# Ignore Gradle project-specific cache directory
17
18
.gradle
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >main</name >
4
+ <comment />
5
+ <projects />
6
+ <buildSpec >
7
+ <buildCommand >
8
+ <name >org.eclipse.jdt.core.javabuilder</name >
9
+ <arguments />
10
+ </buildCommand >
11
+ </buildSpec >
12
+ <natures >
13
+ <nature >org.eclipse.jdt.core.javanature</nature >
14
+ </natures >
15
+ </projectDescription >
Original file line number Diff line number Diff line change @@ -1180,6 +1180,10 @@ public void broadcast(String message) {
1180
1180
1181
1181
public void whenIReceive (String message ) {}
1182
1182
1183
+ public void stamp () {
1184
+ this .stampToBackground ();
1185
+ }
1186
+
1183
1187
public void stampToBackground () {
1184
1188
if (this .costumes .size () > 0 ) {
1185
1189
var stamp =
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public class Applet extends PApplet {
30
30
public CopyOnWriteArrayList <StageBox > stages = new CopyOnWriteArrayList <>();
31
31
public int currentStage = -1 ;
32
32
33
+ private boolean hasLoaded = false ;
33
34
private String loadingText = "" ;
34
35
35
36
private class StageBox {
@@ -221,6 +222,7 @@ public void loadAssets() {
221
222
} catch (IOException | URISyntaxException e ) {
222
223
}
223
224
}
225
+ this .hasLoaded = true ;
224
226
}
225
227
226
228
private float loadingStatus () {
@@ -256,7 +258,7 @@ public void keyEvent(KeyEvent e) {
256
258
257
259
public void draw () {
258
260
int sizeStages = this .stages .size ();
259
- if (this .loadingStatus () < 1 ) {
261
+ if (! this . hasLoaded || this .loadingStatus () < 1 ) {
260
262
this .background (0x222222 );
261
263
this .image (this .loading , this .width / 2 , this .height / 2 );
262
264
this .textAlign (CENTER );
You can’t perform that action at this time.
0 commit comments