Timestamp:
Apr 18, 2021, 10:10:00 AM (3 years ago)
Author:
Freagarach
Message:

Play a sound when there are no idle entities.

If there are no idle units and the idle-unit hotkey is pressed there is now a sound played.
Beneficial when there are already units selected since selection doesn't change.

Sound courtesy of @Samualis.

Refs. #5360
Based on a patch by: @cpc
Differential revision: https://code.wildfiregames.com/D1692
Comments by: @asterix, @smiley, @Stan, @vladislavbelov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/session/input.js

    r25240 r25287  
    16231623    if (!idleUnits.length)
    16241624    {
    1625         // TODO: display a message or play a sound to indicate no more idle units, or something
    1626         // Reset for next cycle
     1625        // TODO: display a message to indicate no more idle units, or something
     1626        Engine.GuiInterfaceCall("PlaySoundForPlayer", {
     1627            "name": "no_idle_unit"
     1628        });
    16271629        resetIdleUnit();
    16281630        return;
Note: See TracChangeset for help on using the changeset viewer.