/tg/ Station 13 - Modules - TypesVar Details - Proc Details

lootpanel

Loot panel

A datum that stores info containing the contents of a turf. Handles opening the lootpanel UI and searching the turf for items.

Vars

contentsThe list of all search objects indexed.
notifiedWe've been notified about client version
ownerThe owner of the panel
source_turfThe turf being searched
to_imageThe list of search_objects needing processed

Procs

add_to_indexAdds the item to contents and to_image (if needed)
get_contentsUI helper for converting the associative list to a list of lists
grabClicks an object from the contents. Validates the object and the user
on_searchable_deletedOn contents change, either reset or update
openHelper to open the panel
populate_contentsUsed to populate contents and start generating if needed
process_imagesCalled by SSlooting whenever this datum is added to its backlog. Iterates over to_image list to create icons, then removes them. Returns boolean - whether this proc has finished the queue or not.
reset_contentsFor: Resetting to empty. Ignores the searchable qdel event

Var Details

contents

The list of all search objects indexed.

notified

We've been notified about client version

owner

The owner of the panel

source_turf

The turf being searched

to_image

The list of search_objects needing processed

Proc Details

add_to_index

Adds the item to contents and to_image (if needed)

get_contents

UI helper for converting the associative list to a list of lists

grab

Clicks an object from the contents. Validates the object and the user

on_searchable_deleted

On contents change, either reset or update

open

Helper to open the panel

populate_contents

Used to populate contents and start generating if needed

process_images

Called by SSlooting whenever this datum is added to its backlog. Iterates over to_image list to create icons, then removes them. Returns boolean - whether this proc has finished the queue or not.

reset_contents

For: Resetting to empty. Ignores the searchable qdel event