mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 19:42:42 +00:00
Throw mode cursor icon (#16790)
* a * a --------- Co-authored-by: DreamySkrell <>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user