bookmanagement ![code/modules/library/lib_machines.dm 277](git.png)
Vars | |
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? |
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 |
newscaster_cooldown | Our cooldown on publishing books to the newscaster's "book club" channel |
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? |
Procs | |
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" |
Var Details
can_spawn_lore ![code/modules/library/lib_machines.dm 291](git.png)
Can spawn secret lore item
checkout_page ![code/modules/library/lib_machines.dm 301](git.png)
The current page we're on in the checkout listing
checkout_page_count ![code/modules/library/lib_machines.dm 299](git.png)
The current max amount of checkout pages allowed
checkouts ![code/modules/library/lib_machines.dm 297](git.png)
List of checked out books, /datum/borrowbook
dynamic_inv_load ![code/modules/library/lib_machines.dm 309](git.png)
Should we load our inventory from the bookselves in our area?
inventory ![code/modules/library/lib_machines.dm 303](git.png)
List of book info datums to display to the user as our "inventory"
inventory_page ![code/modules/library/lib_machines.dm 307](git.png)
The current page we're on in the inventory
inventory_page_count ![code/modules/library/lib_machines.dm 305](git.png)
The current max amount of inventory pages allowed
newscaster_cooldown ![code/modules/library/lib_machines.dm 315](git.png)
Our cooldown on publishing books to the newscaster's "book club" channel
printer_cooldown ![code/modules/library/lib_machines.dm 313](git.png)
Our cooldown on using the printer
scanner ![code/modules/library/lib_machines.dm 311](git.png)
Book scanner that will be used when uploading books to the Archive
screen_state ![code/modules/library/lib_machines.dm 293](git.png)
The screen we're currently on, sent to the ui
show_dropdown ![code/modules/library/lib_machines.dm 295](git.png)
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"