1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-01 14:34:58 +03:00
inform7/inter/index-module/Chapter 3/Rules for Scenes Element.w

30 lines
1.1 KiB
OpenEdge ABL
Raw Normal View History

2021-06-08 01:03:35 +03:00
[RulesForScenesElement::] Rules for Scenes Element.
To write the Rules for Scenes element (RS) in the index.
@
=
2021-07-26 15:48:49 +03:00
void RulesForScenesElement::render(OUTPUT_STREAM, index_session *session) {
localisation_dictionary *LD = Indexing::get_localisation(session);
tree_inventory *inv = Indexing::get_inventory(session);
2022-02-03 01:35:38 +02:00
InterNodeList::array_sort(inv->rulebook_nodes, MakeSynopticModuleStage::module_order);
2021-06-08 01:03:35 +03:00
2021-07-26 01:56:17 +03:00
HTML_OPEN("p");
2021-07-26 02:34:51 +03:00
Localisation::bold(OUT, LD, I"Index.Elements.RS.Machinery");
2021-07-26 01:56:17 +03:00
HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneChanging", NULL,
2021-07-27 02:42:09 +03:00
IndexRules::find_rulebook(inv, I"scene_changing"), NULL, 1, FALSE, session);
2021-07-26 01:56:17 +03:00
2021-06-08 01:03:35 +03:00
HTML_OPEN("p");
2021-07-09 00:56:01 +03:00
IndexUtilities::anchor(OUT, I"SRULES");
2021-07-26 02:34:51 +03:00
Localisation::bold(OUT, LD, I"Index.Elements.RS.General");
2021-06-08 01:03:35 +03:00
HTML_CLOSE("p");
2021-07-26 01:56:17 +03:00
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneBegins", NULL,
2021-07-27 02:42:09 +03:00
IndexRules::find_rulebook(inv, I"when_scene_begins"), NULL, 1, FALSE, session);
2021-07-26 01:56:17 +03:00
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneEnds", NULL,
2021-07-27 02:42:09 +03:00
IndexRules::find_rulebook(inv, I"when_scene_ends"), NULL, 1, FALSE, session);
2021-06-08 01:03:35 +03:00
}