mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
fixes a few radial menus not working (#23495)
* fixes a few radial menus not working * also this
This commit is contained in:
@@ -374,13 +374,7 @@
|
||||
"Medical" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "healthhud"),
|
||||
"Diagnostic" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "diagnostichud"),
|
||||
"None" = image(icon = 'icons/mob/screen_gen.dmi', icon_state = "x"))
|
||||
var/user_loc
|
||||
if(isAI(src))
|
||||
var/mob/living/silicon/ai/eyeloc = src
|
||||
user_loc = eyeloc.eyeobj
|
||||
else
|
||||
user_loc = src
|
||||
var/sensor_type = show_radial_menu(src, user_loc, sensor_choices)
|
||||
var/sensor_type = show_radial_menu(src, src, sensor_choices)
|
||||
if(!sensor_type)
|
||||
return
|
||||
remove_med_sec_hud()
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
var/list/choices = list()
|
||||
for(var/obj/I in items_list)
|
||||
choices["[I.name]"] = image(icon = I.icon, icon_state = I.icon_state)
|
||||
var/choice = show_radial_menu(user, src, choices, custom_check = CALLBACK(src, PROC_REF(check_menu), user))
|
||||
var/choice = show_radial_menu(user, user, choices, custom_check = CALLBACK(src, PROC_REF(check_menu), user))
|
||||
if(!check_menu(user))
|
||||
return
|
||||
var/obj/item/selected
|
||||
|
||||
Reference in New Issue
Block a user