mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 12:20:09 +01:00
b7969a971d
* 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>
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()
|