Throw mode cursor icon (#16790)

* a

* a

---------

Co-authored-by: DreamySkrell <>
This commit is contained in:
DreamySkrell
2023-07-23 20:23:05 +02:00
committed by GitHub
parent 45c2f8ea74
commit fefe1e7e91
3 changed files with 49 additions and 0 deletions

View File

@@ -1279,15 +1279,23 @@
else
throw_mode_on()
#define THROW_MODE_ICON 'icons/effects/cursor/throw_mode.dmi'
/mob/proc/throw_mode_off()
src.in_throw_mode = 0
if(src.throw_icon) //in case we don't have the HUD and we use the hotkey
src.throw_icon.icon_state = "act_throw_off"
if(client?.mouse_pointer_icon == THROW_MODE_ICON)
client.mouse_pointer_icon = initial(client.mouse_pointer_icon)
/mob/proc/throw_mode_on()
src.in_throw_mode = 1
if(src.throw_icon)
src.throw_icon.icon_state = "act_throw_on"
if(client?.mouse_pointer_icon == initial(client.mouse_pointer_icon))
client.mouse_pointer_icon = THROW_MODE_ICON
#undef THROW_MODE_ICON
/mob/proc/is_invisible_to(var/mob/viewer)
if(isAI(viewer))