added pictures and popups fixed

This commit is contained in:
Tamino Mueller 2024-11-24 22:42:32 +01:00
parent 8df859bbef
commit 160873e2cc
4 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public class LoserPopUp extends SimpleDialog {
inputContainer.addChild(new Label("Die nächste Runde wird besser!")); inputContainer.addChild(new Label("Die nächste Runde wird besser!"));
Label imageLabel = new Label(""); Label imageLabel = new Label("");
TextureKey key = new TextureKey("Textures//Users/taminom/Library/Mobile Documents/com~apple~CloudDocs/Dokumente/Programming/ProgProj/MonopolyLoser", true); TextureKey key = new TextureKey("Pictures/MonopolyLoser.png", true);
Texture texture = hallo.getAssetManager().loadTexture(key); Texture texture = hallo.getAssetManager().loadTexture(key);
IconComponent icon = new IconComponent(texture.toString()); // Icon mit Textur erstellen IconComponent icon = new IconComponent(texture.toString()); // Icon mit Textur erstellen
icon.setIconSize(new Vector2f(155f, 120f)); // Skalierung des Bildes icon.setIconSize(new Vector2f(155f, 120f)); // Skalierung des Bildes

View File

@ -36,7 +36,7 @@ public class WinnerPopUp extends SimpleDialog {
inputContainer.addChild(new Label("Du,bist der Monopoly Champion!!!")); inputContainer.addChild(new Label("Du,bist der Monopoly Champion!!!"));
Label imageLabel = new Label(""); Label imageLabel = new Label("");
TextureKey key = new TextureKey("Textures/Users/taminom/Library/Mobile Documents/com~apple~CloudDocs/Dokumente/Programming/ProgProj/MonopolyWinner", true); TextureKey key = new TextureKey("Pictures/MonopolyWinner.png", true);
Texture texture = appp.getAssetManager().loadTexture(key); Texture texture = appp.getAssetManager().loadTexture(key);
IconComponent icon = new IconComponent(texture.toString()); // Icon mit Textur erstellen IconComponent icon = new IconComponent(texture.toString()); // Icon mit Textur erstellen
icon.setIconSize(new Vector2f(150f, 100f)); // Skalierung des Bildes icon.setIconSize(new Vector2f(150f, 100f)); // Skalierung des Bildes

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB