mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Jukebox TGUI update, Earphones autoplay, sound keys refactor (#21630)
V2 of [previous music playing PR](https://github.com/Aurorastation/Aurora.3/pull/21466). TLDR no longer uses the connect_range component for implementation because it turned out a bit too inflexible for overlapping music players. Removes a NanoUI template for the [TGUI update](https://github.com/Aurorastation/Aurora.3/pull/21046). New changelog: - refactor: "Ported Jukebox's NanoUI interface to TGUI." - refactor: "Ported Jukebox audio playing functionality to a component." - refactor: "Sound keys refactored from singletons to datums, along with larger breakout of sound.dm to allow for easier SFX updates in future." - code_imp: "Expanded track datums to include track lengths." - code_imp: "Reorganized music file folders for more intuitive access." - rscadd: "Earphone status feedback text now includes track length." - rscadd: "Added autoplay functionality to earphones." - bugfix: "Fixed earphones' 'Previous Song' verb not sending you to the end of the playlist when used while the first track is selected." - bugfix: "Fixed gain adjustment for 'Konyang-1' (-23 dB -> standard -9.8 dB)." - bugfix: "Fixed y-offset of audioconsole-running overlay animation to line up with the actual screen." --------- Co-authored-by: VMSolidus <evilexecutive@gmail.com>
This commit is contained in:
co-authored by
VMSolidus
parent
4bc8527606
commit
7d058fc613
@@ -92,7 +92,7 @@ ABSTRACT_TYPE(/obj/structure/engineer_maintenance)
|
||||
user.visible_message("[SPAN_BOLD("[user]")] [panel_open ? "closes" : "opens"] \the [src]!", SPAN_NOTICE("You [panel_open ? "close" : "open"] \the [src]!"))
|
||||
panel_open = !panel_open
|
||||
update_icon()
|
||||
playsound(get_turf(src), panel_open ? /singleton/sound_category/hatch_open : /singleton/sound_category/hatch_close, 30, TRUE)
|
||||
playsound(get_turf(src), panel_open ? SFX_HATCH_OPEN : SFX_HATCH_CLOSE, 30, TRUE)
|
||||
return
|
||||
if(panel_open)
|
||||
for(var/tool_type in panel_tools)
|
||||
@@ -221,13 +221,13 @@ ABSTRACT_TYPE(/obj/structure/engineer_maintenance)
|
||||
playsound(get_turf(target), finish_sound, 30, TRUE)
|
||||
|
||||
/singleton/engineer_maintenance_tool/steam_pipe
|
||||
finish_sound = /singleton/sound_category/steam_pipe
|
||||
finish_sound = SFX_STEAM_PIPE
|
||||
|
||||
/singleton/engineer_maintenance_tool/electrical_hum
|
||||
finish_sound = /singleton/sound_category/electrical_hum
|
||||
finish_sound = SFX_ELECTRICAL_HUM
|
||||
|
||||
/singleton/engineer_maintenance_tool/electrical_spark
|
||||
finish_sound = /singleton/sound_category/electrical_spark
|
||||
finish_sound = SFX_ELECTRICAL_SPARK
|
||||
|
||||
/singleton/engineer_maintenance_tool/electrical_spark/perform_action(mob/user, obj/item/tool, obj/structure/engineer_maintenance/target)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user