mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-25 19:16:40 +01:00
tgui reagent guidebook & tgui updates (#6161)
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//* This file is explicitly licensed under the MIT license. *//
|
||||
//* Copyright (c) 2023 Citadel Station developers. *//
|
||||
|
||||
/datum/prototype/guidebook_section
|
||||
abstract_type = /datum/prototype/guidebook_section
|
||||
|
||||
/// section title
|
||||
var/title = "Unknown"
|
||||
/// tgui guidebook module to load
|
||||
var/tgui_module
|
||||
|
||||
/**
|
||||
* data to be sent to module - static
|
||||
*
|
||||
* this is the only one, for now
|
||||
*
|
||||
* todo: add dynamic data support???
|
||||
*/
|
||||
/datum/prototype/guidebook_section/proc/section_data()
|
||||
. = list()
|
||||
|
||||
/datum/prototype/guidebook_section/proc/interface_data()
|
||||
return list(
|
||||
"$tgui" = tgui_module,
|
||||
"$src" = REF(src),
|
||||
"title" = title,
|
||||
) | section_data()
|
||||
Reference in New Issue
Block a user