mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user