mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
20 lines
450 B
Plaintext
20 lines
450 B
Plaintext
/// On contents change, either reset or update
|
|
/datum/lootpanel/proc/on_searchable_deleted(datum/search_object/source)
|
|
SIGNAL_HANDLER
|
|
|
|
contents -= source
|
|
to_image -= source
|
|
|
|
var/datum/tgui/window = SStgui.get_open_ui(owner.mob, src)
|
|
#if !defined(UNIT_TESTS) // we dont want to delete contents if we're testing
|
|
if(isnull(window))
|
|
reset_contents()
|
|
return
|
|
#endif
|
|
|
|
if(isturf(source.item))
|
|
populate_contents()
|
|
return
|
|
|
|
window?.send_update()
|