mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixed radial menu hard del
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
plane = ABOVE_HUD_PLANE
|
||||
var/datum/radial_menu/parent
|
||||
|
||||
/obj/screen/radial/Destroy()
|
||||
..()
|
||||
parent = null
|
||||
|
||||
/obj/screen/radial/slice
|
||||
icon_state = "radial_slice"
|
||||
var/choice
|
||||
@@ -218,6 +222,11 @@
|
||||
choices_icons.Cut()
|
||||
choices_values.Cut()
|
||||
choices_tooltips.Cut()
|
||||
for(var/element in elements)
|
||||
qdel(element)
|
||||
elements.Cut()
|
||||
qdel(close_button)
|
||||
close_button = null
|
||||
current_page = 1
|
||||
|
||||
/datum/radial_menu/proc/element_chosen(choice_id,mob/user)
|
||||
@@ -285,6 +294,7 @@
|
||||
/datum/radial_menu/proc/hide()
|
||||
if(current_user)
|
||||
current_user.images -= menu_holder
|
||||
menu_holder = null
|
||||
|
||||
/datum/radial_menu/proc/wait()
|
||||
while (!gcDestroyed && current_user && !finished && !selected_choice)
|
||||
|
||||
Reference in New Issue
Block a user