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

30 lines
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.
@
=
void RulesForScenesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
inter_tree *I = InterpretIndex::get_tree();
2021-06-08 01:03:35 +03:00
tree_inventory *inv = Synoptic::inv(I);
TreeLists::sort(inv->rulebook_nodes, Synoptic::module_order);
2021-07-26 01:56:17 +03:00
HTML_OPEN("p");
Localisation::bold_0(OUT, LD, I"Index.Elements.RS.Machinery");
HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneChanging", NULL,
IndexRules::find_rulebook(inv, I"scene_changing"), NULL, 1, FALSE, LD);
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 01:56:17 +03:00
Localisation::bold_0(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,
IndexRules::find_rulebook(inv, I"when_scene_begins"), NULL, 1, FALSE, LD);
2021-07-26 01:56:17 +03:00
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneEnds", NULL,
IndexRules::find_rulebook(inv, I"when_scene_ends"), NULL, 1, FALSE, LD);
2021-06-08 01:03:35 +03:00
}