Files
VOREStation/code/modules/lootpanel/handlers.dm
T
ShadowLarkens b7969a971d Replace the alt click menu with the RPG Lootpanel (#17938)
* Port lootpanel without removing old obj panel

* Rip out the loot panel leaving examine tab intact

* some fixes

* we want nice icons

* that

* Switch to more robust hotkey detection

* Add a reminder to ctrl-r

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-07-11 00:49:37 +02:00

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()