Fixes lobby buttons from station traits having no name and being unexaminable. (#85877)

## About The Pull Request
Apparently, that's why you couldn't examine the button at all. For some
reason, this is only the case with the lobby buttons tho, as you can
examine other nameless atoms, even though they still don't show up in
the right-click context menu.

## Why It's Good For The Game
Fixing a long-standing issue with lobby buttons.

## Changelog

🆑
fix: Fixes lobby buttons from station traits having no name and being
unexaminable.
/🆑
This commit is contained in:
Ghom
2024-08-18 00:49:49 +02:00
committed by GitHub
parent 4d1639b04c
commit 24e555c1bb

View File

@@ -95,6 +95,7 @@ GLOBAL_LIST_EMPTY(lobby_station_traits)
/// Apply any additional handling we need to our lobby button
/datum/station_trait/proc/setup_lobby_button(atom/movable/screen/lobby/button/sign_up/lobby_button)
SHOULD_CALL_PARENT(TRUE)
lobby_button.name = name
lobby_buttons |= lobby_button
RegisterSignal(lobby_button, COMSIG_ATOM_UPDATE_ICON, PROC_REF(on_lobby_button_update_icon))
RegisterSignal(lobby_button, COMSIG_SCREEN_ELEMENT_CLICK, PROC_REF(on_lobby_button_click))