[MIRROR] Fixes lobby buttons from station traits having no name and being unexaminable. (#29437)

* 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.
/🆑

* Fixes lobby buttons from station traits having no name and being unexaminable.

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-08-22 03:14:28 +02:00
committed by GitHub
parent 3f8c041ea8
commit 2e7ef6dffe
@@ -96,6 +96,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))