From 2e7ef6dffe7aa7031cca8eff286e4fdf2f65e404 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 22 Aug 2024 03:14:28 +0200 Subject: [PATCH] [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 :cl: fix: Fixes lobby buttons from station traits having no name and being unexaminable. /:cl: * Fixes lobby buttons from station traits having no name and being unexaminable. --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/datums/station_traits/_station_trait.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/datums/station_traits/_station_trait.dm b/code/datums/station_traits/_station_trait.dm index a0e17d1d2e8..bae9540fa25 100644 --- a/code/datums/station_traits/_station_trait.dm +++ b/code/datums/station_traits/_station_trait.dm @@ -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))