mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 19:33:40 +01:00
Merge branch 'gui' of https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02 into gui
This commit is contained in:
commit
008cb1ebe4
@ -120,6 +120,7 @@ public class GameSound extends AbstractAppState implements GameEventListener {
|
||||
winnerSound = loadSound(app, "Sound/Effects/winner.ogg");
|
||||
looserSound = loadSound(app, "Sound/Effects/loser.ogg");
|
||||
buttonSound = loadSound(app, "Sound/Effects/button.ogg");
|
||||
setVolume(volumeInPreferences());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -125,13 +125,13 @@ public class BuyHouse extends Dialog {
|
||||
buyHouseContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x) / 2,
|
||||
(app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y) / 2,
|
||||
8
|
||||
9
|
||||
);
|
||||
|
||||
backgroundContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x - padding) / 2,
|
||||
(app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y + padding) / 2,
|
||||
7
|
||||
8
|
||||
);
|
||||
|
||||
app.getGuiNode().attachChild(buyHouseContainer);
|
||||
|
Loading…
Reference in New Issue
Block a user