Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI sound adjustments. #1147

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified audio/generic/groundwar/acknowledge_1.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/acknowledge_2.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/explosion_long.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/explosion_medium.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/explosion_short.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_1.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_2.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_3.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_4.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_5.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_6.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_7.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/fire_rocket.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/ground_rocket_hit.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/groundwar_prepare.wav
Binary file not shown.
Binary file modified audio/generic/groundwar/toggle_panel.wav
Binary file not shown.
Binary file modified audio/generic/interlude/colony_ship_arrival.wav
Binary file not shown.
Binary file modified audio/generic/interlude/colony_ship_arrival_2.wav
Binary file not shown.
Binary file modified audio/generic/interlude/deploy_hubble.wav
Binary file not shown.
Binary file modified audio/generic/interlude/deploy_hubble_2.wav
Binary file not shown.
Binary file modified audio/generic/interlude/deploy_satellite.wav
Binary file not shown.
Binary file modified audio/generic/interlude/deploy_spy_satellite_1.wav
Binary file not shown.
Binary file modified audio/generic/interlude/deploy_spy_satellite_2.wav
Binary file not shown.
Binary file modified audio/generic/interlude/flagship_arrival.wav
Binary file not shown.
Binary file modified audio/generic/interlude/merchant_attacked.wav
Binary file not shown.
Binary file modified audio/generic/interlude/merchant_destroyed.wav
Binary file not shown.
Binary file modified audio/generic/interlude/merchant_in.wav
Binary file not shown.
Binary file modified audio/generic/intro/gt_interactive_intro.wav
Binary file not shown.
Binary file modified audio/generic/lose/destroyed_level_1.wav
Binary file not shown.
Binary file modified audio/generic/lose/destroyed_level_2.wav
Binary file not shown.
Binary file modified audio/generic/lose/destroyed_level_3.wav
Binary file not shown.
Binary file modified audio/generic/lose/fired_level_1.wav
Binary file not shown.
Binary file modified audio/generic/lose/fired_level_2.wav
Binary file not shown.
Binary file modified audio/generic/lose/fired_level_3.wav
Binary file not shown.
Binary file modified audio/generic/music/Music1.ogg
Binary file not shown.
Binary file modified audio/generic/music/Music2.ogg
Binary file not shown.
Binary file modified audio/generic/music/Music3.ogg
Binary file not shown.
Binary file modified audio/generic/music/War.ogg
Binary file not shown.
Binary file modified audio/generic/spacewar/acknowledge_1.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/click_1.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/explosion_long.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/explosion_medium.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/explosion_short.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_1.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_2.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_laser1.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_laser2.wav
Binary file not shown.
Binary file removed audio/generic/spacewar/fire_laser3.wav
Binary file not shown.
Binary file removed audio/generic/spacewar/fire_laser4.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_meson.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_particle.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_rocket_1.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/fire_rocket_2.wav
Binary file not shown.
Binary file modified audio/generic/spacewar/hit.wav
Binary file not shown.
Binary file modified audio/generic/ui/achievement.wav
Binary file not shown.
Binary file modified audio/generic/ui/acknowledge_1.wav
Binary file not shown.
Binary file modified audio/generic/ui/acknowledge_2.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_high_1.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_high_2.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_high_3.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_low_1.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_medium_1.wav
Binary file not shown.
Binary file modified audio/generic/ui/click_medium_2.wav
Binary file not shown.
Binary file modified audio/generic/ui/comm_deploy.wav
Binary file not shown.
Binary file modified audio/generic/ui/demolish_building.wav
Binary file not shown.
Binary file modified audio/generic/ui/deploy_building.wav
Binary file not shown.
Binary file modified audio/generic/ui/fail.wav
Binary file not shown.
Binary file modified audio/generic/ui/good_bye.wav
Binary file not shown.
Binary file modified audio/generic/ui/hologram_off.wav
Binary file not shown.
Binary file modified audio/generic/ui/hologram_on.wav
Binary file not shown.
Binary file modified audio/generic/ui/messages_deploy.wav
Binary file not shown.
Binary file modified audio/generic/ui/new_task.wav
Binary file not shown.
Binary file modified audio/generic/ui/pause.wav
Binary file not shown.
Binary file modified audio/generic/ui/rain.wav
Binary file not shown.
Binary file modified audio/generic/ui/success.wav
Binary file not shown.
Binary file modified audio/generic/ui/thunder.wav
Binary file not shown.
4 changes: 2 additions & 2 deletions data/generic/campaign/main/battle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<projectiles>
<projectile id="Laser1" matrix="inventions/weapons/lasers/laser_1_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_TINY" damage="5" delay="1000" range="180" mode="BEAM" movement-speed="6"/>
<projectile id="Laser2" matrix="inventions/weapons/lasers/laser_2_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_TINY" damage="10" delay="900" range="200" mode="BEAM" movement-speed="5"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER3" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER4" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Ion" matrix="inventions/weapons/cannons/ion_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="20" delay="1200" range="300" mode="BEAM" movement-speed="9"/>
<projectile id="Plasma" matrix="inventions/weapons/cannons/plasma_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="25" delay="1100" range="320" mode="BEAM" movement-speed="10"/>
<projectile id="Particle" matrix="inventions/weapons/cannons/particle_projectile_matrix" width="1" height="12" sound="FIRE_MESON" explosion-anim="EXPLOSION_GREEN" damage="35" delay="1000" range="340" mode="BEAM" movement-speed="8"/>
Expand Down
4 changes: 2 additions & 2 deletions data/generic/skirmish/human/battle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<projectiles>
<projectile id="Laser1" matrix="inventions/weapons/lasers/laser_1_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_TINY" damage="5" delay="1000" range="180" mode="BEAM" movement-speed="6"/>
<projectile id="Laser2" matrix="inventions/weapons/lasers/laser_2_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_TINY" damage="10" delay="900" range="200" mode="BEAM" movement-speed="5"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER3" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER4" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Ion" matrix="inventions/weapons/cannons/ion_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="20" delay="1200" range="300" mode="BEAM" movement-speed="9"/>
<projectile id="Plasma" matrix="inventions/weapons/cannons/plasma_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="25" delay="1100" range="320" mode="BEAM" movement-speed="10"/>
<projectile id="Particle" matrix="inventions/weapons/cannons/particle_projectile_matrix" width="1" height="12" sound="FIRE_MESON" explosion-anim="EXPLOSION_GREEN" damage="35" delay="1000" range="340" mode="BEAM" movement-speed="8"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<projectiles>
<projectile id="Laser1" matrix="inventions/weapons/lasers/laser_1_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_TINY" damage="5" delay="1000" range="180" mode="BEAM" movement-speed="6"/>
<projectile id="Laser2" matrix="inventions/weapons/lasers/laser_2_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_TINY" damage="10" delay="900" range="200" mode="BEAM" movement-speed="5"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER3" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER4" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Laser3" matrix="inventions/weapons/lasers/laser_3_rotate" width="64" height="1" sound="FIRE_LASER1" explosion-anim="EXPLOSION_SMALL" damage="15" delay="700" range="220" mode="BEAM" movement-speed="3"/>
<projectile id="Laser4" matrix="inventions/weapons/lasers/laser_4_rotate" width="64" height="1" sound="FIRE_LASER2" explosion-anim="EXPLOSION_SMALL" damage="20" delay="800" range="240" mode="BEAM" movement-speed="4"/>
<projectile id="Ion" matrix="inventions/weapons/cannons/ion_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="20" delay="1200" range="300" mode="BEAM" movement-speed="9"/>
<projectile id="Plasma" matrix="inventions/weapons/cannons/plasma_projectile_rotate" width="64" height="1" sound="FIRE_PARTICLE" explosion-anim="EXPLOSION_MEDIUM" damage="25" delay="1100" range="320" mode="BEAM" movement-speed="10"/>
<projectile id="Particle" matrix="inventions/weapons/cannons/particle_projectile_matrix" width="1" height="12" sound="FIRE_MESON" explosion-anim="EXPLOSION_GREEN" damage="35" delay="1000" range="340" mode="BEAM" movement-speed="8"/>
Expand Down
9 changes: 6 additions & 3 deletions src/hu/openig/screen/items/SpacewarScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -3524,8 +3524,11 @@ void fireRocketAt(SpacewarStructure target, RocketSelected r) {
}

structures.add(proj);

effectSound(r.port.projectile.sound);
if (commons.simulation.paused()) {
effectSound(r.port.projectile.sound);
} else {
soundsToPlay.add(r.port.projectile.sound);
}
}
/**
* Set to attack the specified target.
Expand Down Expand Up @@ -4754,7 +4757,7 @@ void createBeam(SpacewarStructure source, SpacewarWeaponPort p, double ax, doubl
}

projectiles.add(sp);
effectSound(p.projectile.sound);
soundsToPlay.add(p.projectile.sound);
}
/**
* Apply loss results back to the initial fleets and planets.
Expand Down