mirror of
https://inf.pirckheimer-gymnasium.de/kebab/kebab
synced 2026-08-26 16:31:23 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6cd8ee4c1 |
@@ -3,6 +3,8 @@ package project.scenes;
|
|||||||
import pi.Camera;
|
import pi.Camera;
|
||||||
import pi.Scene;
|
import pi.Scene;
|
||||||
import pi.Text;
|
import pi.Text;
|
||||||
|
import pi.actor.Image;
|
||||||
|
|
||||||
import static pi.Controller.fonts;
|
import static pi.Controller.fonts;
|
||||||
import java.awt.Font;
|
import java.awt.Font;
|
||||||
|
|
||||||
@@ -10,19 +12,29 @@ public class LoadingScene extends Scene
|
|||||||
{
|
{
|
||||||
private Text title;
|
private Text title;
|
||||||
private Text subtitle;
|
private Text subtitle;
|
||||||
|
private String subtitle_content;
|
||||||
|
private Image tatli;
|
||||||
|
|
||||||
public LoadingScene() {
|
public LoadingScene() {
|
||||||
title = new Text("Royal Kebab");
|
title = new Text("Royal Kebab");
|
||||||
subtitle = new Text("Loading...");
|
subtitle_content = "Loading";
|
||||||
|
subtitle = new Text(subtitle_content);
|
||||||
|
tatli = new Image("images/kebab-pack/tatli-ekmek-256x256.png");
|
||||||
|
|
||||||
|
|
||||||
Font font = fonts.get("Fonts/BitcountGridDouble-Regular.ttf");
|
Font font = fonts.get("Fonts/BitcountGridDouble-Regular.ttf");
|
||||||
title.anchor(0, 0);
|
title.center(0, 3);
|
||||||
title.font(font);
|
title.font(font);
|
||||||
subtitle.anchor(0, -2);
|
|
||||||
|
subtitle.center(0, -3);
|
||||||
subtitle.font(font);
|
subtitle.font(font);
|
||||||
|
|
||||||
|
tatli.center(0,0);
|
||||||
|
|
||||||
add(title);
|
add(title);
|
||||||
add(subtitle);
|
add(subtitle);
|
||||||
|
add(tatli);
|
||||||
|
|
||||||
|
repeat(0.3, (counter) -> subtitle.content(subtitle_content + ".".repeat(counter)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user