Bugfixes: ObjectController-Toolbar, Emitter ingame, Esc-Shortcut
ObjectController: Welt-Toolbar bleibt beim F7-Öffnen sichtbar (kein eigener Toolbar mehr). Modus wechselt automatisch: Platzieren wenn Modell/Ordner ausgewählt, sonst Bearbeiten. Neuer Button + Esc-Shortcut zum Aufheben der Platzierungs-Auswahl. WorldScene: EmitterSystem eingebunden — platzierte Emitter werden jetzt auch im Spiel geladen und proximity-basiert aktiviert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -104,6 +104,7 @@ public class WorldScene extends BaseAppState {
|
||||
private de.blight.game.state.RiverSoundState riverSound;
|
||||
private de.blight.game.state.AmbientSoundSystem ambientSounds;
|
||||
private de.blight.game.state.MusicSystem musicSystem;
|
||||
private de.blight.game.state.EmitterSystem emitterSystem;
|
||||
private de.blight.game.audio.FootstepSystem footstepSystem;
|
||||
private de.blight.game.state.DrownState drownState;
|
||||
private WaterInteractionState waterInteractionState;
|
||||
@@ -277,6 +278,8 @@ public class WorldScene extends BaseAppState {
|
||||
BlightGame.status("Lade Welt-Objekte...");
|
||||
app.getStateManager().attach(new RiverState());
|
||||
app.getStateManager().attach(new de.blight.game.state.WaterfallState());
|
||||
emitterSystem = new de.blight.game.state.EmitterSystem();
|
||||
app.getStateManager().attach(emitterSystem);
|
||||
WorldObjectsState worldObjects = new WorldObjectsState();
|
||||
worldObjects.setLodFactor((float) graphicsSettings.viewDistance.lod0Range);
|
||||
app.getStateManager().attach(worldObjects);
|
||||
@@ -467,6 +470,7 @@ public class WorldScene extends BaseAppState {
|
||||
if (riverSound != null) riverSound.setPlayerPosition(pos);
|
||||
if (ambientSounds != null) ambientSounds.setPlayerPosition(pos);
|
||||
if (musicSystem != null) musicSystem.setPlayerPosition(pos);
|
||||
if (emitterSystem != null) emitterSystem.setPlayerPosition(pos);
|
||||
}
|
||||
|
||||
if (musicSystem != null && dayNight != null)
|
||||
|
||||
Reference in New Issue
Block a user