// Wiki books that are linked to the configured wiki link. /// The size of the window that the wiki books open in. #define BOOK_WINDOW_BROWSE_SIZE "970x710" /// This macro will resolve to code that will open up the associated wiki page in the window. #define WIKI_PAGE_IFRAME(wikiurl, link_identifier) {"
You start skimming through the manual...
"} // A book that links to the wiki /obj/item/book/manual/wiki dat = "Nanotrasen presently does not have any resources on this topic. If you would like to know more, contact your local Central Command representative." // safety /// The ending URL of the page that we link to. var/page_link = "" /obj/item/book/manual/wiki/display_content(mob/living/user) var/wiki_url = CONFIG_GET(string/wikiurl) if(!wiki_url) //user.balloon_alert(user, "this book is empty!") to_chat(user, span_info("this book is empty!")) return //credit_book_to_reader(user) DIRECT_OUTPUT(user, browse(WIKI_PAGE_IFRAME(wiki_url, page_link), "window=manual;size=[BOOK_WINDOW_BROWSE_SIZE]")) // if you change this GUARANTEE that it works. /obj/item/book/manual/wiki/engineering_construction name = "Station Repairs and Construction" icon_state ="bookEngineering" item_state = "book3" author = "Engineering Encyclopedia" // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned title = "Station Repairs and Construction" page_link = "Guide_to_Construction" /obj/item/book/manual/wiki/engineering_hacking name = "Hacking" icon_state ="bookHacking" item_state = "book2" author = "Engineering Encyclopedia" // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned title = "Hacking" page_link = "Hacking" /obj/item/book/manual/wiki/robotics_manual name = "Guide to Robotics" icon_state ="evabook" item_state = "book3" author = "Simple Robotics" // Who wrote the thing, can be changed by pen or PC. It is not automatically assigned title = "Guide to Robotics" page_link = "Guide_to_Robotics" /obj/item/book/manual/wiki/security_space_law name = "Corporate Regulations" desc = "A set of corporate guidelines for keeping law and order on privately-owned space stations." icon_state = "bookSpaceLaw" item_state = "book13" author = "The Company" title = "Corporate Regulations" page_link = "Corporate_Regulations" /obj/item/book/manual/wiki/medical_diagnostics_manual name = "Medical Diagnostics Manual" desc = "First, do no harm. A detailed medical practitioner's guide." icon_state = "bookMedical" item_state = "book12" author = "Medical Department" title = "Medical Diagnostics Manual" /obj/item/book/manual/wiki/medical_diagnostics_manual/display_content(mob/living/user) var/wiki_url = CONFIG_GET(string/wikiurl) if(!wiki_url) //user.balloon_alert(user, "this book is empty!") to_chat(user, span_info("this book is empty!")) return var/dat = {"