Daedalus Dock - Modules - TypesVar Details - Proc Details

bookmanagement

Vars

buffer_bookThe name of the book being checked out
can_spawn_loreCan spawn secret lore item
checkout_pageThe current page we're on in the checkout listing
checkout_page_countThe current max amount of checkout pages allowed
checkoutsList of checked out books, /datum/borrowbook
dynamic_inv_loadShould we load our inventory from the bookselves in our area?
ignore_hashToggled if some bit of code wants to override hashing and allow for page updates
inventoryList of book info datums to display to the user as our "inventory"
inventory_pageThe current page we're on in the inventory
inventory_page_countThe current max amount of inventory pages allowed
printer_cooldownOur cooldown on using the printer
scannerBook scanner that will be used when uploading books to the Archive
screen_stateThe screen we're currently on, sent to the ui
show_dropdownShould we show the buttons required for changing screens?

Procs

attempt_printCall this proc to attempt a print. It will return false if the print failed, true otherwise, longside some ux Accepts a callback to call when the print "finishes"

Var Details

buffer_book

The name of the book being checked out

can_spawn_lore

Can spawn secret lore item

checkout_page

The current page we're on in the checkout listing

checkout_page_count

The current max amount of checkout pages allowed

checkouts

List of checked out books, /datum/borrowbook

dynamic_inv_load

Should we load our inventory from the bookselves in our area?

ignore_hash

Toggled if some bit of code wants to override hashing and allow for page updates

inventory

List of book info datums to display to the user as our "inventory"

inventory_page

The current page we're on in the inventory

inventory_page_count

The current max amount of inventory pages allowed

printer_cooldown

Our cooldown on using the printer

scanner

Book scanner that will be used when uploading books to the Archive

screen_state

The screen we're currently on, sent to the ui

show_dropdown

Should we show the buttons required for changing screens?

Proc Details

attempt_print

Call this proc to attempt a print. It will return false if the print failed, true otherwise, longside some ux Accepts a callback to call when the print "finishes"