Skip to content

Commit

Permalink
Hide hidden actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Feb 22, 2024
1 parent 3b8d600 commit 883d371
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,12 @@
observers |= observer
hud_used.show_hud(hud_used.hud_version, observer)

// Add the player's action buttons (not the actions themselves) to the observer's screen.
for(var/datum/action/action as anything in actions)
// Add the action's button (not the action itself) to the observer's screen.
// Skip any hidden ones (of course).
if(action.hidden || action.player_hidden)
continue

observer.client.add_to_screen(action.button)

//generates realistic-ish pulse output based on preset levels
Expand Down

0 comments on commit 883d371

Please sign in to comment.