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.lua | geändert | +1 −1 |
| Source/GuiElements/Buttons/DrawButton.lua | geändert | +1 −1 |
| Source/GuiElements/Buttons/DrawButton02.lua | geändert | +1 −1 |