[MIRROR] You no longer need to hold shift to open the context menu as a ghost (#3122)

* You no longer need to hold shift to open the context menu as a ghost (#56646)

* You no longer need to hold shift to open the context menu as a ghost

Co-authored-by: Qustinnus <Floydje123@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-05 22:06:57 +00:00
committed by GitHub
co-authored by Qustinnus
parent d54bcd08f1
commit c179c2bf59
5 changed files with 19 additions and 0 deletions
+3
View File
@@ -20,3 +20,6 @@
update_icon(preferred_form)
updateghostimages()
client.set_right_click_menu_mode(FALSE)
@@ -21,6 +21,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
light_range = 1
light_power = 2
light_on = FALSE
shift_to_open_context_menu = FALSE
var/can_reenter_corpse
var/datum/hud/living/carbon/hud = null // hud
var/bootime = 0
+1
View File
@@ -32,6 +32,7 @@
world.update_status()
client.screen = list() //remove hud items just in case
client.images = list()
client.set_right_click_menu_mode(shift_to_open_context_menu)
if(!hud_used)
create_mob_hud()
+1
View File
@@ -18,6 +18,7 @@
throwforce = 10
blocks_emissive = EMISSIVE_BLOCK_GENERIC
pass_flags_self = PASSMOB
var/shift_to_open_context_menu = TRUE
///when this be added to vis_contents of something it inherit something.plane, important for visualisation of mob in openspace.
vis_flags = VIS_INHERIT_PLANE