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 | |
| 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 | 
Procs | |
| 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 | 
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