← Alle PRs
#1332

Buttons: click sound on press edge, not held

sauber CI rot GitHub ↗

fix/button-sound-held · PurpleFuchs · 3 Dateien · +3 −3 · 2026-10-29

Zusammenfassung

Card 70527d.

handleSound in DrawButton, DrawButton02 and DrawActionSlot fired COMMAND_PlayEffect on the per-frame HELD state — the cached static source refires each time the ~50-150ms sample ends, so a held click keeps ticking. All three now read the Pressed edge like DrawCanvasButton already does.

Verified: per-file luajit clean.

Geänderte Dateien (3)
Source/GuiElements/ActionBar/DrawActionSlot.luageändert+1 −1
Source/GuiElements/Buttons/DrawButton.luageändert+1 −1
Source/GuiElements/Buttons/DrawButton02.luageändert+1 −1