mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Make sure talk_wheel_icon var is properly deleted when hud is deleted.
Add a hotkey for the talk wheel: H (hotkey mode) and Ctrl+H. Fixes not being able to use the wheel and talk button while stunned.
This commit is contained in:
@@ -464,3 +464,14 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
|
||||
M << "There were no ghosts willing to take control."
|
||||
message_admins("No ghosts were willing to take control of [key_name_admin(M)])")
|
||||
return FALSE
|
||||
|
||||
//toggles the talk wheel
|
||||
/mob/verb/toggle_talk_wheel()
|
||||
set name = "talk-wheel"
|
||||
set hidden = 1
|
||||
|
||||
if(ishuman(src))
|
||||
var/mob/living/carbon/human/H = src
|
||||
if(H.hud_used && H.hud_used.talk_wheel_icon)
|
||||
H.hud_used.talk_wheel_icon.Click()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user